JDK-4371580 : JMenu should be updated to work with new focus architecture
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.2.0,1.2.1,1.3.0,1.4.0
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic,windows_95,windows_nt
  • CPU: generic,x86
  • Submitted: 2000-09-15
  • Updated: 2001-01-17
  • Resolved: 2001-01-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.0 betaFixed
Related Reports
Duplicate :  
Duplicate :  
Description
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.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: merlin-beta FIXED IN: merlin-beta INTEGRATED IN: merlin-beta
14-06-2004

EVALUATION Mark, since you've been working on this I'm reassigning it to you. scott.violet@eng 2000-11-27 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. scott.violet@eng 2000-12-20 Additionaly JMenuBar invokes setFocusTraversalKeysEnabled(false) in its constructur. scott.violet@eng 2001-03-05
20-12-2000