javafx add fxml element with methods code example
Example: javafx access fxml elements
Scene scene = stage.getScene();
//capture elements by their #id:
Button btn = (Button) scene.lookup("#myBtnID");
TextField txt = (TextField ) scene.lookup("#myTxtID");