code: public void init(Convert converter, boolean bAddCalendarButton, boolean bAddTimeButton)
      {
          m_converter = converter;
          this.setBorder(null);
          this.setOpaque(false);
          
          this.setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
          String strDefault = null;
          int iColumns = 15;
          if (m_converter != null)
          {
              strDefault = m_converter.getString();
              iColumns = m_converter.getMaxLength();
          }
          m_tf = new JTextField(strDefault, iColumns);
          this.add(m_tf);
          BaseApplet applet = BaseApplet.getSharedInstance();
          if (bAddCalendarButton)
          {
              m_button = new JButton(applet.loadImageIcon(JCalendarPopup.CALENDAR_ICON));
              m_button.setMargin(JCalendarPopup.NO_INSETS);
              m_button.setOpaque(false);
              this.add(m_button);
              m_button.addActionListener(this);
          }
          
          if (bAddTimeButton)
          {
              m_buttonTime = new JButton(applet.loadImageIcon(JTimePopup.TIME_ICON));
              m_buttonTime.setMargin(JCalendarPopup.NO_INSETS);
              m_buttonTime.setOpaque(false);            
              this.add(m_buttonTime);
              m_buttonTime.addActionListener(this);
          }
      }
docs: Creates new JCalendarDualField.
  @param The field this component is tied to.