United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4290715 : Grab/Release Capture

Details
Type:
Enhancement
Submit Date:
1999-11-12
Status:
Closed
Updated Date:
1999-12-22
Project Name:
JDK
Resolved Date:
1999-12-22
Component:
client-libs
OS:
solaris_2.6,windows_nt,solaris_2.5.1,generic,windows_95
Sub-Component:
java.awt
CPU:
x86,sparc,generic
Priority:
P3
Resolution:
Not an Issue
Affected Versions:
1.0.1,1.0.2,1.1.4,1.1.5,1.1.6,1.2.0,1.4.0
Fixed Versions:

Related Reports
Duplicate:
Duplicate:

Sub Tasks

Description

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. 
======================================================================

                                    

Comments
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
                                     
2000-06-21
PUBLIC COMMENTS

Work Around provided.
                                     
2004-06-10
SUGGESTED FIX

See Work Around.

                                     
2004-06-11
EVALUATION

Provided Work Around.

Refer to 4311449 for more evaluation.
                                     
2004-06-11



Hardware and Software, Engineered to Work Together