test/java/awt/Mixing/AWT_Mixing/JGlassPaneMoveOverlapping.java

Print this page

        

*** 30,39 **** --- 30,40 ---- import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import javax.swing.JFrame; import javax.swing.JInternalFrame; import javax.swing.SwingUtilities; + import test.java.awt.regtesthelpers.Util; /** * AWT/Swing overlapping test with JInternalFrame being moved in GlassPane. * See <a href="https://bugs.openjdk.java.net/browse/JDK-6637655">JDK-6637655</a> and * <a href="https://bugs.openjdk.java.net/browse/JDK-6981919">JDK-6981919</a>.
*** 42,51 **** --- 43,54 ---- /* @test @bug 6637655 6981919 @summary Overlapping test for javax.swing.JScrollPane @author sergey.grinev@oracle.com: area=awt.mixing + @library ../../regtesthelpers + @build Util @run main JGlassPaneMoveOverlapping */ public class JGlassPaneMoveOverlapping extends OverlappingTestBase { private boolean lwClicked = true;
*** 68,78 **** frameLoc.translate(frame.getWidth()/2, 3); } }); } catch (Exception e) { e.printStackTrace(); ! System.exit(1); } // run robot Robot robot = Util.createRobot(); robot.setAutoDelay(ROBOT_DELAY); --- 71,81 ---- frameLoc.translate(frame.getWidth()/2, 3); } }); } catch (Exception e) { e.printStackTrace(); ! throw new RuntimeException("Where is internal frame?"); } // run robot Robot robot = Util.createRobot(); robot.setAutoDelay(ROBOT_DELAY);