7124401: [macosx] After call Frame dispose() application continues to work

Reviewed-by: art, alexp
This commit is contained in:
Sergey Bylokhov 2012-04-05 19:01:43 +04:00
parent 90430b3f49
commit 09db79364b

View File

@ -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) {