Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8312523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T20:11:36+00:00 2026-06-08T20:11:36+00:00

I have read the material on how to do this but I’m stuck trying

  • 0

I have read the material on how to do this but I’m stuck trying to figureout how to pass a parameter to my JavaFX2 application with in browser mode or webstart mode.
I’ve asked the question on OTN forums also here

So I imported ColorfulCircles project from the Ensemble into Netbeans. Then I modified the code and put in a small snippet to pull a parameter after init method, like so. I just get the parameter and set it as title for the stage.

                @Override public void start(Stage primaryStage) throws Exception {
                init(primaryStage);

                Parameters params = getParameters();
                String myTitle = params.getNamed().get("myTitle");
                primaryStage.setTitle(myTitle);

                primaryStage.show();
                play();
                }

I then did a clean and build in netbeans…all html, jar, jnlp etc was generated.

I then manually modified the HTML as shown below. But the title for the stage doesnt update/show, for either modes.
What is missing here?

            <html><head>
              <SCRIPT src="./web-files/dtjava.js"></SCRIPT>
            <script>
                function launchApplication(jnlpfile) {
                dtjava.launch(            {
                    url : 'ColorfulCircles.jnlp',
                    jnlp_content : 'PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjxqbmxwIHNwZWM9IjEuMCIgeG1sbnM6amZ4PSJodHRwOi8vamF2YWZ4LmNvbSIgaHJlZj0iQ29sb3JmdWxDaXJjbGVzLmpubHAiPg0KICA8aW5mb3JtYXRpb24DQogICAgPHRpdGxlPkNvbG9yZnVsQ2lyY2xlczwvdGl0bGUDQogICAgPHZlbmRvcj5kZW1vPC92ZW5kb3IDQogICAgPGRlc2NyaXB0aW9uPlNhbXBsZSBKYXZhRlggMi4wIGFwcGxpY2F0aW9uLjwvZGVzY3JpcHRpb24DQogICAgPG9mZmxpbmUtYWxsb3dlZC8DQogIDwvaW5mb3JtYXRpb24DQogIDxyZXNvdXJjZXMDQogICAgPGpmeDpqYXZhZngtcnVudGltZSB2ZXJzaW9uPSIyLjArIiBocmVmPSJodHRwOi8vamF2YWRsLnN1bi5jb20vd2ViYXBwcy9kb3dubG9hZC9HZXRGaWxlL2phdmFmeC1sYXRlc3Qvd2luZG93cy1pNTg2L2phdmFmeDIuam5scCIvPg0KICA8L3Jlc291cmNlcz4NCiAgPHJlc291cmNlcz4NCiAgICA8ajJzZSB2ZXJzaW9uPSIxLjYrIiBocmVmPSJodHRwOi8vamF2YS5zdW4uY29tL3Byb2R1Y3RzL2F1dG9kbC9qMnNlIi8DQogICAgPGphciBocmVmPSJDb2xvcmZ1bENpcmNsZXMuamFyIiBzaXplPSIxNzg3NSIgZG93bmxvYWQ9ImVhZ2VyIiAvPg0KICA8L3Jlc291cmNlcz4NCiAgPGFwcGxldC1kZXNjICB3aWR0aD0iODAwIiBoZWlnaHQ9IjYwMCIgbWFpbi1jbGFzcz0iY29tLmphdmFmeC5tYWluLk5vSmF2YUZYRmFsbGJhY2siICBuYW1lPSJDb2xvcmZ1bENpcmNsZXMiID4NCiAgICA8cGFyYW0gbmFtZT0icmVxdWlyZWRGWFZlcnNpb24iIHZhbHVlPSIyLjArIi8DQogIDwvYXBwbGV0Pg0KICA8amZ4OmphdmFmeC1kZXNjICB3aWR0aD0iODAwIiBoZWlnaHQ9IjYwMCIgbWFpbi1jbGFzcz0iQ29sb3JmdWxDaXJjbGVzU2FtcGxlIiAgbmFtZT0iQ29sb3JmdWxDaXJjbGVzIiAvPg0KICA8dXBkYXRlIGNoZWNrPSJiYWNrZ3JvdW5kIi8DQo8L2pubHADQo='
                    ,
                    params: {myTitle: "MyColorfulCircles"}
                    },
                    {
                    javafx : '2.0'
                    },
                    {}
                );
                return false;
                }
            </script>

            <script>
                function javafxEmbed() {
                dtjava.embed(
                    {
                    url : 'ColorfulCircles.jnlp',
                    placeholder : 'javafx-app-placeholder',
                    width : 800,
                    height : 600,
                    jnlp_content : 'PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjxqbmxwIHNwZWM9IjEuMCIgeG1sbnM6amZ4PSJodHRwOi8vamF2YWZ4LmNvbSIgaHJlZj0iQ29sb3JmdWxDaXJjbGVzLmpubHAiPg0KICA8aW5mb3JtYXRpb24DQogICAgPHRpdGxlPkNvbG9yZnVsQ2lyY2xlczwvdGl0bGUDQogICAgPHZlbmRvcj5kZW1vPC92ZW5kb3IDQogICAgPGRlc2NyaXB0aW9uPlNhbXBsZSBKYXZhRlggMi4wIGFwcGxpY2F0aW9uLjwvZGVzY3JpcHRpb24DQogICAgPG9mZmxpbmUtYWxsb3dlZC8DQogIDwvaW5mb3JtYXRpb24DQogIDxyZXNvdXJjZXMDQogICAgPGpmeDpqYXZhZngtcnVudGltZSB2ZXJzaW9uPSIyLjArIiBocmVmPSJodHRwOi8vamF2YWRsLnN1bi5jb20vd2ViYXBwcy9kb3dubG9hZC9HZXRGaWxlL2phdmFmeC1sYXRlc3Qvd2luZG93cy1pNTg2L2phdmFmeDIuam5scCIvPg0KICA8L3Jlc291cmNlcz4NCiAgPHJlc291cmNlcz4NCiAgICA8ajJzZSB2ZXJzaW9uPSIxLjYrIiBocmVmPSJodHRwOi8vamF2YS5zdW4uY29tL3Byb2R1Y3RzL2F1dG9kbC9qMnNlIi8DQogICAgPGphciBocmVmPSJDb2xvcmZ1bENpcmNsZXMuamFyIiBzaXplPSIxNzg3NSIgZG93bmxvYWQ9ImVhZ2VyIiAvPg0KICA8L3Jlc291cmNlcz4NCiAgPGFwcGxldC1kZXNjICB3aWR0aD0iODAwIiBoZWlnaHQ9IjYwMCIgbWFpbi1jbGFzcz0iY29tLmphdmFmeC5tYWluLk5vSmF2YUZYRmFsbGJhY2siICBuYW1lPSJDb2xvcmZ1bENpcmNsZXMiID4NCiAgICA8cGFyYW0gbmFtZT0icmVxdWlyZWRGWFZlcnNpb24iIHZhbHVlPSIyLjArIi8DQogIDwvYXBwbGV0Pg0KICA8amZ4OmphdmFmeC1kZXNjICB3aWR0aD0iODAwIiBoZWlnaHQ9IjYwMCIgbWFpbi1jbGFzcz0iQ29sb3JmdWxDaXJjbGVzU2FtcGxlIiAgbmFtZT0iQ29sb3JmdWxDaXJjbGVzIiAvPg0KICA8dXBkYXRlIGNoZWNrPSJiYWNrZ3JvdW5kIi8DQo8L2pubHADQo='
                    ,
                    params: {myTitle: "MyColorfulCircles"}
                    },
                    {
                    javafx : '2.0'
                    },
                    {}
                );
                }
                <!-- Embed FX application into web page once page is loaded -->
                dtjava.addOnloadCallback(javafxEmbed);
            </script>

            </head><body>
            <h2>Test page for <b>ColorfulCircles</b></h2>
              <b>Webstart:</b> <a href='ColorfulCircles.jnlp' onclick="return launchApplication('ColorfulCircles.jnlp');">click to launch this app as webstart</a><br><hr><br>

              <!-- Applet will be inserted here -->
              <div id='javafx-app-placeholder'></div>
            </body></html>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T20:11:39+00:00Added an answer on June 8, 2026 at 8:11 pm

    That was fixed in JavaFX 2.2 you can try developers version here: http://www.oracle.com/technetwork/java/javafx/downloads/devpreview-1429449.html

    But make sure you regenerate your html/jnlp files using new ant-javafx.jar (or copy them from samples)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have read a bunch of forums on this but none have solved my
I have read various posts in stackoverflow and I am trying to figure out
I have read few articles about table partioning but still I am bit confused
I have read some of the questions and answers here, but it none match
I have read that GLSL (specifically v1.0.17: my application is running under WebGL) compilers
I have read numerous people with this question and have tried numerous strategies. However,
I have this existing environment: 1) ASP.NET 3.5 web application 2) forms authentication with
I'm trying to implement a State Pattern in C++, but have problems with the
I have read a lot of material on threading, and all the synchronization mechanisms
I have read many answers to questions about dynamically resizing NSWindows and nothing has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.