How To Create Confirm Dialog Window In Java FX 2

Here is my version of a confirm dialog window that shows a Yes and No button. The class also includes a key listener to close the window in case the user presses the ESC key. This is equivalent to pressing the No button.

This is how it looks like.


And here is the code.

And this is the content of the CSS file.

Related Posts Plugin for WordPress, Blogger...

Leave a Reply

Your email address will not be published. Required fields are marked *