Example demonstrating how to get the return value from a confirm dialog. - JOptionPaneExample.java..