FXMLLoader how to access the components by FXID?
问题 I'm trying to figure out how to work with JavaFx. I built the application interface in Scene Builder. But I can not get access to the component, since all loaded into the Parent. Parent root = FXMLLoader.load(getClass().getResource("FXMLDocument.fxml")); If I change "Parent" on "Pane" I can get access to the getChildren(), but it is not clear how to get control if i know fx:id... The question is even simpler. I added Label or TextField in Scene Builder. How do I change it's text from the code