• 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: 9376
11
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.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!