/[classpath]/classpath/javax/swing/DefaultListSelectionModel.java
ViewVC logotype

Diff of /classpath/javax/swing/DefaultListSelectionModel.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.21 by rabbit78, Wed Jul 27 12:41:33 2005 UTC revision 1.22 by rabbit78, Mon Oct 17 15:16:46 2005 UTC
# Line 388  public class DefaultListSelectionModel i Line 388  public class DefaultListSelectionModel i
388     */     */
389    public boolean isSelectedIndex(int a)    public boolean isSelectedIndex(int a)
390    {    {
391        // TODO: Probably throw an exception here?
392        if (a >= sel.length() || a < 0)
393          return false;
394      return sel.get(a);      return sel.get(a);
395    }    }
396    

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26