Fxml, Script Tag And Initialize Method
I am testing and discovering JavaFX. In JavaFX FXML documentation about controllers, it is said that if the controller has a public void initialize() method, it is called once the
Solution 1:
I think the scripts in the fxml will just be executed inline just like they are in HTML. So you don't place the script statements to be executed inside any function.
See this fxml+JavaScript metronome application for a sample.
Post a Comment for "Fxml, Script Tag And Initialize Method"