public void actionPerformed(ActionEvent e)
    {
        if (e.getSource() == fileBrowse)
        {
            // Open browse file dialog
            int returnVal = fileChooser.showOpenDialog(null);
            if (returnVal == JFileChooser.APPROVE_OPTION)
            {
                _ricFile = fileChooser.getSelectedFile();
                filePath.setText(_ricFile.getAbsolutePath());
            }
            else if (returnVal == JFileChooser.ERROR_OPTION)
            {
                textArea.append("Cannot open file \n");
            }

        }
        else if (e.getSource() == initButton)
        {
            // String path = filePath.getText().trim();
            String svc = service.getText().trim();

            // if ( path.equals("") )
            // textArea.append("All fields are mandatory.\n");

            boolean verified = false;
            if (linkRadio.isSelected())
            {
                verified = verifyRicList(LINK_A_SIZE); // 14-character length
                _template = "LINK_A";
            }
            else
            {
                verified = verifyRicList(LONGLINK_SIZE); // 21-character length
                _template = "LONGLINK";
            }

            if (suffix.getText().trim().equals(""))
            {
                textArea.append("Please specify the suffix record.\n");
                return;
            }
            else
                _suffixRecord = suffix.getText().trim();

            if (verified)
            {
                // If all underlying RICs pass a verification,
                // then initialize RFA and Clients.
                init();
                _myClient.initChain(_ricList, _template);
                textArea.append("Ready for client\n");
            }
        }
    }