g.drawRect(calcRect.x, calcRect.y, calcRect.width, calcRect.height);  g.setColor(saved);
switch (tabPlacement) { case LEFT: x = rect.x + 3; y = rect.y + 3; w = rect.width - 5; h = rect.height - 6; break; case RIGHT: x = rect.x + 2; y = rect.y + 3; w = rect.width - 6; h = rect.height - 5; break; case BOTTOM: x = rect.x + 3; y = rect.y + 2; w = rect.width - 6; h = rect.height - 5; break; case TOP: default: x = rect.x + 3; y = rect.y + 3; w = rect.width - 6; h = rect.height - 5; } BasicGraphicsUtils.drawDashedRect(g, x, y, w, h); }
  protected void paintFocusIndicator(Graphics g, int tabPlacement,                                     Rectangle[] rects, int tabIndex,                                     Rectangle iconRect, Rectangle textRect,                                     boolean isSelected)  {    Color saved = g.getColor();    calcRect = iconRect.union(textRect);    g.setColor(focus);    g.drawRect(calcRect.x, calcRect.y, calcRect.width, calcRect.height);    g.setColor(saved);  }