Insets insets = getInsets();
  public void paint(Graphics g)  {    super.paint(g);    Insets insets = getInsets();    Rectangle bounds = getBounds();    int x = insets.left            + (bounds.width - insets.left - insets.right - defaultSize) / 2;    int y = insets.top            + (bounds.height - insets.left - insets.right - defaultSize) / 2;    paintTriangle(g, x, y, defaultSize, direction, isEnabled());  }