private void initContents(){
  if (null != initialThreshold) {
    thresholdBox.setText(String.valueOf(initialThreshold));
  }
  lowerThresholdCheckBox.setSelection(initialLowerThreshold);
  timerangeSpinner.setSelection((int)initialTimerange);
  if (null != initialsEmails) {
    String emailsText="";
    for (    String email : initialsEmails) {
      if (!emailsText.isEmpty()) {
        emailsText+=NEW_LINE;
      }
      emailsText+=email;
    }
    emailsBox.setText(emailsText);
  }
}

private void initContents ( ) { if ( null != initialThreshold ) { thresholdBox . setText ( String . valueOf ( initialThreshold ) ) ; } lowerThresholdCheckBox . setSelection ( initialLowerThreshold ) ; timerangeSpinner . setSelection ( ( int ) initialTimerange ) ; if ( null != initialsEmails ) { String emailsText = "" ; for ( String email : initialsEmails ) { if ( ! emailsText . isEmpty ( ) ) { emailsText += NEW_LINE ; } emailsText += email ; } emailsBox . setText ( emailsText ) ; } }
initializes the contents of all fields if there are initial values .
