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);
}

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 ) ; }
shows a question the user can answer with yes / no / cancel .
