<Swing Dev> RFR: 8253147: The javax/swing/JPopupMenu/7154841/bug7154841.java fail on big screens
Sergey Bylokhov
serb at openjdk.java.net
Tue Sep 15 06:37:54 UTC 2020
On Tue, 15 Sep 2020 06:29:04 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:
> This test creates a big popup menu and assumes that 100 popup items overlap the screen height, but on some big screens
> more items should be added. + small cleanup
test/jdk/java/awt/ColorClass/AlphaColorTest.java line 89:
> 87: frame.pack();
> 88: frame.setLocationRelativeTo(null);
> 89: frame.setVisible(true);
That was a "typo" to place the window to the center of the screen we need to pack/setSize/setBounds and then
setLocationRelativeTo
-------------
PR: https://git.openjdk.java.net/jdk/pull/165
More information about the swing-dev
mailing list