CVSROOT: /cvsroot/classpath Module name: classpath Branch: Changes by: Anthony Balkissoon <[EMAIL PROTECTED]> 05/10/18 17:48:03
Modified files: . : ChangeLog javax/swing : DefaultListSelectionModel.java javax/swing/plaf/basic: BasicListUI.java BasicLookAndFeel.java BasicTableUI.java Log message: 2005-10-18 Anthony Balkissoon <[EMAIL PROTECTED]> * javax/swing/DefaultListSelectionModel.java: (setLeadSelectionIndex): Avoid index out of bounds error on initial call of this method by checking explicitly for oldLeadIndex being -1. Also remove unused BitSet newRange and oldRange. (moveLeadSelectionIndex): New API method implemented (@since 1.5). * javax/swing/plaf/basic/BasicListUI.java: (ListAction.actionPerformed): Make code more readable by declaring local variables for the actionCommand and for the list's selectionModel. Implemented the following bindings: selectLastRowChangeLead, scrollDownChangeLead, scrollUpChangeLead, selectFirstRowChangeLead, selectNextRowChangeLead, selectPreviousRowChangeLead, addToSelection, toggleAndAnchor, extendTo. (MouseInputHandler.mousePressed): Made code more readable by removing unnecessary full qualification from variable 'list'. Change behaviour of shift-click based on whether or not the anchor index is selected. * javax/swing/plaf/basic/BasicLookAndFeel.java: (initComponentDefaults): Added remaining bindings for Table.ancestorMap. * javax/swing/plaf/basic/BasicTableUI.java: (TableAction.actionPerformed): Made type of variables rowModel and colModel more specific to avoid many casts later on (makes code more readable). Also declare local variable to store the action command to make the code more readable. Implemented the following bindings: selectNextRowChangeLead, selectPreviousRowChangeLead, selectNextColumnChangeLead, selectPreviousColumnChangeLead, addToSelection, extendTo, toggleAndAnchor. Added commented-out debug statement to print unimplemented bindings when used. Added check for the SPACE character to make sure it doesn't stop editing. CVSWeb URLs: http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.5266&tr2=1.5267&r1=text&r2=text http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/DefaultListSelectionModel.java.diff?tr1=1.22&tr2=1.23&r1=text&r2=text http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/plaf/basic/BasicListUI.java.diff?tr1=1.33&tr2=1.34&r1=text&r2=text http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/plaf/basic/BasicLookAndFeel.java.diff?tr1=1.62&tr2=1.63&r1=text&r2=text http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/plaf/basic/BasicTableUI.java.diff?tr1=1.31&tr2=1.32&r1=text&r2=text