[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] Re: FYI: Fixes for JLists

From: Anthony Balkissoon
Subject: [cp-patches] Re: FYI: Fixes for JLists
Date: Thu, 20 Oct 2005 16:56:54 -0400

Another note, earlier I checked in
gnu/testlet/javax/swing/DefaultListSelectionModel/ and 
we were failing it.  This patch makes us pass that test.


On Thu, 2005-10-20 at 16:55 -0400, Anthony Balkissoon wrote:
> DefaultListSelectionModel.setLeadSelectionIndex wasn't respecting the
> list's selection mode, this is fixed.  I also fixed addSelectionInterval
> in the same file to handle SINGLE_SELECTION mode better.
> Finally, there was an off-by-one problem in JList.getSelectedIndices
> that I fixed.
> 2005-10-20  Anthony Balkissoon  <address@hidden>
>       * javax/swing/
>       (setLeadSelectionIndex): If the selection mode is SINGLE_SELECTION then
>       pass this call to setSelectionInterval.
>       (addSelectionInterval): If the selection mode is SINGLE_SELECTION then 
>       pass the call to setSelectionInterval and avoid the lengthy checks
>       that don't apply to this mode.
>       * javax/swing/
>       (getSelectedIndices): Changed bounds of for loop to include the 
>       maxSelectionIndex.
> --Tony

reply via email to

[Prev in Thread] Current Thread [Next in Thread]