code: private void paintBorder(Graphics2D g, JComponent c, int x, int y, int width, int height) {
          boolean useToolBarColors = isInToolBar(c);
          Shape   s;
  
          if (focused) {
              s = shapeGenerator.createRoundRectangle(x - 2, y - 2, width + 3, height + 3, CornerSize.OUTER_FOCUS);
              g.setPaint(getFocusPaint(s, FocusType.OUTER_FOCUS, useToolBarColors));
              g.draw(s);
              s = shapeGenerator.createRoundRectangle(x - 1, y - 1, width + 1, height + 1, CornerSize.INNER_FOCUS);
              g.setPaint(getFocusPaint(s, FocusType.INNER_FOCUS, useToolBarColors));
              g.draw(s);
          }
  
          if (type != CommonControlState.DISABLED) {
              s = shapeGenerator.createRoundRectangle(x + 1, x + 1, width - 2, height - 2, CornerSize.BORDER);
              internalShadow.fill(g, s, false, true);
          }
  
          s = shapeGenerator.createRoundRectangle(x, y, width - 1, height - 1, CornerSize.BORDER);
          g.setPaint(getTextBorderPaint(type, !focused && useToolBarColors));
          g.draw(s);
      }
docs: Paint the border.
  
  @param g      DOCUMENT ME!
  @param c      DOCUMENT ME!
  @param x      DOCUMENT ME!
  @param y      DOCUMENT ME!
  @param width  DOCUMENT ME!
  @param height DOCUMENT ME!