question: public static int showYesNoCancelQuestion ( final Component parent , final String msg ) { return JOptionPane . showConfirmDialog ( isIconified ( parent ) ? null : parent , msg , System . getProperty ( DEFAULT_WINDOW_TITLE_PROPERTY ) , JOptionPane . YES_NO_CANCEL_OPTION , JOptionPane . QUESTION_MESSAGE ) ; }
target:  Shows a question the user can answer with Yes/No/Cancel.