6417721: Thread list should not allow multiple selection
authoregahlin
Mon, 19 Aug 2013 16:21:49 +0200
changeset 19567 11f4bac9b4f3
parent 19566 20347ff1b3c2
child 19568 873477c7e278
6417721: Thread list should not allow multiple selection Reviewed-by: alanb, jbachorik, sjiang
jdk/src/share/classes/sun/tools/jconsole/ThreadTab.java
--- a/jdk/src/share/classes/sun/tools/jconsole/ThreadTab.java	Mon Aug 19 12:57:17 2013 +0200
+++ b/jdk/src/share/classes/sun/tools/jconsole/ThreadTab.java	Mon Aug 19 16:21:49 2013 +0200
@@ -595,6 +595,7 @@
 
             setBorder(thinEmptyBorder);
 
+            setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
             addListSelectionListener(ThreadTab.this);
             setCellRenderer(new DefaultListCellRenderer() {
                 public Component getListCellRendererComponent(JList<?> list, Object value, int index,