There seems to be multiple ways to pass parameters to a JavaFX application.
This will make the key value pairs for arg_# and their value accessible.
<script src="http://dl.javafx.com/1.1/dtfx.js"></script>
<script>
javafx(
{
archive: "JavaFXApplication.jar",
width: 1014,
height: 1024,
code: "javafxapplication.TestMain",
name: "JavaFXApplication"
arg_1: "value1",
arg_2: "value2"
}
);
</script>
The code above is valid. The code below provides the exact same functionality.
<script src="http://dl.javafx.com/1.1/dtfx.js"></script>
<script>
javafx(
{
archive: "JavaFXApplication.jar",
width: 1014,
height: 1024,
code: "javafxapplication.TestMain",
name: "JavaFXApplication"
},
{
arg_1: "value1",
arg_2: "value2"
}
);
</script>
But what do I get for bracketing the pairs.
Will this work?
<script src="http://dl.javafx.com/1.1/dtfx.js"></script>
<script>
javafx(
{
archive: "JavaFXApplication.jar",
width: 1014,
height: 1024,
code: "javafxapplication.TestMain",
name: "JavaFXApplication"
},
{
arg_1: "value1",
arg_2: "value2"
},
{
arg_1: "value3",
arg_2: "value4"
}
);
Can I distinguish between the repeating key value pairs?