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
Use com.sun.awt.AWTUtilities.setWindowOpacity(w, 0.5f) in JDK 7.
com.sun.awt.AWTUtilities.setWindowOpacity(w, 0.5f)
See here.