Now that the new focus architecture has been putback, the Swing team should
reevaluate the JMenu/JMenuBar/JMenuItem code to see if portions of it can be
implemented more effectively.
In particular, we would like to see the dependency on isManagingFocus removed.
JMenus should also generate temporary FOCUS_GAINED and FOCUS_LOST events when
opened instead of the permanent events they currently generate.
BugTraq+ Release Management Values
COMMIT TO FIX:
Mark, since you've been working on this I'm reassigning it to you.
JPopupMenu will now invoke requestFocus(true) so that the temporary property of the FocusEvent is correctly set.
As part of this, JComponent now exposes requestFocus(boolean) and requestFocusInWindow(boolean) as public.
Additionaly JMenuBar invokes setFocusTraversalKeysEnabled(false) in its constructur.