Esempio n. 1
0
 /** Launches the external browser with the given url. */
 private void handleSeeURL(URL url) {
   try {
     Utils.launchBrowser(url);
   } catch (Throwable e) {
     UIExceptionMgr.userException(e);
   }
 }
Esempio n. 2
0
 /**
  * Shows the dialog.
  *
  * @param parent the parent component
  */
 public static void showDialog(Window parent) {
   try {
     ShowAboutDialog aShowAboutDialog;
     if (parent instanceof Dialog) {
       aShowAboutDialog = new ShowAboutDialog((Dialog) parent);
     } else {
       if (parent instanceof Frame) {
         aShowAboutDialog = new ShowAboutDialog((Frame) parent);
       } else {
         aShowAboutDialog = new ShowAboutDialog();
       }
     }
     aShowAboutDialog.setModal(true);
     UIUtils.centerDialogAndShow(parent, aShowAboutDialog);
   } catch (Exception e) {
     UIExceptionMgr.userException(e);
   }
 }