Lines Matching refs:setWindowOpacity
27 @summary Tests the AWTUtilities.get/setWindowOpacity() methods
82 AWTUtilities.setWindowOpacity(null, 0.5f);
87 fail("setWindowOpacity() allows passing null.");
100 AWTUtilities.setWindowOpacity(f, -0.5f);
105 fail("setWindowOpacity() allows passing negative opacity level.");
112 AWTUtilities.setWindowOpacity(f, 1.5f);
117 fail("setWindowOpacity() allows passing opacity level greater than 1.0.");
121 AWTUtilities.setWindowOpacity(f, 0.5f);
125 fail("getWindowOpacity() reports the opacity level that differs from the value set with setWindowOpacity: " + curOpacity);
129 AWTUtilities.setWindowOpacity(f, 0.75f);
133 fail("getWindowOpacity() reports the opacity level that differs from the value set with setWindowOpacity the second time: " + curOpacity);
144 fail("getWindowOpacity() reports the opacity level that differs from the value set with setWindowOpacity before showing the frame: " + curOpacity);
149 AWTUtilities.setWindowOpacity(f, 0.5f);
154 fail("getWindowOpacity() reports the opacity level that differs from the value set with setWindowOpacity after showing the frame: " + curOpacity);