SyntaxFix
Write A Post
Hire A Developer
Questions
finally, I found a solution
Window window = ((Node)(event.getSource())).getScene().getWindow(); if (window instanceof Stage){ ((Stage) window).close(); }