mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-11 01:32:08 +10:00
Single click to expand and collapse categories in the component tree
This commit is contained in:
@@ -196,6 +196,7 @@ public class TreePanel extends JPanel {
|
||||
tree.setCellRenderer(new ComponentCellRenderer());
|
||||
tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
|
||||
tree.setRowHeight(0);
|
||||
tree.setToggleClickCount(1);
|
||||
ToolTipManager.sharedInstance().registerComponent(tree);
|
||||
|
||||
tree.addTreeSelectionListener(new TreeSelectionListener() {
|
||||
|
||||
Reference in New Issue
Block a user