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

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

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

revision 1.28 by mark, Sat Jul 2 20:32:47 2005 UTC revision 1.29 by abalkiss, Thu Aug 4 14:56:05 2005 UTC
# Line 574  public class JList extends JComponent im Line 574  public class JList extends JComponent im
574      ComponentOrientation or = getComponentOrientation();      ComponentOrientation or = getComponentOrientation();
575      Rectangle r = getVisibleRect();      Rectangle r = getVisibleRect();
576      if (or == ComponentOrientation.RIGHT_TO_LEFT)      if (or == ComponentOrientation.RIGHT_TO_LEFT)
577        r.translate((int) r.getWidth(), 0);        r.translate((int) r.getWidth() - 1, 0);
578      return getUI().locationToIndex(this, r.getLocation());            return getUI().locationToIndex(this, r.getLocation());      
579    }    }
580    
# Line 612  public class JList extends JComponent im Line 612  public class JList extends JComponent im
612    {    {
613      ComponentOrientation or = getComponentOrientation();      ComponentOrientation or = getComponentOrientation();
614      Rectangle r = getVisibleRect();      Rectangle r = getVisibleRect();
615      r.translate(0, (int) r.getHeight());      r.translate(0, (int) r.getHeight() - 1);
616      if (or == ComponentOrientation.LEFT_TO_RIGHT)      if (or == ComponentOrientation.LEFT_TO_RIGHT)
617        r.translate((int) r.getWidth(), 0);        r.translate((int) r.getWidth() - 1, 0);
618      return getUI().locationToIndex(this, r.getLocation());            return getUI().locationToIndex(this, r.getLocation());      
619    }    }
620    

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29

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