提交 d586085a 编写于 作者: E egahlin

6417721: Thread list should not allow multiple selection

Reviewed-by: alanb, jbachorik, sjiang
上级 60e05d09
...@@ -595,6 +595,7 @@ class ThreadTab extends Tab implements ActionListener, DocumentListener, ListSel ...@@ -595,6 +595,7 @@ class ThreadTab extends Tab implements ActionListener, DocumentListener, ListSel
setBorder(thinEmptyBorder); setBorder(thinEmptyBorder);
setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
addListSelectionListener(ThreadTab.this); addListSelectionListener(ThreadTab.this);
setCellRenderer(new DefaultListCellRenderer() { setCellRenderer(new DefaultListCellRenderer() {
public Component getListCellRendererComponent(JList<?> list, Object value, int index, public Component getListCellRendererComponent(JList<?> list, Object value, int index,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册