fxml documentation code example
Example: refrence xml textfield in javafx
fx:controller=<Controller.Location>
@FXML TextField textfield;
fx:id=<idFromController>
textfield.getText();
textfield.setText();
fx:controller=<Controller.Location>
@FXML TextField textfield;
fx:id=<idFromController>
textfield.getText();
textfield.setText();