summaryrefslogtreecommitdiff
path: root/javax/swing/JTree.java
diff options
context:
space:
mode:
Diffstat (limited to 'javax/swing/JTree.java')
-rw-r--r--javax/swing/JTree.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/javax/swing/JTree.java b/javax/swing/JTree.java
index bd71035dd..d566f5351 100644
--- a/javax/swing/JTree.java
+++ b/javax/swing/JTree.java
@@ -1481,6 +1481,7 @@ public class JTree extends JComponent implements Scrollable, Accessible
setRootVisible(true);
setModel(model);
setSelectionModel(new EmptySelectionModel());
+ selectionModel.setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
}
/**