My code to change background and foreground colors works on Windows NT
but does not seem to work on Windows XP.
public void setTabColor(Color tabColor) {
for (int i = 0; i < tabbedPane.getTabCount(); i++) {
tabbedPane.setBackgroundAt(i, tabColor);
tabbedPane.setForegroundAt(i, Color.black);
}
Running exactly the same code on XP and NT produces different results.
This seems to only happen after I upgraded Java VM to 1.4.2
I have seen there is a bug reported for JTabbedPane with tab layout
SCROLL_TAB_LAYOUT but I am using WRAP_TAB_LAYOUT.
Has anyone seen this happen before? Is there any workarounds?
Thanks,
Sergei