mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-14 09:53:18 +00:00
8253905: Update sanity test suite to not place windows at (0,0)
Reviewed-by: shurailine, serb
This commit is contained in:
parent
f71f9dc93a
commit
8066b33c40
@ -154,6 +154,7 @@ public class DialogDemo extends JPanel {
|
||||
frame.add(demo);
|
||||
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
frame.pack();
|
||||
frame.setLocationRelativeTo(null);
|
||||
frame.setVisible(true);
|
||||
demo.start();
|
||||
}
|
||||
|
||||
@ -264,6 +264,7 @@ FrameDemo demo = new FrameDemo();
|
||||
frame.add(demo);
|
||||
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
frame.pack();
|
||||
frame.setLocationRelativeTo(null);
|
||||
frame.setVisible(true);
|
||||
demo.start();
|
||||
}
|
||||
|
||||
@ -615,6 +615,7 @@ public class TableDemo extends JPanel {
|
||||
TableDemo demo = new TableDemo();
|
||||
frame.add(demo);
|
||||
frame.setSize(700, 400);
|
||||
frame.setLocationRelativeTo(null);
|
||||
frame.setVisible(true);
|
||||
demo.start();
|
||||
}
|
||||
|
||||
@ -152,6 +152,7 @@ public final class WindowDemo extends JPanel {
|
||||
WindowDemo demo = new WindowDemo();
|
||||
frame.add(demo);
|
||||
frame.pack();
|
||||
frame.setLocationRelativeTo(null);
|
||||
frame.setVisible(true);
|
||||
demo.start();
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user