i am trying to load a fxml from a subfolder, but it fails. I have the line that make the replace scene content:
private Parent replaceSceneContent(String fxml) t
If you are defining an action of Button
in FXML file like this:
<Button text="Login" onAction="#processLogin"/>
then you must define a method in the controller class like as following. Note the signature of processLogin
:
@FXML
private void processLogin(javafx.event.ActionEvent event) {
// Process Login
}