Skip to content

Commit

Permalink
8253147: The javax/swing/JPopupMenu/7154841/bug7154841.java fail on b…
Browse files Browse the repository at this point in the history
…ig screens

Reviewed-by: phh
Backport-of: 65bfe0928af3de1811bfc445fa4bfc0b117f3b96
  • Loading branch information
GoeLin committed Nov 17, 2021
1 parent c2cda03 commit 394a5de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/jdk/java/awt/ColorClass/AlphaColorTest.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -84,8 +84,8 @@ public void paint(Graphics g) {
Color color = new Color(255, 255, 255, 127);
frame.add("Center", new AlphaColorTest(color));
frame.setUndecorated(true);
frame.setLocationRelativeTo(null);
frame.pack();
frame.setLocationRelativeTo(null);
frame.setVisible(true);
}
}
4 changes: 2 additions & 2 deletions test/jdk/javax/swing/JPopupMenu/7154841/bug7154841.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -50,7 +50,7 @@ public class bug7154841 {

private static void initAndShowUI() {
popupMenu = new JPopupMenu();
for (int i = 0; i < 100; i++) {
for (int i = 0; i < 400; i++) {
JRadioButtonMenuItem item = new JRadioButtonMenuItem(" Test " + i);
item.addMouseMotionListener(new MouseMotionAdapter() {
@Override
Expand Down

0 comments on commit 394a5de

Please sign in to comment.