SwingConstants.CENTER, tabRect,
SwingConstants.RIGHT, tabRect,
  protected void layoutLabel(int tabPlacement, FontMetrics metrics,                             int tabIndex, String title, Icon icon,                             Rectangle tabRect, Rectangle iconRect,                             Rectangle textRect, boolean isSelected)  {    SwingUtilities.layoutCompoundLabel(metrics, title, icon,                                       SwingConstants.CENTER,                                       SwingConstants.CENTER,                                       SwingConstants.CENTER,                                       SwingConstants.CENTER, tabRect,                                       iconRect, textRect, textIconGap);    int shiftX = getTabLabelShiftX(tabPlacement, tabIndex, isSelected);    int shiftY = getTabLabelShiftY(tabPlacement, tabIndex, isSelected);    iconRect.x += shiftX;    iconRect.y += shiftY;    textRect.x += shiftX;    textRect.y += shiftY;  }