switch (tabPlacement) { default: case SwingUtilities.TOP: return (isSelected) ? -1 : 1; case SwingUtilities.BOTTOM: return (isSelected) ? 1 : -1; case SwingUtilities.LEFT: case SwingUtilities.RIGHT:
  protected int getTabLabelShiftY(int tabPlacement, int tabIndex,                                  boolean isSelected)  {    // No reason to shift.    return 0;  }