diff --git a/src/main/java/es/kauron/jstudy/controller/Controller.java b/src/main/java/es/kauron/jstudy/controller/Controller.java index 2b19cb5..5691303 100644 --- a/src/main/java/es/kauron/jstudy/controller/Controller.java +++ b/src/main/java/es/kauron/jstudy/controller/Controller.java @@ -206,7 +206,7 @@ public class Controller implements Initializable { tab.setOnCloseRequest(event -> { if (!((TableController) loader.getController()).saved.get()) { Alert dialog = new Alert(Alert.AlertType.WARNING); - dialog.setHeaderText("The tab " + ((TableController) loader.getController()).name + " has unsaved information"); + dialog.setHeaderText("The tab " + ((TableController) loader.getController()).name.get() + " has unsaved information"); dialog.setContentText("Do you want to save those changes?"); dialog.getButtonTypes().clear(); dialog.getButtonTypes().addAll(ButtonType.YES, ButtonType.NO, ButtonType.CANCEL);