code: public void actionPerformed(ActionEvent e)
      {
          if ((m_button != null) && (e.getSource() == m_button))
          {
              JCalendarPopup popup = JCalendarPopup.createCalendarPopup((Date)this.getControlValue(), m_button);
              popup.addPropertyChangeListener(this);
          }
          else if ((m_buttonTime != null) && (e.getSource() == m_buttonTime))
          {
              JTimePopup popup = JTimePopup.createTimePopup((Date)this.getControlValue(), m_buttonTime);
              popup.addPropertyChangeListener(this);
          }
      }
docs: Handle action listener (button press).
  If they press the button, display the calendar popup.
  @param e The actionevent.