code: public void setDate(Date date)
      {
          String dateString = "";
          if (date != null)
      		dateString = dateFormat.format(date);
          jTextField2.setText(dateString);
          jCalendarButton1.setTargetDate(date);
      }
docs: Validate and set the datetime field on the screen given a date.
  @param dateTime The datetime object