if (splitPane.isOneTouchExpandable()) { ((BasicArrowButton) rightButton).paint(g); ((BasicArrowButton) leftButton).paint(g); }
  public void paint(Graphics g)  {    Dimension dividerSize;    super.paint(g);    if (border != null)    {      dividerSize = getSize();      border.paintBorder(this, g, 0, 0, dividerSize.width, dividerSize.height);    }    if (splitPane.isOneTouchExpandable())      {        ((BasicArrowButton) rightButton).paint(g);        ((BasicArrowButton) leftButton).paint(g);      }  }