Here\'s the example.
If you build and run TranslucentWindow in let\'s say, NetBeans IDE 7.0, which supports jdk7, you\'ll get the following exception:<
TranslucentWindow
I think you need to setUndecorated before setBackground this will fix the problem