Re: ToolTips
Posted by Jim Cant on Apr 11, 2007; 1:41pm
URL: http://imagej.273.s1.nabble.com/ToolTips-tp3699789p3699792.html
Sure, just change 'Buttonn' to 'JButton' and your done.
I'd suggest refering frequently to the JavaDocs for the Java API. For example, if you look at JButton you will see that it inherits from JComponent 'setToolTipText()' and you're on your way.
The JavaDoc often contains links that are _real_ helpful; clicking on the setTooTipText link not only describes that function but has this link: "see How to Use Tool Tips in The Java Tutorial".
Also, as another said, searching in Google or groups.google.com is fast; feed 'em '"java button tool tip text set"
Finally, when using the UI classes, if there's a choice between a "Thingy" and a "JThingy", chose the "JThingy"; they're more 'modern' and more fully featured (it's 'java.awt.... vs. javax.swing....)
Good Luck,
<quote author='Jon Harman'>
Hi Albert,
Thanks for the info. My plugin uses java.awt.Button. I built it
originally using the Panel_Window example. Is it possible to use
JButtons in my panel without much effort? The differences between all
the Java interface components are extremely arcane to someone like me
... sniip...