
Loading ...
356 views
04.13.2008 by HappyFace in
Java
This code below demonstrates how to set a tooltip for a JLabel, this can be done for JButtons and many other components aswell. To see the tooltip text you need to hover the black text with your mouse.
JAVA:
-
-
status.setToolTipText("This is a tooltip text");

Bookmark this page:
These icons link to social bookmarking sites where readers can share and discover new web pages.
Related posts
- April 13, 2008 -- How to create a statusbar in a JFrame (0)
- December 29, 2008 -- New java challenges! (0)
- December 27, 2008 -- Java games at java4k, maximum fun, minimum size (0)
- December 24, 2008 -- Left 4 Dead Java version (0)
- December 22, 2008 -- Send and recieve images through network using java #2 (0)
- November 24, 2008 -- Eating monsters problem (0)
- November 17, 2008 -- [Java] Call a method from another class (0)
- November 17, 2008 -- [Java] parse a String to an int (0)
- October 28, 2008 -- Get the rgb value of an image in java (0)
- October 28, 2008 -- Java stars (0)