changeset 9699:bddf55211ed8

6417721: Thread list should not allow multiple selection Reviewed-by: alanb, jbachorik, sjiang
author egahlin
date Mon, 19 Aug 2013 16:21:49 +0200
parents 68be998c2596
children 2636d337a1ed
files src/share/classes/sun/tools/jconsole/ThreadTab.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/tools/jconsole/ThreadTab.java	Mon Aug 19 12:57:17 2013 +0200
+++ b/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,