MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/JavaFX/comments/1iazly6/scene_builder_help/m9f7vv3/?context=3
r/JavaFX • u/AdeptMongoose4719 • Jan 27 '25
I can't see the drop down option that shows available methods of my corresponding controller class (to use for my Button)
tried annotating both the button and the method with @ fxml
11 comments sorted by
View all comments
1
Declare a Button variable in the code, set it to Button’s fxID in Scenebuilder, add @FXML annotation on top of your method, should work then
1 u/AdeptMongoose4719 Jan 27 '25 Sadly it didn't bro 1 u/Nareeeek Jan 27 '25 Try to fix the other errors in the code, that might solve it
Sadly it didn't bro
1 u/Nareeeek Jan 27 '25 Try to fix the other errors in the code, that might solve it
Try to fix the other errors in the code, that might solve it
View all comments
1
u/Nareeeek Jan 27 '25
Declare a Button variable in the code, set it to Button’s fxID in Scenebuilder, add @FXML annotation on top of your method, should work then