if (session != null) { config.setProperty("emailTo", getToTokens(config.getStringProperty("emailTo"), toAddress)); config.saveSessionProps(); setToCombo(config.getStringProperty("emailTo"),toAddress);
if (session != null) { config.setProperty("emailTo", getToTokens(config.getStringProperty("emailTo"), toAddress)); config.saveSessionProps(); setToCombo(config.getStringProperty("emailTo"),toAddress); }
   private void sendIt (Frame parent, SendEMail sem) {      if (parent == null)         parent = new JFrame();      try {         sem.send();         JOptionPane.showMessageDialog(parent,                                          LangTool.getString("em.confirmationMessage") +                                          " " + (String)toAddress.getSelectedItem(),                                          LangTool.getString("em.titleConfirmation"),                                          JOptionPane.INFORMATION_MESSAGE);         if (session != null) {            config.setProperty("emailTo",                  getToTokens(config.getStringProperty("emailTo"),                                 toAddress));            config.saveSessionProps();            setToCombo(config.getStringProperty("emailTo"),toAddress);         }      }      catch (IOException ioe) {         System.out.println(ioe.getMessage());      }      catch (SendFailedException sfe) {         showFailedException(parent, sfe);      }      catch (Exception ex) {         System.out.println(ex.getMessage());      }   }