JDK-4290715 : Grab/Release Capture
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version:
    1.0.1,1.0.2,1.1.4,1.1.5,1.1.6,1.2.0,1.4.0 1.0.1,1.0.2,1.1.4,1.1.5,1.1.6,1.2.0,1.4.0
  • Priority: P3
  • Status: Closed
  • Resolution: Not an Issue
  • OS:
    generic,solaris_2.5.1,solaris_2.6,windows_95,windows_nt generic,solaris_2.5.1,solaris_2.6,windows_95,windows_nt
  • CPU: generic,x86,sparc
  • Submitted: 1999-11-12
  • Updated: 1999-12-22
  • Resolved: 1999-12-22
Related Reports
Duplicate :  
Duplicate :  

Name: lb39792			Date: 11/11/99

When a user clicks on the desktop area in Windows or Solaris, there 
is currently no way to cancel visible pulldown, popup, or tool tip windows that 
are lightweight components. Two simple functions can be added to Component, 
grabCapture() and releaseCapture() to facilitate this. 

EVALUATION Provided Work Around. Refer to 4311449 for more evaluation.

SUGGESTED FIX See Work Around.

PUBLIC COMMENTS Work Around provided.

WORK AROUND Add WindowListener for windowDeactivated to the parent container of the JPopUpMenu. On the WindowDectivated invoke JPopUpMenu.setVisable(false) richard.ray@eng 1999-12-22 Here's a workaround for pull-down menu: frame.addWindowListener(new WindowAdapter() { public void windowDeactivated(WindowEvent e) { MenuSelectionManager.defaultManager().clearSelectedPath(); } }); ioi.lam@eng 2000-06-21