<Swing Dev> 8071705: Java application menu misbehaves when running multiple screen stacked vertically

Alexander Scherbatiy alexandr.scherbatiy at oracle.com
Wed Jan 28 14:14:49 UTC 2015


On 1/27/2015 11:02 PM, Mario Torre wrote:
> Hi all,
>
> I've just created this bug:
>
> https://bugs.openjdk.java.net/browse/JDK-8071705
>
> Basically, there's a problem when using menus with a dual (or more)
> monitor configuration and the screens are stacked one on top of the
> other.
>
> In this case, the JMenu code that calculates the position for the popup
> does not account the screen bounds relative y coordinate, resulting in
> application that have popups on the bottom side of the second screen to
> have their popup growing upward even if there is space downward.
>
> A proposed fix for the issue is here:
>
> http://cr.openjdk.java.net/~neugens/8071705/webrev.00/
>
> I need to create an automated test case, however I'm not entirely sure
> how to do that (since it needs a dual screen setup). Perhaps a manual
> test will do?
    You can check number of screen devices and pass the test in case 
there is only one screen.

   Thanks,
   Alexandr.

>
> Cheers,
> Mario
>




More information about the swing-dev mailing list