Esempio n. 1
0
 public void showDialog() {
   statusBar.setText(" ");
   setVisible(true);
   try {
     // Bring to front of other dialogs
     setSelected(true);
   } catch (PropertyVetoException e) {
     // ignore
   }
 }
Esempio n. 2
0
 void browse(String urlStr) {
   try {
     Desktop.getDesktop().browse(new URI(urlStr));
   } catch (Exception ex) {
     showDialog();
     statusBar.setText(ex.getLocalizedMessage());
     if (JConsole.isDebug()) {
       ex.printStackTrace();
     }
   }
 }