JDK-6203291 : JPopupMenu must use window extended style WS_EX_TOOLWINDOW
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2004-12-02
  • Updated: 2011-01-19
  • Resolved: 2007-05-18
Related Reports
Relates :  
Relates :  
Description
FULL PRODUCT VERSION :
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode)

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]

A DESCRIPTION OF THE PROBLEM :
When a JPopupMenu is displayed as a heavyweight component (i.e. when it has no invoker or is displayed outside the bounds of its invoker) then the heavyweight component must have the window extended style WS_EX_TOOLWINDOW in order to act as a native popup menu under win32. This guarantees that the window does not get listed in ALT-TAB as the current implementation does.

REPRODUCIBILITY :
This bug can be reproduced always.


Comments
EVALUATION The bug is not reproducible starting from JDK 6 and therefore is closed.
18-05-2007

EVALUATION Support for this would be needed in AWT. Swing taking advantage of it would come afterwards if necessary. ###@###.### 2004-12-02 19:56:29 GMT Need to implement some private API that would allow SWING to create window of specific type. ###@###.### 2005-06-06 11:46:24 GMT
02-12-2004