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.

javafx2_confirm
And here is the code.

And this is the content of the CSS file.

Related Posts Plugin for WordPress, Blogger...