< prev index next >

test/jdk/java/awt/Focus/ShowFrameCheckForegroundTest/ShowFrameCheckForegroundTest.java

Print this page

        

*** 64,74 **** } public void start() { showButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { ! testToplevel.setVisible(true); } }); nofocusFrame.add(showButton); nofocusFrame.pack(); nofocusFrame.setFocusableWindowState(false); --- 64,74 ---- } public void start() { showButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { ! Util.showWindowWait(testToplevel); } }); nofocusFrame.add(showButton); nofocusFrame.pack(); nofocusFrame.setFocusableWindowState(false);
*** 96,109 **** toplevel.pack(); toplevel.setLocation(400, 200); switch (stage) { case 1: ! toplevel.setVisible(true); break; case 2: testToplevel = toplevel; Util.clickOnComp(showButton, robot); break; } Util.waitForIdle(robot); --- 96,111 ---- toplevel.pack(); toplevel.setLocation(400, 200); switch (stage) { case 1: ! Util.showWindowWait(toplevel); break; case 2: testToplevel = toplevel; + Util.showWindowWait(nofocusFrame); + Util.waitForIdle(robot); Util.clickOnComp(showButton, robot); break; } Util.waitForIdle(robot);
< prev index next >