refrence xml textfield in javafx

Java
fx:controller=<Controller.Location>

@FXML TextField textfield;

fx:id=<idFromController>

textfield.getText();
textfield.setText();
Source

Also in Java: