Also, for OS X bugs, please add "macosx-port-...@openjdk.java.net" to the CC
On Mar 27, 2013, at 5:45 PM, Vladislav Karnaukhov <vladislav.karnauk...@oracle.com> wrote: > Hello, > > please review a fix for 8010721. > > bug: http://bugs.sun.com/view_bug.do?bug_id=8010721 > webrev: http://cr.openjdk.java.net/~vkarnauk/8010721/jdk8/webrev.00/ > > This implementation handles a scenario when a modal dialog is shown: in this > case we dim main window' menu bar items (if any). > > However, there are 2 issues that I'd like to discuss: > 1. Apple JDK always hides the menu bar when a new *form* doesn't have any. My > realization keeps the main form' menu bar if a new form is shown. I wasn't > able to determine a way to distinguish a Frame from a Dialog: both of them > are AWTWindow. > > 2. Could you please provide ideas for tests (if we need them here)? When a > modal dialog is being shown, can we access the menu bar to check if items > became dimmed? > > Regards, > - Vlad