<Swing Dev> [11] Review Request: JDK-6481195 ListSelectionListener indicates events on model.addElement after model.clear()
Sergey Bylokhov
Sergey.Bylokhov at oracle.com
Fri Feb 2 21:54:45 UTC 2018
On 01/02/2018 23:25, Pankaj Bansal wrote:
> Ok, I got your point. In the example you gave, as addSelectionInterval
> was called from setSelectedIndices with 0 at last, the lead/anchor
> should be 0/0 not -1/-1.
Can somebody clarify why -1/-1 is incorrect? lead/anchor values are not
min/max selected element, it can be any elements: selected/unselected
and is not necessary first/last selected element.
--
Best regards, Sergey.
More information about the swing-dev
mailing list