title: Is it possible to have a translucent windows in java 7 including a title bar?
body: <p>Related to this question:
  <a href="https://stackoverflow.com/questions/6259269/is-the-java-tutorials-translucent-window-example-giving-trouble-to-those-playing">Is The Java Tutorials Translucent Window example giving trouble to those playing with jdk7?</a></p>
  
  <p>with jdk1.6.0_26 I seem to be able to apply translucency to a JFrame, but not so with jre7:</p>
  
  <p>NativeException: java.awt.IllegalComponentStateException: The frame is decorated</p>
  
  <p>ex (jruby scripting java, works jdk1.6 not with jdk7 though):</p>
  
  <pre>
  
  require 'java'
  
  class MouseDraw
  
    def self.go
      java_import 'javax.swing.JFrame'
      java_import 'com.sun.awt.AWTUtilities'
  
      f = JFrame.new
      AWTUtilities.set_window_opacity(f, 0.5)
      f.set_size 200,200
      f.show
    end
  
  end
  MouseDraw.go
  </pre>
  
  <p>So my question is "is it possible to have a translucent title bar in jdk7" (I would like a transparent window I'm creating to be draggable/resizable)</p>