// adding ToolTips to your JComponents final JTextField schemeNameText = new JTextField(); schemeNameText.setToolTipText( "Name of the color scheme" ); final JComboBox fontStyleChoice = new JComboBox(); fontStyleChoice.setToolTipText( "select font style" );
You can right align the tooltip by including <html><p align=right> as the first characters of the tooltip String. This will be useful for languages that flow right to left.
That’s all there is to it. You don’t normally need to get involved with any of the other classes and methods.
This page is posted |
http://mindprod.com/jgloss/tooltip.html | |
Optional Replicator mirror
|
J:\mindprod\jgloss\tooltip.html | |
Please read the feedback from other visitors,
or send your own feedback about the site. Contact Roedy. Please feel free to link to this page without explicit permission. | ||
Canadian
Mind
Products
IP:[65.110.21.43] Your face IP:[34.239.150.167] |
| |
Feedback |
You are visitor number | |