java - JTree Line Style and Nimbus -


i using nimbus , feel. according link, should able achieve 3 different line styles jtree:

enter image description here

while using following code:

  thetree.putclientproperty("jtree.linestyle", "horizontal");  

my jtree looks this:

enter image description here

it has "none" style , not "horizontal" style. idea why might be? have nmbus? need call special after setting property?

thanks

i don't believe nimbus supports jtree.linestyle property. metallookandfeel does.

take @ source code javax.swing.plaf.synth.synthtreeui (which used nimbus) , metaltreeui (which used metal).

change metallookandfeel , see if works.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -