Why can’t I programmatically close the dialog on JavaFX?
•
Java
This code example shows but does not turn off JavaFX on JavaFX scene. control. Dialog:
Dialog<Void> dialog = new Dialog<Void>(); dialog.show(); dialog.close();
or
Dialog<Void> dialog = new Dialog<Void>(); dialog.show(); dialog.hide();
Why?
Solution
From Javadoc:
(emphasize my)
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码