public void actionPerformed(ActionEvent e) {
    if (e.getActionCommand().equals("ok")) {
      if (m_isFirstClick) {
        if (m_editor != null) {
          m_editor.setCaretPosition(m_editText.indexOf(m_findField.getText()));
          m_editor.requestFocus();
        }
        else {
        }
        m_isFirstClick = false;
      }
      else {
        if (m_upButton.isSelected()) {
        }
        else if (m_downButton.isSelected()) {
        }
      }

    }
    else if (e.getActionCommand().equals("cancel")) {
      this.dispose();
    }
    else if (e.getActionCommand().equals("up")) {
      m_downButton.setSelected(false);
    }
    else if (e.getActionCommand().equals("down")) {
      m_upButton.setSelected(false);
    }
  }