mKorbel
Veteran Poster
1,141 posts since Feb 2011
Reputation Points: 480
Solved Threads: 224
I vote your answer as best reply in April 2011, but here isn't "lonely hearts" post your code, then we'll see
mKorbel
Veteran Poster
1,141 posts since Feb 2011
Reputation Points: 480
Solved Threads: 224
I've never tried this, but the nodes in JTree are rendered by default using JLabels.
You can put multi-line text in a JLabel by using simple HTML, so maybe you can use HTML to get multi-line nodes? Try a node with text like this:
line 1a
line1b<?HTML>
you never know...
Just tried it - it works.
JamesCherrill
Posting Genius
6,373 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073
Sorry, that's not something I've tried. I guess you'll just have to keep experimenting, unless anyone else has a better idea...?
JamesCherrill
Posting Genius
6,373 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073
no, not, you have to search how to expand Node or ... programatically, nothing else, link that I posted contains example for that
to L&F --> with same result as JamesCherrill, because each L&F allways depends by Native OS runs on, sure there exist something as BasicTreeUI, MetalTreeUi ..., but againg depends by Native OS and L&F too, and Over Ride these methods are (to hard) nuts for teams of Swing Gurus
and here too http://www.exampledepot.com/egs/javax.swing.tree/pkg.html
mKorbel
Veteran Poster
1,141 posts since Feb 2011
Reputation Points: 480
Solved Threads: 224
Please let us know how you get on - especially if you find a way to get it under Win L&F
J
JamesCherrill
Posting Genius
6,373 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073
mKorbel
Veteran Poster
1,141 posts since Feb 2011
Reputation Points: 480
Solved Threads: 224
Please tell us exactly what it was you had to do with rowHeight
thanks
J
JamesCherrill
Posting Genius
6,373 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073
JamesCherrill
Posting Genius
6,373 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073
I must "be quite" again, but then I 2nd. times *** you,
majorities of Forums required be forgive on Crossposting,
you can crosspost your question how many times as you wants, but you have to add link to another Forum(s) to your question, its Saturday and so ...
mKorbel
Veteran Poster
1,141 posts since Feb 2011
Reputation Points: 480
Solved Threads: 224