public void actionPerformed(ActionEvent e) {

    if (e.getActionCommand().equals(ACT_VERIFICATION)) {

      try {
        this.m_collection = UareUGlobal.GetReaderCollection();
        m_collection.GetReaders();
      } catch (UareUException e1) {
        // TODO Auto-generated catch block
        JOptionPane.showMessageDialog(null, "Error getting collection");
        return;
      }

      if (m_collection.size() == 0) {
        MessageBox.Warning("Reader is not selected");
        return;
      }

      m_reader = m_collection.get(0);

      if (null == m_reader) {
        MessageBox.Warning("Reader is not selected");
      } else {
        Verification.Run(m_reader, this.enrollmentFMD);
      }
    } else if (e.getActionCommand().equals(ACT_ENROLLMENT)) {

      try {
        this.m_collection = UareUGlobal.GetReaderCollection();
        m_collection.GetReaders();
      } catch (UareUException e1) {
        // TODO Auto-generated catch block
        JOptionPane.showMessageDialog(null, "Error getting collection");
        return;
      }

      if (m_collection.size() == 0) {
        MessageBox.Warning("Reader is not selected");
        return;
      }

      m_reader = m_collection.get(0);

      if (null == m_reader) {
        MessageBox.Warning("Reader is not selected");
      } else {

        this.enrollmentFMD = Enrollment.Run(m_reader, "1234");
      }
    } else if (e.getActionCommand().equals(ACT_EXIT)) {
      m_dlgParent.setVisible(false);
    }
  }
  public static void createAndShowGUI(String id) {

    try {
      UareUGlobal.DestroyReaderCollection();
    } catch (UareUException e) {
      MessageBox.DpError("UareUGlobal.destroyReaderCollection()", e);
    }
  }
  public void gotoverification() {

    try {
      this.m_collection = UareUGlobal.GetReaderCollection();
      m_collection.GetReaders();
    } catch (UareUException e1) {
      // TODO Auto-generated catch block
      JOptionPane.showMessageDialog(null, "Error getting collection");
      return;
    }

    if (m_collection.size() == 0) {
      MessageBox.Warning("Reader is not selected");
      return;
    }

    m_reader = m_collection.get(0);

    if (null == m_reader) {
      MessageBox.Warning("Reader is not selected");
    } else {
      Verification.Run(m_reader, this.enrollmentFMD);
    }
  }