CloseDialogAction (String name, int mnemonicChar, int exitCode) { CloseDialogAction closeDialogAction = new CloseDialogAction(name, mnemonicChar, exitCode); closeDialogAction.setDefault(true); return closeDialogAction; }