Check out example codes for "refrence xml textfield in javafx". It will help you in understanding the concepts better.

Code Example 1

fx:controller=<Controller.Location>

@FXML TextField textfield;

fx:id=<idFromController>

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

Learn ReactJs, React Native from akashmittal.com