import javafx.application.Application;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.paint.Color;
import javafx.stage.Stage;
public class SimpleJavaFX extends Application {
public static void main(String[] args) {
launch(args);
}
@Override
public void start(Stage stage) throws Exception {
Group root = new Group(); // Root of the scene graph
Scene scene = new Scene(root,500,500, Color.AQUA);
stage.setScene(scene);
stage.setTitle("Simple JavaFX");
stage.show();
}
} |