I clarified a comment in JList. 2005-11-17 Roman Kennke <[EMAIL PROTECTED]>
* javax/swing/JList.java (locationToIndex): Clarified API comment. /Roman
Index: javax/swing/JList.java =================================================================== RCS file: /cvsroot/classpath/classpath/javax/swing/JList.java,v retrieving revision 1.39 diff -u -r1.39 JList.java --- javax/swing/JList.java 9 Nov 2005 10:48:28 -0000 1.39 +++ javax/swing/JList.java 17 Nov 2005 12:05:17 -0000 @@ -1322,7 +1322,11 @@ /** - * Returns index of the cell to which specified location is closest to + * Returns index of the cell to which specified location is closest to. If + * the location is outside the bounds of the list, then the greatest index + * in the list model is returned. If the list model is empty, then + * <code>-1</code> is returned. + * * @param location for which to look for in the list * * @return index of the cell to which specified location is closest to.
_______________________________________________ Classpath-patches mailing list Classpath-patches@gnu.org http://lists.gnu.org/mailman/listinfo/classpath-patches