decrButton = new JButton(); decrButton.setMargin(new Insets(0,0,0,0)); decrButton.setHorizontalAlignment(SwingConstants.CENTER); decrButton.setHorizontalTextPosition(SwingConstants.CENTER); decrButton.setVerticalAlignment(SwingConstants.CENTER); decrButton.setVerticalTextPosition(SwingConstants.CENTER);
if (orientation == SwingConstants.HORIZONTAL) ((BasicArrowButton) decrButton).setDirection(SwingConstants.WEST); else ((BasicArrowButton) decrButton).setDirection(SwingConstants.NORTH);
  protected JButton createDecreaseButton(int orientation)  {    if (decrButton == null)      {      decrButton = new JButton();        decrButton.setMargin(new Insets(0,0,0,0));        decrButton.setHorizontalAlignment(SwingConstants.CENTER);        decrButton.setHorizontalTextPosition(SwingConstants.CENTER);        decrButton.setVerticalAlignment(SwingConstants.CENTER);        decrButton.setVerticalTextPosition(SwingConstants.CENTER);      }    if (orientation == SwingConstants.HORIZONTAL)      decrButton.setIcon(leftIcon);    else      decrButton.setIcon(upIcon);    return decrButton;  }