7124401: [macosx] After call Frame dispose() application continues to work
Reviewed-by: art, alexp
--- a/jdk/test/sun/java2d/X11SurfaceData/SharedMemoryPixmapsTest/SharedMemoryPixmapsTest.java Thu Apr 05 18:27:16 2012 +0400
+++ b/jdk/test/sun/java2d/X11SurfaceData/SharedMemoryPixmapsTest/SharedMemoryPixmapsTest.java Thu Apr 05 19:01:43 2012 +0400
@@ -54,8 +54,12 @@
public SharedMemoryPixmapsTest() {
testFrame = new Frame("SharedMemoryPixmapsTest");
testFrame.add(new TestComponent());
+ testFrame.setUndecorated(true);
+ testFrame.setResizable(false);
testFrame.pack();
+ testFrame.setLocationRelativeTo(null);
testFrame.setVisible(true);
+ testFrame.toFront();
}
public static void main(String[] args) {