JDK-6826397 : PIT : Frame System Menu is not seen for when ALT + Space Bar is pressed in jdk7 b55 build.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 5.0,6u22,7
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS:
    windows_xp,windows_2008,windows_vista,windows_7 windows_xp,windows_2008,windows_vista,windows_7
  • CPU: x86
  • Submitted: 2009-04-04
  • Updated: 2014-06-11
  • Resolved: 2011-04-08
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
7 b134Fixed
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
I have a frame which contains few buttons to test translucent & shaped window. When the frame is visible , i press ALT + Space bar. The frame's system meny is not seen. I need to press the keys several time to see the system menu. This works fine in jdk6u12 & jdk6u14. Hence its a regression .  Frame system menu is usefull when we want to move the frame when the frame is shaped or frame  is undecorated. close the frame etc. 

Step to Reproduce :-
----------------------
1) Run the attached testcase.
2) Press ALT + Space bar. If frame's system menu is not seen after then the bug is reproduced. 
3) Click on different buttons on the frame , when the translucent or shaped window is seen,  Press ALT + Space bar. If frame's system menu is not seen after then the bug is reproduced. 

I tested this in  jdk7 b55 pit build

Comments
5-wnf added, we have no plans to fix it in JDK5
11-06-2014

EVALUATION The fix eliminates the child "focus proxy" window. And after the fix, the frame always acts as a native focus owner.
01-03-2011

SUGGESTED FIX http://sa.sfbay.sun.com/projects/awt_data/7/6826397/
01-03-2011

EVALUATION The failure was caused by the changes for 6806217 (implement synthetic focus model for MS Windows). After the fix any window (not only simple windows but frames as well) has its own focus proxy window. So if user activates a frame and presses ALT+SPACE, then all native key events now will come to ProxyWindowProc. It looks like there is something that prevents calling ::DefWindowProc for these key events on the frame's hwnd.
30-09-2009