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

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -

java - Getting corefrences with Standard corenlp package -

Java - Returning an array from a method to main -