The following code shows an instance of the JavaFX process command line argument. You can refer to it.
Import java.util.List;
Import javafx.application.Application;
Import Javafx.geometry.Insets;
Import Javafx.scene.Group;
Import Javafx.scene.Scene;
Import Javafx.scene.effect.SepiaTone;
Import Javafx.scene.image.Image;
Import Javafx.scene.image.ImageView;
Import Javafx.scene.layout.GridPane;
Import Javafx.scene.layout.HBox;
Import Javafx.scene.paint.Color;
Import Javafx.stage.Stage; /* http://www.manongjc.com /Public
class Main extends application {public
static void main ( String[] args) {
application.launch (args);
}
@Override public
void Start (Stage primarystage) {
primarystage.settitle ("Title");
Final Parameters params = GetParameters ();
Final list<string> parameters = Params.getraw ();
Final String imageUrl =!parameters.isempty ()? Parameters.get (0): "";
Primarystage.show ();
}
The above is a small series for everyone to bring the JavaFX application application of all the content, I hope that we support cloud-Habitat Community ~