United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 7124430 [macosx] LWCToolkit.grab() and LWCToolkit.ungrab() events are not implemented yet
7124430 : [macosx] LWCToolkit.grab() and LWCToolkit.ungrab() events are not implemented yet

Details
Type:
Bug
Submit Date:
2011-12-23
Status:
Closed
Updated Date:
2012-05-17
Project Name:
JDK
Resolved Date:
2012-03-23
Component:
client-libs
OS:
os_x
Sub-Component:
java.awt
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
7u4

Related Reports
Relates:

Sub Tasks

Description
http://java.net/jira/browse/MACOSX_PORT-22 submitted 2011/04/19 by Alexander Zuev
Because of these two methods are missing the Swing Menu functionality does not work as expected - menus are not closed on mouse clicks outside of menus, keyboard navigation does not work at all.

                                    

Comments
EVALUATION

Current version: http://cr.openjdk.java.net/~ant/7124430/webrev.3/

Contains a fix to a "click to another frame's title" scenario along with adding it to the reg test.
                                     
2012-01-18
SUGGESTED FIX

reg test: test/java/awt/Window/Grab/GrabTest.java
risk: low
macosx only changes
                                     
2012-01-18
EVALUATION

The statement that it's not possible to catch mouse clicks in frame's title appeared to be wrong. See the Comments section.

The updated webrev with -[NSWindow sendEvent:] overriden:

webrev: http://cr.openjdk.java.net/~ant/7124430/webrev.1/
                                     
2012-01-17
EVALUATION

The cases mentioned in the UngrabEvent class description is implemented. Though, cocoa doesn't provide API to track mouse events happend on a frame's title, so this case is not covered.

webrev: http://cr.openjdk.java.net/~ant/7124430/webrev.1/
                                     
2012-01-13
EVALUATION

A link to some focus discussion of the title bar issue:

http://www.cocoabuilder.com/archive/cocoa/6725-catching-mousedown-in-an-nswindow-titlebar.html
                                     
2012-01-13
EVALUATION

Author: Artem Ananiev Date: 16/May/11 07:57 AM
Not a blocker issue, lowering priority to Major.
                                     
2011-12-23



Hardware and Software, Engineered to Work Together