Solved

Tooltips in Java- Multiline?

Posted on 2000-03-10
2
1,230 Views
Last Modified: 2012-05-04
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
Comment
Question by:bava_anand
2 Comments
 
LVL 2

Expert Comment

by:AlexJ030200
Comment Utility

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
 
LVL 1

Accepted Solution

by:
dvd99 earned 50 total points
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now