8256201: java/awt/FullScreen/FullscreenWindowProps/FullscreenWindowProps.java failed

Reviewed-by: jdv
This commit is contained in:
Sergey Bylokhov 2020-11-12 17:00:15 +00:00
parent 3e70aac5cc
commit 1c0b490c28

View File

@ -55,6 +55,7 @@ public final class FullscreenWindowProps {
}
};
try {
frame.setUndecorated(true); // workaround JDK-8256257
frame.setBackground(Color.MAGENTA);
frame.setVisible(true);
gd.setFullScreenWindow(frame);
@ -99,4 +100,4 @@ public final class FullscreenWindowProps {
throw new RuntimeException(prop + " is wrong");
}
}
}
}