How to access UI components from SceneBuilder in JavaFX
问题 (DUPLICATE & SOLVED - see answer below) I'm doing my first steps in JavaFX and it seems quite hard to use the "SceneBuilder". I'm used to Android and the QtCreator. It looks to me that there is accessing the UI components much easier. Something like findViewById(R.id.btnPushMe); <- Android Code Actually I got an solution but it is quite uncomfortable to use. This looks as this: FXMLLoader loader = new FXMLLoader(MainApp.class.getResource("../fmxl/main.fxml")); AnchorPane pane = loader.load();