< prev index next >

test/java/awt/Window/MultiWindowApp/ChildAlwaysOnTopTest.java

Print this page

        

*** 87,97 **** win1.setVisible(true); } }); Robot robot = new Robot(); ! robot.delay(200); robot.waitForIdle(); SwingUtilities.invokeAndWait(new Runnable() { @Override public void run() { --- 87,97 ---- win1.setVisible(true); } }); Robot robot = new Robot(); ! robot.delay(500); robot.waitForIdle(); SwingUtilities.invokeAndWait(new Runnable() { @Override public void run() {
*** 99,109 **** win2.setBounds(win1.getBounds()); win2.setVisible(true); } }); ! robot.delay(200); robot.waitForIdle(); Color color = robot.getPixelColor(point.x + 100, point.y + 100); if(!color.equals(Color.GREEN)) { win1.dispose(); --- 99,109 ---- win2.setBounds(win1.getBounds()); win2.setVisible(true); } }); ! robot.delay(500); robot.waitForIdle(); Color color = robot.getPixelColor(point.x + 100, point.y + 100); if(!color.equals(Color.GREEN)) { win1.dispose();
*** 121,131 **** parent.toFront(); } } }); ! robot.delay(200); robot.waitForIdle(); color = robot.getPixelColor(point.x + 100, point.y + 100); if(!color.equals(Color.GREEN)) { win1.dispose(); --- 121,131 ---- parent.toFront(); } } }); ! robot.delay(500); robot.waitForIdle(); color = robot.getPixelColor(point.x + 100, point.y + 100); if(!color.equals(Color.GREEN)) { win1.dispose();
*** 144,154 **** } win2.toFront(); } }); ! robot.delay(200); robot.waitForIdle(); color = robot.getPixelColor(point.x + 100, point.y + 100); if(!color.equals(Color.RED)) { throw new RuntimeException("Failed to unset alawaysOnTop " + color); --- 144,154 ---- } win2.toFront(); } }); ! robot.delay(500); robot.waitForIdle(); color = robot.getPixelColor(point.x + 100, point.y + 100); if(!color.equals(Color.RED)) { throw new RuntimeException("Failed to unset alawaysOnTop " + color);
< prev index next >