I don't believe Nimbus supports the JTree. LineStyle property. Only the MetalLookAndFeel does.
I don't believe Nimbus supports the JTree. LineStyle property. Only the MetalLookAndFeel does.
Take a look at the source code for javax.swing.plaf.synth. SynthTreeUI (which is used by Nimbus) and MetalTreeUI (which is used by Metal). Change to MetalLookAndFeel and see if it works.
Interesting. I did change it to Metal LaF and it did work. Kind of a let down that Nimbus doesn't support them – user489041 Feb 18 at 15:31 I have tried to do this with Nimbus before and could not find a way that Nimbus supported it.
I agree with dogbane's answer. – jzd Feb 18 at 15:33 Have your tried to achieve this using custom renderer? – eugener Feb 19 at 0:38 @eugener No I havent.
Could you provide any links or details? – user489041 Feb 21 at 14:28 In short... you create your own tree cell renderer by inheriting from existing and overriding paint method to draw the line or putting default renderer JLabel component on the panel and adding separator to the bottom of the panel. Here is a link from Swing tutorial about tree cell renederers (scroll down a bit):download.oracle.Com/javase/tutorial/uiswing/components/… Let me know if you need more info on that.
– eugener Feb 21 at 22:06.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.