public static void showError(final String messageText){
  JOptionPane.showMessageDialog(null,messageText,translate("genericErrorMessageTitle"),JOptionPane.ERROR_MESSAGE);
}

public static void showError ( final String messageText ) { JOptionPane . showMessageDialog ( null , messageText , translate ( "genericErrorMessageTitle" ) , JOptionPane . ERROR_MESSAGE ) ; }
shows an error message box to the user . returns only after being confirmed by the user .
