File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes JTabbedPane color Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTabbedPane color" Watch "JTabbedPane color" New topic

JTabbedPane color

N Ganesh

Joined: Jan 27, 2006
Posts: 5
Can I have the same, background and foreground color, for all the panes in a JTabbedPane whether they are selected or not.

Currently, if I set background color as orange and foreground color as white, I am getting that combination for the unselected panes.

But the selected pane's background is coming as blue only (the default for java).

Kindly help me out on this.

N Ganesh
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
It is sorta covered in the JavaRanch Style Guide.
subject: JTabbedPane color
Similar Threads
JComboBox: Opaque problem
foreground color
Can I change the back/foreground color of a disabled JComboBox?
How to give color for JRadioButtons?