posted 18 years ago
I'm having problem with tab color of the selected tab. Everything appears fine but there is a yellow line above the text of the selected tab. I'm not setting any color. I tried setting every UIManager property related to TabbedPane but that didn't help. Here is what I tried:
JTabbedPane tabbedPane;
UIManager.put("TabbedPane.selected", Color.GRAY);
UIManager.put("TabbedPane.highlight", Color.GRAY);
UIManager.put("TabbedPane.focus", Color.GRAY);
UIManager.put("TabbedPane.selectHighlight", Color.GRAY);
UIManager.put("TabbedPane.background", Color.GRAY);
UIManager.put("TabbedPane.background", Color.GRAY);
UIManager.put("TabbedPane.foreground", Color.GRAY);
UIManager.put("TabbedPane.lightHighlight", Color.GRAY);
UIManager.put("TabbedPane.shadow", Color.GRAY);
UIManager.put("TabbedPane.darkShadow", Color.GRAY);
tabbedPane = new JTabbedPane();
This still doesn't remove the yellow line at the top of the text of the selected tab. I'm using JDK 1.4.2 and Windows XP with SP 2. Does anyone have any ideas?
Thanks,
- Raja.