<Swing Dev> [8] Review request for 7161766 - [macosx] javax/swing/JPopupMenu/6694823/bug6694823.java failed on Mac OS X

Alexander Scherbatiy alexandr.scherbatiy at oracle.com
Fri Jun 1 13:45:39 UTC 2012


Could you review the fix for the issue:
bug: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7161766
webrev:  http://cr.openjdk.java.net/~alexsch/7161766/webrev.00/

The system can disallow to overlap the task bar for popup-menu even the 
SecurityManager is not set.
There are systems which default security manager created by new 
SecurityManager() allows to overlap the task bar.

So what it is possible to check is setting the security manager that 
does not allow to be always on top and checking that the popup-menu does 
not overlap the task bar in this case.

The fix sets a SecurityManager that throws the SecurityException for the 
setWindowAlwaysOnTop property and checks that the popup-menu does not 
ovelap the task bar.


More information about the swing-dev mailing list