JDK-7124430 : [macosx] LWCToolkit.grab() and LWCToolkit.ungrab() events are not implemented yet
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: os_x
  • CPU: generic
  • Submitted: 2011-12-23
  • Updated: 2015-05-07
  • Resolved: 2012-03-23
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
7u4 b11Fixed
Related Reports
Relates :  
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
SUGGESTED FIX reg test: test/java/awt/Window/Grab/GrabTest.java risk: low macosx only changes
18-01-2012

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.
18-01-2012

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/
17-01-2012

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
13-01-2012

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/
13-01-2012

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