<Swing Dev> [9] Review Request for 6866751:
Semyon Sadetsky
semyon.sadetsky at oracle.com
Thu Apr 16 12:55:24 UTC 2015
Hello,
Please review fix for JDK9:
bug: https://bugs.openjdk.java.net/browse/JDK-7072653
webrev: http://cr.openjdk.java.net/~ssadetsky/7072653/webrev.00/
*THE ROOT CAUSE
Incorrect bounds calculation of heavy weight popup window in the
BasicComboPopup when the requested popup menu height exceeds screen height.
Additional issue found: popup border thickness is not taken into account
when popup direction switched to up as the result popup overlaps its
combo-box by 2 pixels.
Also in multi-monitor desktop if screen are arranged vertically popup
can be shown on another monitor.
*SOLUTION
The popup location algorithm is corrected to take into account the
current screen height and border insets.
*TESTING
Test is added to ensure popup window height when combo-box contains 1000
items.
--Semyon
More information about the swing-dev
mailing list