r.translate((int) r.getWidth(), 0);
r.translate((int) r.getWidth() - 1, 0);
  public int getFirstVisibleIndex()  {    ComponentOrientation or = getComponentOrientation();    Rectangle r = getVisibleRect();    if (or == ComponentOrientation.RIGHT_TO_LEFT)      r.translate((int) r.getWidth(), 0);    return getUI().locationToIndex(this, r.getLocation());        }