[cp-patches] RFC: Make negative JList.setSelectedIndex() clear the selection

2006-01-09 Thread Mark Wielaard
Hi, I have a program here that seems to expect JList.setSelectedIndex(-1) to clear the current selection. Currently we get into trouble since we unconditionally call setSelectionInterval(-1, -1) in that case. Changing it to call clearSelection() when negative seems to make sense since it is

Re: [cp-patches] RFC: Make negative JList.setSelectedIndex() clear the selection

2006-01-09 Thread Roman Kennke
Hi Mark, Am Montag, den 09.01.2006, 16:43 +0100 schrieb Mark Wielaard: Hi, I have a program here that seems to expect JList.setSelectedIndex(-1) to clear the current selection. Currently we get into trouble since we unconditionally call setSelectionInterval(-1, -1) in that case. Changing