We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 984d7f9 commit b7fcd0bCopy full SHA for b7fcd0b
test/jdk/java/awt/MenuItem/SetLabelTest.java
@@ -1,5 +1,5 @@
1
/*
2
- * Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2023, 2025, Oracle and/or its affiliates. All rights reserved.
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
*
5
* This code is free software; you can redistribute it and/or modify it
@@ -120,7 +120,7 @@ private void showPopup(MouseEvent e) {
120
});
121
frame.setMenuBar(mb);
122
frame.setSize(300, 200);
123
- frame.setLocation(500,500);
+ frame.setLocationRelativeTo(null);
124
frame.setVisible(true);
125
}
126
0 commit comments