javafx get fxml element 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");
Scene scene = stage.getScene();
//capture elements by their #id:
Button btn = (Button) scene.lookup("#myBtnID");
TextField txt = (TextField ) scene.lookup("#myTxtID");