Skip to content

Commit b7fcd0b

Browse files
manukumarvsaivanov-jdk
authored andcommitted
8359889: java/awt/MenuItem/SetLabelTest.java inadvertently triggers clicks on items pinned to the taskbar
Reviewed-by: aivanov, kizune
1 parent 984d7f9 commit b7fcd0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/jdk/java/awt/MenuItem/SetLabelTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2023, 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
@@ -120,7 +120,7 @@ private void showPopup(MouseEvent e) {
120120
});
121121
frame.setMenuBar(mb);
122122
frame.setSize(300, 200);
123-
frame.setLocation(500,500);
123+
frame.setLocationRelativeTo(null);
124124
frame.setVisible(true);
125125
}
126126

0 commit comments

Comments
 (0)