After setting up a new JavaFX project, You should see something similar to this
public void start(Stage stage) throws IOException {
stage.setTitle("My Window");
// we will be using a panel
BorderPane myPanel = new BorderPane();
// set up the canvas
Canvas myCanvas = new Canvas(600, 400);
GraphicsContext gc = myCanvas.getGraphicsContext2D();
// set up text area
TextArea myTextArea = new TextArea();
myTextArea.setPrefHeight(200);
myTextArea.setEditable(false);
// place canvas and text area in the panel
myPanel.setCenter(myCanvas);
myPanel.setBottom(myTextArea);
scene = new Scene(myPanel, 640, 480);
stage.setScene(scene);
stage.show();
}
TextField userEntry = new TextField();
userEntry.setPromptText("Enter your command:");
userEntry.getText();
Add text entry to top of the border panel
GridPane myGrid = new GridPane();
myGrid.setPadding(new Insets(10, 10, 10, 10));
myPanel.setTop(myGrid);
And then