United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-7160083 : Refactor Window, WindowFactory and PluginWindowFactory for Fx on Mac

Details
Type:
Enhancement
Submit Date:
2012-04-09
Status:
Closed
Updated Date:
2013-10-17
Project Name:
JDK
Resolved Date:
2012-04-21
Component:
deploy
OS:
os_x
Sub-Component:
plugin
CPU:
x86
Priority:
P2
Resolution:
Fixed
Affected Versions:
7u6
Fixed Versions:

Related Reports
Backport:

Sub Tasks

Description
Currently, com.sun.deploy.uitoolkit.impl.fx.FxWindow only takes one paramter in its constructor -- the pointer to a parent HWND or Xtoolkit equivalent. On Mac this isn't right. The parent will always be 0, and the embedded Fx frame needs to talk to a remote server for cross-process layer sharing.

This bug tracks the needed changes so the CA rendering server can be passed into FxWindow, and to get the knowledge of communicating the remote CALayer's ID back to the plugin server process out of PluginEmbeddedFrame on the Mac. This will let us minimize the code we need to expose to JavaFx.
Since I now have a preliminary set of changes on the Fx side to support this, I'm expanding this bug to cover all changes needed to support JavaFx in applets and Web Start on the Mac. Specifically:

-- changes to handle a different OS name broke the check to see if JavaFx is supported on Mac.
-- Legacy Apple JVMs are being reported as available for use and shouldn't be
-- Mismatch in cache location between system_md.c and Java code.

We also need to generate proper mime types that indicate Fx is available and installed, but this is in a separate bug.

                                    

Comments
Code re-factoring. And no regression found.
                                     
2013-10-17
EVALUATION

Fixed as described. Main change is that com.sun.deploy.uitoolkit.Window has a new method getWindowLayerID.
                                     
2012-04-13



Hardware and Software, Engineered to Work Together