Single click to expand and collapse categories in the component tree

This commit is contained in:
bancika
2021-01-17 09:44:06 +01:00
parent 1aabe42573
commit 61202675b8
2 changed files with 6 additions and 1 deletions
@@ -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() {