JTabbedPane Transparency

3.9k views Asked by At

How do you set the actual content pane's background to be Opaque, the panels that I add to it I have already set Opaque but the tabbedpane main area keeps showing up as blue even when I do

JTabbedPane tabbedPane = new JTabbedPane();
tabbedPane.setOpaque(false);
1

There are 1 answers

2
sl133 On BEST ANSWER

If you add

UIManager.put("TabbedPane.contentOpaque", false);
JTabbedPane tabbedPane = new JTabbedPane();

Then this solves the opacity problem.