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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 8u20
    • Affects Version/s: None
    • Component/s: docs
    • None

      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.

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

              Created:
              Updated:
              Resolved:
              Imported: