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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8u20
    • Component/s: docs
    • Labels:
      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

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

                Dates

                Due:
                Created:
                Updated:
                Resolved:
                Imported: