I don't understand what it can be. For this reason I don't know where to get my hands.
I'm using:
The condition in which the application crashes:
Stage dialog = new Stage();
dialog.setScene(new Scene(root));
dialog.initOwner(loader.getController());
dialog.initModality(Modality.WINDOW_MODAL);
dialog.showAndWait();
This is what happens when the error occurs:
What is the problem? Does it happen only on Mac? How can I solve it?
I solved this problem by updating to JavaFX 14. I suppose it was a bug of the library.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.