JTree: hide the connecting lines between nodes on selected trees.
Posted on 2005-04-08
I need to hide the connecting lines on some trees in our application, (but not on all trees).
The app uses a number of look and Feels (some from JideSoft inc) for Windows and Metal.
I have experimented with tree.putClientProperty("JTree.lineStyle", "None");
but this only works on Java look and feel, not Windows types.
I have also tried UIManager.put("Tree.paintLines", Boolean.FALSE);
but this turns them off across the entire application.