JDK-8156592 : JFXPanel should use the new FocusEvent.getCause() API
  • Type: Bug
  • Component: javafx
  • Sub-Component: swing
  • Affected Version: 9
  • Priority: P5
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-05-09
  • Updated: 2017-08-17
  • Resolved: 2017-08-17
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 10
10Fixed
Related Reports
Relates :  
Relates :  
Description
The fix for JDK-8080395 introduced new public API for getting the cause of a FocusEvent. It also removed (by making package-private) sun.awt.CausedFocusEvent, which caused exceptions in JFXPanel (see JDK-8156591).

The fix for JDK-8156591 commented out the calls to sun.awt.CausedFocusEvent. Once we upgrade to a newer boot JDK that includes the new FocusEvent.getCause() API we can use the new API and uncomment the code that determines the focus cause. This is a low-priority bug, since the focus cause is currently unused, so there are currently no functional problems in leaving the code commented out.
Comments
Changeset: d1a67396d4a7 Author: psadhukhan Date: 2017-08-17 11:35 +0530 URL: http://hg.openjdk.java.net/openjfx/10-dev/rt/rev/d1a67396d4a7 8156592: JFXPanel should use the new FocusEvent.getCause() API Reviewed-by: azvegint
17-08-2017

Looks fine
10-08-2017

Request to review this fix http://cr.openjdk.java.net/~psadhukhan/fx/8156592/webrev.00/
09-08-2017