load fxml to main 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();