jQuery in Action, 3rd edition
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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "tool tip" Watch "tool tip" New topic

tool tip

Rinky Deshmukh

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

Joined: Oct 29, 2001
Posts: 9168

The Java Tutorial: How to use Tool Tips

[How To Ask Questions On JavaRanch]
Shashank Agarwal
Ranch Hand

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

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.
I agree. Here's the link: http://aspose.com/file-tools
subject: tool tip
It's not a secret anymore!