Solved

Tooltips in Java- Multiline?

Posted on 2000-03-10
2
1,238 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

726 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