<AWT Dev> RFR: 7110890: reg test TranslucentShapedFrameTest fails to create non-opaque frame
Sergey Bylokhov
serb at openjdk.java.net
Mon Oct 19 23:25:18 UTC 2020
On Mon, 19 Oct 2020 23:10:20 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:
> This manual test was created during the development phase of jdk7 when it was possible to create translucent/non-opaque
> decorated frames. That was changed by the https://bugs.openjdk.java.net/browse/JDK-6993784
> The test allows creating and changing on the fly: translucent/shaped/transparent frames all such windows should be
> undecorated.
test/jdk/java/awt/Window/TranslucentShapedFrameTest/TSFrame.java line 198:
> 196: });
> 197: frame.setPreferredSize(new Dimension(800, 600));
> 198: frame.setUndecorated(true);
This is the main fix, always use undecorated frames.
test/jdk/java/awt/Window/TranslucentShapedFrameTest/TranslucentShapedFrameTest.java line 286:
> 284: createFrameBtn.setEnabled(false);
> 285: disposeFrameBtn.setEnabled(true);
> 286: useSwingCb.setEnabled(false);
Just a usability cleanup - disable some buttons that are noop in some states.
-------------
PR: https://git.openjdk.java.net/jdk/pull/753
More information about the awt-dev
mailing list