7124401: [macosx] After call Frame dispose() application continues to work
authorserb
Thu, 05 Apr 2012 19:01:43 +0400
changeset 12397 190dad37ff56
parent 12396 79c64c6eb61e
child 12398 8e4c529b8184
7124401: [macosx] After call Frame dispose() application continues to work Reviewed-by: art, alexp
jdk/test/sun/java2d/X11SurfaceData/SharedMemoryPixmapsTest/SharedMemoryPixmapsTest.java
--- 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) {