Class PlasticTreeUI


public final class PlasticTreeUI extends BasicTreeUI
The JGoodies Plastic Look&Feel implementation of TreeUI. It provides two line styles: angled dashed lines, or no lines at all. By default, lines are drawn.

You can change the line style by setting a client property. The property key and values are a subset of the values used by the Metal L&F tree. To hide lines use one of the following:

 JTree tree1 = new JTree();
 tree1.putClientProperty("JTree.lineStyle", "None");

 JTree tree2 = new JTree();
 tree1.putClientProperty(Options.TREE_LINE_STYLE_KEY,
                         Options.TREE_LINE_STYLE_NONE_VALUE);
 
Although lines are shown by default, you could code:
 JTree tree1 = new JTree();
 tree1.putClientProperty("JTree.lineStyle", "Angled");

 JTree tree2 = new JTree();
 tree1.putClientProperty(Options.TREE_LINE_STYLE_KEY,
                         Options.TREE_LINE_STYLE_ANGLED_VALUE);
 
Version:
$Revision: 1.9 $