int x = (bounds.width - size) / 2; int y = (bounds.height - size) / 2;
int x = bounds.x + (bounds.width - size) / 2; int y = (bounds.height - size) / 4;
  public void paint(Graphics g)  {    super.paint(g);    Rectangle bounds = getBounds();    int size = bounds.height / 4;    int x = (bounds.width - size) / 2;    int y = (bounds.height - size) / 2;    ButtonModel m = getModel();    if (m.isArmed())      {        x++;        y++;      }    paintTriangle(g, x, y, size, direction, isEnabled());  }