< prev index next >

test/java/awt/Mixing/AWT_Mixing/HierarchyBoundsListenerMixingTest.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.

@@ -83,11 +83,11 @@
         HierarchyBoundsListener listener = new HierarchyBoundsListenerImpl();
         for (int i = 0; i < components.length; i++) {
             components[i].addHierarchyBoundsListener(listener);
             frame.add(components[i]);
         }
-        frame.setSize(300, 300);
+        frame.setBounds(100, 100, 300, 300);
         frame.setVisible(true);
     }
 
     private int frameBorderCounter() {
         String JAVA_HOME = System.getProperty("java.home");

@@ -389,12 +389,12 @@
     private int keyDelay = 50;
     private int moveCount = 0;
     private int resizeCount = 0;
 
     private boolean passed = true;
-    private boolean moveTriggered = false;
-    private boolean resizeTriggered = false;
+    private volatile boolean moveTriggered = false;
+    private volatile boolean resizeTriggered = false;
     private final Object moveLock = new Object();
     private final Object resizeLock = new Object();
 
     private boolean check = false;
 
< prev index next >