Manpreet Singh
03/18/2019, 7:48 AMProjectView().openWindow()
How do I prevent the window close button from working. I tried putting primaryStage.setOnCloseRequest{}
in the view root but it does not work.gtnarg
03/18/2019, 11:27 AMprimaryStage.setOnCloseRequest( evt -> evt.consume() )
Manpreet Singh
03/18/2019, 11:37 AMgtnarg
03/18/2019, 11:46 AMManpreet Singh
03/18/2019, 2:55 PMclass ProjectView(projectName: String): View(projectName) {
override val root = borderpane {
primaryStage.setOnCloseRequest { event -> event.consume() }
top(ProjectDetailView::class)
center(StageList::class)
bottom(AddStageView::class)
}
}
This is the view that gets called from the listview as I mentioned. The close event consume is not working here.