8190348: [TESTBUG] Test javax/swing/JWindow/ShapedAndTranslucentWindows/PerPixelTranslucentCanvas.java fails
Reviewed-by: serb, psadhukhan
Contributed-by: pankaj.b.bansal@oracle.com
--- a/test/jdk/javax/swing/JWindow/ShapedAndTranslucentWindows/PerPixelTranslucentCanvas.java Wed Nov 22 11:52:59 2017 +0530
+++ b/test/jdk/javax/swing/JWindow/ShapedAndTranslucentWindows/PerPixelTranslucentCanvas.java Wed Nov 22 12:05:06 2017 +0530
@@ -33,12 +33,13 @@
* @library ../../../../lib/testlibrary
* @build Common ExtendedRobot
* @run main PerPixelTranslucentCanvas
+ * @run main/othervm -Dsun.java2d.uiScale=1.5 PerPixelTranslucentCanvas
*/
public class PerPixelTranslucentCanvas extends Common {
JPanel center;
- Color OVAL_COLOR = Color.BLUE;
+ static Color OVAL_COLOR = Color.BLUE;
public static void main(String[] ignored) throws Exception {
FG_COLOR = new Color(200, 0, 0, 100);