title: How to change a JFrame opacity realtime
body: <p>Is there any good way to change a JFrame opacity real time. right now i need to restart the window to get the opacity</p>
  
  <pre><code>        if (Variables.LoggerOpacity){
          if (AWTUtilities.isTranslucencySupported(AWTUtilities.Translucency.TRANSLUCENT)) {
                AWTUtilities.setWindowOpaque(Frame, true);
                AWTUtilities.setWindowOpacity(Frame, 0.60f);
          }
      }
  </code></pre>
  
  <p>When i use</p>
  
  <pre><code>AWTUtilities.setWindowOpacity(Frame, 0.60f);
  </code></pre>
  
  <p>On a button JCheckBox i won't change the opacity.
  Q: How can i change the opacity realtime?</p>