8253147: The javax/swing/JPopupMenu/7154841/bug7154841.java fail on big screens
Reviewed-by: prr
This commit is contained in:
parent
fc36328d4f
commit
65bfe0928a
@ -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.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -84,8 +84,8 @@ public class AlphaColorTest extends Component {
|
|||||||
Color color = new Color(255, 255, 255, 127);
|
Color color = new Color(255, 255, 255, 127);
|
||||||
frame.add("Center", new AlphaColorTest(color));
|
frame.add("Center", new AlphaColorTest(color));
|
||||||
frame.setUndecorated(true);
|
frame.setUndecorated(true);
|
||||||
frame.setLocationRelativeTo(null);
|
|
||||||
frame.pack();
|
frame.pack();
|
||||||
|
frame.setLocationRelativeTo(null);
|
||||||
frame.setVisible(true);
|
frame.setVisible(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2013, 2018, 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.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -52,7 +52,7 @@ public class bug7154841 {
|
|||||||
|
|
||||||
private static void initAndShowUI() {
|
private static void initAndShowUI() {
|
||||||
popupMenu = new JPopupMenu();
|
popupMenu = new JPopupMenu();
|
||||||
for (int i = 0; i < 100; i++) {
|
for (int i = 0; i < 400; i++) {
|
||||||
JRadioButtonMenuItem item = new JRadioButtonMenuItem(" Test " + i);
|
JRadioButtonMenuItem item = new JRadioButtonMenuItem(" Test " + i);
|
||||||
item.addMouseMotionListener(new MouseMotionAdapter() {
|
item.addMouseMotionListener(new MouseMotionAdapter() {
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user