Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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");
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javafx #access #fxml #elements
ADD COMMENT
Topic
Name
4+2 =