public static int showYesNoError(final Component parent,final String msg){
  return JOptionPane.showConfirmDialog(isIconified(parent) ? null : parent,msg,System.getProperty(DEFAULT_WINDOW_TITLE_PROPERTY),JOptionPane.YES_NO_OPTION,JOptionPane.ERROR_MESSAGE);
}

public static int showYesNoError ( final Component parent , final String msg ) { return JOptionPane . showConfirmDialog ( isIconified ( parent ) ? null : parent , msg , System . getProperty ( DEFAULT_WINDOW_TITLE_PROPERTY ) , JOptionPane . YES_NO_OPTION , JOptionPane . ERROR_MESSAGE ) ; }
shows an error message with a question the user can answer with yes / no .
