I've designed a several GUI's using Gloun SceneBuilder Which means each and every GUI form will have its own contoller For Example: AddBookForm.fxml will have AddBookController.java
import javafx.fxml.FXML;
import javafx.scene.control.Button;
public class AddBookController {
@FXML
private Button btnAddBook;
@FXML
void AddBook(MouseEvent event) {
}
}
EditBookForm.fxml will have EditBookController
import javafx.fxml.FXML;
import javafx.scene.control.Button;
public class PleaseProvideControllerClassName {
@FXML
private Button btnEditBook;
@FXML
void editBook(MouseEvent event) {
}
}
So I would like to have both of the GUI's controllers into one, one I'd name BookController (It would have AddBook and EditBook button handlers) So all books events would be into one controller instead of separate ones Is that possible? and if so, how? \I saw that it could be related to lambda, but I really don't get it..