当前位置: 动力学知识库 > 问答 > 编程问答 >

java - 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);

网友答案:

If you add

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

Then this solves the opacity problem.

分享给朋友:
您可能感兴趣的文章:
随机阅读: