public static void showWarning(final String messageText){
  JOptionPane.showMessageDialog(null,messageText,translate("genericWarningMessageTitle"),JOptionPane.WARNING_MESSAGE);
}

public static void showWarning ( final String messageText ) { JOptionPane . showMessageDialog ( null , messageText , translate ( "genericWarningMessageTitle" ) , JOptionPane . WARNING_MESSAGE ) ; }
shows a warning message box to the user . returns only after being confirmed by the user .
