@Override public void setForegroundAt(int index, Color foreground) { super.setForegroundAt(index, foreground); final Component comp = getTabComponentAt(index); if (comp instanceof TabComponent) ((TabComponent) comp).setForegroundAll(foreground); }