Solved

Tooltips in Java- Multiline?

Posted on 2000-03-10
2
1,234 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
ID: 2605795

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
ID: 2606017
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This video teaches viewers about errors in exception handling.

947 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

20 Experts available now in Live!

Get 1:1 Help Now