Closed Thread Icon

Topic awaiting preservation: Java - ToolTip - Line Break? (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=21505" title="Pages that link to Topic awaiting preservation: Java - ToolTip - Line Break? (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Java - ToolTip - Line Break? <span class="small">(Page 1 of 1)</span>\

 
Lord_Fukutoku
Paranoid (IV) Inmate

From: West Texas
Insane since: Jul 2002

posted posted 04-23-2004 00:50

I'm pretty sure I saw this question here sometime awhile back (might actually have been me that asked it then too), but I don't remember what the concensus was.

Is there a way to have a tooltip that spans multiple lines in Java?

Something keeps making me think I searched for this before, with no luck in the end, but I'm hoping I just overlooked something.


BTW, the new Asylum looks great
(I love the "Copy Post to Clipboard Before Submitting" option below, big thumbs up there)

-- Unoriginal Cell 693 --

Veneficuz
Paranoid (IV) Inmate

From: A graveyard of dreams
Insane since: Mar 2001

posted posted 04-23-2004 01:44

Don't know if it possible without some extra code. Found a couple of classes that extends the original to support it:
http://mail.phys-iasi.ro/Library/Computing/jfc_unleashed/ch22.htm - last code example on the page
http://www.codeguru.com/java/articles/122.shtml
Both of the articles are old, so it might have been implemented in newer versions of Java...

If not you could use html and use <br> or <p> tags to create the line shifts.

_________________________
"There are 10 kinds of people; those who know binary, those who don't and those who start counting at zero"
- the Golden Ratio - Vim Tutorial -

Suho1004
Maniac (V) Inmate

From: Seoul, Korea
Insane since: Apr 2002

posted posted 04-23-2004 01:52

Criminy, Lord_F! Is it just me, or have you not been around in a while? Then again, I was gone for a good number of months a short while back, so I could have easily missed you. Just don't remember seeing you around...

___________________________
Suho: www.liminality.org | Cell 270 | Sig Rotator | Keeper of the Juicy Bits

Lord_Fukutoku
Paranoid (IV) Inmate

From: West Texas
Insane since: Jul 2002

posted posted 04-24-2004 21:17

Vene - Many, many thanks. As far as I've been able to find, it isn't built into Java yet (although I very well might have just missed it somewhere). I'm glad you found those two pages though... I knew there would be a way to add it in myself, but since it's just for convenience (not required for the project we turn in), I didn't want to spend all day Monday writing it (or trying to write it )

Are you able to embed html tags into an applet? I don't think I've ever tried... Closest I've done to that is submitting an html form to an applet with javascript, and vice versa.


Suho - Yep, I've been gone for quite awhile, several months at least. I think there's a conspiracy at the univ to keep me there for as long as they can and not let me do anything that I want to. Should have graduated this semester, but it looks like I'll be here another year (blasted math dept... only offering the same three classes they did last fall).
I've been trying to get over here at least once in awhile, but the dozen projects I constantly have going seem to take precedence...

-- Unoriginal Cell 693 --

Veneficuz
Paranoid (IV) Inmate

From: A graveyard of dreams
Insane since: Mar 2001

posted posted 04-25-2004 04:31

Glad I could be of help

For more information on the html and java thing you might want to check out the Sun doc on html in Swing...

_________________________
"There are 10 kinds of people; those who know binary, those who don't and those who start counting at zero"
- the Golden Ratio - Vim Tutorial -

« BackwardsOnwards »

Show Forum Drop Down Menu