Solved

Tooltips in Java- Multiline?

Posted on 2000-03-10
2
1,236 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
check java version using powershell 13 80
type mismatch (Object[] to double[] 4 23
Tomcat: Unable to run tomcat service. 2 18
login form jsp example 2 24
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

816 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

11 Experts available now in Live!

Get 1:1 Help Now