public ExtendedErrorDialog(Window owner,String key,String errorMessage,Object... arguments){
  super(owner,"error." + key,ModalityType.APPLICATION_MODAL,arguments);
  boolean hasError=errorMessage != null && !errorMessage.isEmpty();
  JScrollPane detailedPane=hasError ? createDetailPanel(errorMessage) : null;
  layoutDefault(mainComponent,SIZE,getButtons(hasError,false,detailedPane,null));
}

public ExtendedErrorDialog ( Window owner , String key , String errorMessage , Object ... arguments ) { super ( owner , "error." + key , ModalityType . APPLICATION_MODAL , arguments ) ; boolean hasError = errorMessage != null && ! errorMessage . isEmpty ( ) ; JScrollPane detailedPane = hasError ? createDetailPanel ( errorMessage ) : null ; layoutDefault ( mainComponent , SIZE , getButtons ( hasError , false , detailedPane , null ) ) ; }
creates a dialog with the internationalized i18n - message from the given key .
