incrButton = new JButton(); incrButton.setMargin(new Insets(0,0,0,0)); incrButton.setHorizontalAlignment(SwingConstants.CENTER); incrButton.setHorizontalTextPosition(SwingConstants.CENTER); incrButton.setVerticalAlignment(SwingConstants.CENTER); incrButton.setVerticalTextPosition(SwingConstants.CENTER);
if (orientation == SwingConstants.HORIZONTAL) ((BasicArrowButton) incrButton).setDirection(SwingConstants.EAST); else ((BasicArrowButton) incrButton).setDirection(SwingConstants.SOUTH);
  protected JButton createIncreaseButton(int orientation)  {    if (incrButton == null)      {      incrButton = new JButton();        incrButton.setMargin(new Insets(0,0,0,0));        incrButton.setHorizontalAlignment(SwingConstants.CENTER);        incrButton.setHorizontalTextPosition(SwingConstants.CENTER);        incrButton.setVerticalAlignment(SwingConstants.CENTER);        incrButton.setVerticalTextPosition(SwingConstants.CENTER);      }        if (orientation == SwingConstants.HORIZONTAL)      incrButton.setIcon(rightIcon);    else      incrButton.setIcon(downIcon);    return incrButton;  }