How to make JTabbedPane transparent?

B

bernd_no_junk

Hi,

does anybody know, how to make a JTabbedPane transparent?
I tried setOpaque(false) on the JTabbedPane and all
its tab-panes, but it doesn't work.

Thanks for your help.

Bernd
 
B

Bernd

Hi,

does anybody know, how to make a JTabbedPane transparent?
I tried setOpaque(false) on the JTabbedPane and all
its tab-panes, but it doesn't work.

Thanks for your help.

Bernd

Ok, i found a workaround for the problem.

Perhaps this is useful for somebody else:

I had a look at the java source code, then - after some
trial and error- implemented a new TabbedPaneUI by overriding
a couple of methods. That did it.

If somebody knows a more elegant way, please post.

Greetings

Bernd
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top