Is it possible to edit/access javaFX elements (such as Buttons, Labels, etc.) in java code which is NOT the controller class?
I have written an entire program in java and want to make a GUI for it in javaFX (using Scene Builder). Since the entire code ALREADY is written in Java classes outside the FXML-controller class, is it possible to access elements like "Labels" inside my already written classes?
All I want to do is use this code outside the FXML-controller class: label1.setText("Something");
So it updates on the GUI.
If not, it is a very time-consuming process to implement my java code in the FXML-controller class.
Label getLabel()in your controller to access it elsewhere. Or you can call other classes methods from your controller by passing your components as parameters. - Kwoinkwoin