ContactList Single selection only

cusax-fix
Yana Stamcheva 20 years ago
parent e35d67cd45
commit f72a27c3ee

@ -12,6 +12,7 @@
import javax.swing.BorderFactory;
import javax.swing.JList;
import javax.swing.ListSelectionModel;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;
import javax.swing.text.Position;
@ -57,7 +58,7 @@ public ContactList(MetaContactListService contactList) {
this.setBorder(BorderFactory.createEmptyBorder(3, 3, 3, 3));
this.getSelectionModel().setSelectionMode(
TreeSelectionModel.SINGLE_TREE_SELECTION);
ListSelectionModel.SINGLE_SELECTION);
this.setCellRenderer(new ContactListCellRenderer());

Loading…
Cancel
Save