CVSROOT: /cvsroot/classpath Module name: classpath Branch: Changes by: Anthony Balkissoon <[EMAIL PROTECTED]> 05/10/26 19:09:52
Modified files: . : ChangeLog javax/swing : JList.java Log message: 2005-10-25 Anthony Balkissoon <[EMAIL PROTECTED]> * javax/swing/JList.java: (getPreferredScrollableViewportSize): Use the preferred width instead of the width of the widest element. This allows us to use the user-specified preferred width if setPreferredSize was called. Use the height of the first row, not the first visible row, when calculating the preferred height. Added comments and made code cleaner and more readable. CVSWeb URLs: http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.5356&tr2=1.5357&r1=text&r2=text http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/JList.java.diff?tr1=1.37&tr2=1.38&r1=text&r2=text