Get your CodeRanch badge!*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 8707
    
    6

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: tool tip
 
Similar Threads
Tool Tip problem
tool tip help!!
midlet in applet
JVM memory releasing after memory consuming task
Tool tip in applet