SMTPProperties.setProperty("mail.smtp.host",fieldHost.getText()); SMTPProperties.setProperty("mail.smtp.port",fieldPort.getText()); SMTPProperties.setProperty("mail.smtp.from",fieldFrom.getText());
SMTPProperties.setProperty("mail.smtp.host", fieldHost.getText()); SMTPProperties.setProperty("mail.smtp.port", fieldPort.getText()); SMTPProperties.setProperty("mail.smtp.from", fieldFrom.getText()); SMTPProperties.setProperty("mail.smtp.realname", fieldName.getText());
   void optDone_actionPerformed(ActionEvent e) {      SMTPProperties.setProperty("mail.smtp.host",fieldHost.getText());      SMTPProperties.setProperty("mail.smtp.port",fieldPort.getText());      SMTPProperties.setProperty("mail.smtp.from",fieldFrom.getText());      // file name      SMTPProperties.setProperty("fileName",fieldFileName.getText());      for (Enumeration x = SMTPProperties.propertyNames();x.hasMoreElements();)         System.out.println(SMTPProperties.get(x.nextElement()));      ConfigureFactory.getInstance().saveSettings("smtp", smtpFileName,                                 "------ SMTP Defaults --------");      this.setVisible(false);   }