Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8095883

Change 'toolkit' to be a property of the App, but not Platform

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 8u20
    • None
    • docs
    • None

    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.

      Attachments

        Issue Links

          Activity

            People

              jgordon Joni Gordon (Inactive)
              dkostova Dmitry Kostovarov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported: