CVSROOT: /cvsroot/classpath Module name: classpath Branch: Changes by: Anthony Balkissoon <[EMAIL PROTECTED]> 05/11/03 19:40:37
Modified files: . : ChangeLog javax/swing/text: JTextComponent.java WrappedPlainView.java Log message: 2005-11-03 Anthony Balkissoon <[EMAIL PROTECTED]> * javax/swing/text/JTextComponent.java: (select): The end index cannot be smaller than the start index, changed Math.max(end, 0) to Math.max(end, start). * javax/swing/text/WrappedPlainView.java: (selectionStart): New package private field. (selectionEnd): Likewise. (drawLine): Implemented to call drawUnselectedText and drawSelectedText on the appropriate parts of the line. Before it just drew the whole line with drawUnselectedText. (paint): Store the start and end of the selection. (WrappedLine.paint): Set the selected color to Color.WHITE. CVSWeb URLs: http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.5452&tr2=1.5453&r1=text&r2=text http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/text/JTextComponent.java.diff?tr1=1.44&tr2=1.45&r1=text&r2=text http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/text/WrappedPlainView.java.diff?tr1=1.5&tr2=1.6&r1=text&r2=text