I am invoking a JavaFX application from java.I want to use the String arguments in that JavaFX application. How to get that parameters in ChatWithSpecificClient?
For example :
Invoking Class
public class GenWindow{
public static void main(String[] args) {
Application.launch(ChatWithSpecificClient.class, "String arg");
}
}
Invoked Class
public class ChatWithSpecificClient extends Application {
private Parent createScene() {
BorderPane pane = new BorderPane();
return pane;
}
@Override
public void start(Stage primaryStage) {
Scene scene = new Scene(createScene());
primaryStage.setScene(scene);
primaryStage.show();
}
}
For instance, How to set the title of this window to that argument?