title: How do I set the opacity of an undecorated JFrame?
body: <p>I've been having trouble setting the opacity of a window that I would like to be able to fade in gradually. For now, I'm going to stick with just setting it mostly transparent and keeping it that way. I've been having trouble doing even that. The following code should remove the window decorations and make it mostly transparent. While the decorations are removed, the window still stays completely opaque. </p>
  
  <pre><code>Color transparent = new Color(((float) 1.0), ((float) 1.0), ((float) 1.0), ((float) 0.25));
  colorPickerWindow.setUndecorated(true);
  colorPickerWindow.setBackground(transparent);
  </code></pre>
  
  <p>Thanks in advance for you help!</p>
  
  <p>Edit: 
  <pre> colorPickerWindow.setOpacity(0.5f);</pre> gives me <pre>java.lang.UnsupportedOperationException: TRANSLUCENT translucency is not supported.</pre></p>