// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.TextField;
import javafx.scene.layout.GridPane;
import javafx.stage.Stage;

public class FXDemo extends Application {
    private TextField f1;
    private TextField f2;
    private TextField f3;
    @Override
    public void start(Stage stg) throws Exception {
        stg.setTitle("FX Demo");
        GridPane pn = new GridPane();
        f1 = new TextField();
        f2 = new TextField();
        f3 = new TextField();
        pn.add(f1, 0, 0);
        pn.add(f2, 0, 1);
        pn.add(f3, 0, 2);
        Scene scn = new Scene(pn);
        stg.setScene(scn);
        stg.show();
    }
    public static void main(String[] args) {
        Application.launch(FXDemo.class, args);
    }
}
