I am building a JavaFX-Application. I know that it's using reflection, and that reflection might be not so fast as when i would build my UI in the code.
So,
- How can I design my controller to keep the overhead, that is caused by reflection as small as I can?
- Does the size of the method with/without
@FXML
-Annotation matter? - Is there any difference, when I call another method without
@FXML
in my controller-method? Like:
@FXML
public void handleButtonClick(){
doStuff();
}
public void doStuff(){
//implement the logic
}
- And if I do so, should I implement these methods in the controller class, or in another class?
P.S. I'm sorry for so many questions at once, but i found those specific things nowhere in the internet :(