JDK-6526971 : 6458497 still reproducible with 7.0 b06 and b07
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: windows
  • CPU: x86
  • Submitted: 2007-02-21
  • Updated: 2011-02-14
  • Resolved: 2011-02-14
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.
JDK 7
7Resolved
Related Reports
Relates :  
Description
According to SQE, the problem described in 6458497 still reproducible with jdk 7.0 b07 
(however I was unable to reproduce it :(  Here is a test which was used to reproduce the
problem.

import java.awt.*;
import javax.swing.*;

public class AltTab {
  public static void main(String[] args) {
    try {
        UIManager.setLookAndFeel(UIManager
             .getSystemLookAndFeelClassName());
    } catch(Exception e) {
    }
    JFrame frame = new JFrame("Alt-Tab Frame");
    JMenuBar menuBar = new JMenuBar();
    frame.setJMenuBar(menuBar);
    JMenu fileMenu = new JMenu("File");
    char fileMenuMnemonic = 'F';
    fileMenu.setMnemonic(fileMenuMnemonic);
    menuBar.add(fileMenu);
    frame.setSize(100,100);
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.setVisible(true);
  }
}

Comments
EVALUATION I tested the provided test and don't see any difference from the native windows applications, closed as not reproducible
14-02-2011

EVALUATION te problem is reproduced with the test from the description, however if I add menu itme to file menu the problem is not reproducible. I've verified that in case of non-empty menu Swing calls SunToolkit.grab() and ungrab(), but for empty menu it doesn't. I think it will be faster if Swing team will look at this first becaus it is hard to understand what Swing tries to do in this case.
05-06-2007