• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tool tip

 
Rinky Deshmukh
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9256
9
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Java Tutorial: How to use Tool Tips
 
Shashank Agarwal
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic