Skip to content

Commit bad38a0

Browse files
davidalayachewliach
authored andcommitted
8365643: JShell EditPad out of bounds on Windows
Reviewed-by: liach, aivanov, cstein, jlahoda
1 parent 285adff commit bad38a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/jdk.editpad/share/classes/jdk/editpad/EditPad.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -89,14 +89,14 @@ public void windowClosing(WindowEvent e) {
8989
closer.run();
9090
}
9191
});
92-
jframe.setLocationRelativeTo(null);
9392
jframe.setLayout(new BorderLayout());
9493
JTextArea textArea = new JTextArea(initialText);
9594
textArea.setFont(new Font("monospaced", Font.PLAIN, 13));
9695
jframe.add(new JScrollPane(textArea), BorderLayout.CENTER);
9796
jframe.add(buttons(closer, textArea), BorderLayout.SOUTH);
9897

9998
jframe.setSize(800, 600);
99+
jframe.setLocationRelativeTo(null);
100100
jframe.setVisible(true);
101101
}
102102

0 commit comments

Comments
 (0)