Transparent swing gui

Hi all,



I'm using swing for gui stuff and have a problem. JInternalframes can be made transparent, but require custom code for removing decorations (borders, titlebar), JFrames can be undecorated but not made transparent…



Anybody using swing who has succeeded in creating a transparent window?



Please do not post anything about using gui system x/y instead of swing, this will not solve my problem.

since java 6u10 you can make JFrames transparent and funny shaped:

http://java.sun.com/developer/technicalArticles/GUI/translucent_shaped_windows/#API-Overview

"JMEDesktop" has a "setBackground" method which allows you make it transparent by altering the alpha value in the color.

I found out, that I can use JInternalFrame and set the titlebar to null:

((javax.swing.plaf.basic.BasicInternalFrameUI)

      myInternalFrame.getUI()).setNorthPane(null);





thnx for the suggestions, I'll have a look at the new v6 ui handling, the demo looks fine