• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1247
  • Last Modified:

Tooltips in Java- Multiline?

How to give multiline text to any tooltips i.e JTooltip or Jlabel, TooltipText, Jbutton

Iam using only appletviewer for testing the tooltip applet, its working for single line and iam not getting in IE5.0 and Netscape 4.5 entirely. What browser support the Swing Component.

0
bava_anand
Asked:
bava_anand
1 Solution
 
AlexJ030200Commented:

The Tool Tip mechanism of Swing does not allow multiline tips. However,
you could extend class javax.swing.ToolTipUI in order to handle
newlines in tips.

With respect to browsers, you need to install the Java PlugIn in your browsers. Take a look at the following page:

http://java.sun.com/products/plugin/index.html

AlexJ.
0
 
dvd99Commented:
I had thew same problem take a look at http://codeguru.developer.com/java/articles/122.shtml It has a class that you can use and if works just like the orignal JToolTip class but supports the /n for new lines!
Have fun!
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now