Login  Register

Re: ToolTips

Posted by Albert Cardona on Apr 10, 2007; 1:12am
URL: http://imagej.273.s1.nabble.com/ToolTips-tp3699789p3699790.html

For JButton:

http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JComponent.html#setToolTipText(java.lang.String)

Notice that it's the abstract class JComponent the one implementing the
tool tips, so you can add them to any of its subclasses (including JButton).

The "tool tip" in ImageJ shows in the status bar because neither are the
Tools in a button (but as a painted area in a Panel), nor do
java.awt.Button have tooltips (that I know of).

Remember google is much faster than the mailing list.

Albert