From 09db79364b41fc03ef27e7563b75fea0eff10861 Mon Sep 17 00:00:00 2001 From: Sergey Bylokhov Date: Thu, 5 Apr 2012 19:01:43 +0400 Subject: [PATCH] 7124401: [macosx] After call Frame dispose() application continues to work Reviewed-by: art, alexp --- .../SharedMemoryPixmapsTest/SharedMemoryPixmapsTest.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jdk/test/sun/java2d/X11SurfaceData/SharedMemoryPixmapsTest/SharedMemoryPixmapsTest.java b/jdk/test/sun/java2d/X11SurfaceData/SharedMemoryPixmapsTest/SharedMemoryPixmapsTest.java index 49f517e552a..23b8de1b4a3 100644 --- a/jdk/test/sun/java2d/X11SurfaceData/SharedMemoryPixmapsTest/SharedMemoryPixmapsTest.java +++ b/jdk/test/sun/java2d/X11SurfaceData/SharedMemoryPixmapsTest/SharedMemoryPixmapsTest.java @@ -54,8 +54,12 @@ public class SharedMemoryPixmapsTest { 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) {