public ResultViewDialog(Window owner,String i18nKey,JComponent results,Object... i18nArgs){
  super(owner,"results." + i18nKey,ModalityType.APPLICATION_MODAL,i18nArgs);
  results.setBorder(createBorder());
  layoutDefault(results,ButtonDialog.LARGE,makeCloseButton());
}

public ResultViewDialog ( Window owner , String i18nKey , JComponent results , Object ... i18nArgs ) { super ( owner , "results." + i18nKey , ModalityType . APPLICATION_MODAL , i18nArgs ) ; results . setBorder ( createBorder ( ) ) ; layoutDefault ( results , ButtonDialog . LARGE , makeCloseButton ( ) ) ; }
displays a dialog with the given result component .
