Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Setting background color for JTabbedPane does not work on XP

0 views
Skip to first unread message

Sergei

unread,
Jan 20, 2004, 12:38:25 AM1/20/04
to
Hi,

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

0 new messages