JDK-8095883 : Change 'toolkit' to be a property of the App, but not Platform
  • Type: Bug
  • Component: docs
  • Sub-Component: javafx
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2013-10-10
  • Updated: 2015-06-12
  • Resolved: 2014-07-02
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 8
8u20Fixed
Related Reports
Relates :  
Description
Examples on http://docs.oracle.com/javafx/2/deployment/deploy_swing_apps.htm (dtjava.launch, dtjava.embed) are wrong.

'toolkit' is not a property of the Platform but App (you can check it in dtjava.js)
���
���dtjava.embed(

                    {
                                 id : 'sampleApp',
                                url : 'SampleApp_browser.jnlp',
                        placeholder : 'app-placeholder',
                              width : 960,
                             height : 720
                    },
                    {
                        javafx : '2.2+',
                        toolkit: 'swing'
                    },
                    {   onGetSplash: function() {} } //disable splash
                );


need to be changed to 

���dtjava.embed(

                    {
                                 id : 'sampleApp',
                                url : 'SampleApp_browser.jnlp',
                        placeholder : 'app-placeholder',
                              width : 960,
                             height : 720,

			     toolkit: 'swing'

                    },
                    {
                        javafx : '2.2+'
                        
                    },
                    {   onGetSplash: function() {} } //disable splash
                );

I guess same applies to  dtjava.launch example on the same page.

If examples are used like they are, instead of "Swing" launcher "JavaFX" one is used and swing applet never starts.