Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JTabbedPane Transparency

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);
like image 364
sl133 Avatar asked May 20 '26 12:05

sl133


1 Answers

If you add

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

Then this solves the opacity problem.

like image 123
sl133 Avatar answered May 22 '26 02:05

sl133



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!