wood burning stoves 2.0*
The moose likes Applets and the fly likes tool tip Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "tool tip" Watch "tool tip" New topic
Author

tool tip

Rinky Deshmukh
Greenhorn

Joined: Jun 09, 2004
Posts: 16
friends ,
can anyone tell me how to give a tool tip in a applet.
i'm using JApplets to create the applet.

i have a title idea of javax.swing package
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8876
    
    8

The Java Tutorial: How to use Tool Tips


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Shashank Agarwal
Ranch Hand

Joined: May 20, 2004
Posts: 105
You can add tool tip to objects.

Example:
JButton b = new JButton("DEMO");
b.setToolTipText("This is the demo button");

I'm not sure whether u can set the tool tip for an applet.
Try this -
within the init() method, type this

this.setToolTipText("This is an applet");

Tell me if it does.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: tool tip