public void actionPerformed(ActionEvent e)
    {
    	try
    	{
            if (e.getActionCommand().equals("Scout"))
                    {
                //Creates an instance of the scout frame
                ScouterScreen a = new ScouterScreen();

                //Hide the page
                this.setVisible(false);
                    }
            else if (e.getActionCommand().equals("Import"))
            {
                //Method call to import data from file
                importFile();

                //Reload the screen with updated table
                HomeScreen a = new HomeScreen();

                //Hide the old page
                this.setVisible(false);
            }
            else if (e.getActionCommand().equals("Export"))
            {
                JOptionPane.showMessageDialog(null, "To export stats for use of"
                        + " another computer: \n\n1. Copy the database text file to"
                        + " the new computer \n2. Open the database you wish to"
                        + " import into \n3. Click import and select the file");
            }
            else if (e.getActionCommand().equals("SearchBox"))
            {
                txtSearch.setText(null);
                txtSearch.grabFocus();
            }
            else if (e.getActionCommand().equals("Search"))
            {
                search();
            }
            else if (e.getActionCommand().equals("Help"))
            {
                Help a = new Help();
            }
            else if (e.getActionCommand().equals("Back"))
            {
                //Create a new instance of the welcome screen
                if( JOptionPane.showConfirmDialog(null, "Continuing will "
                        + "close your current file. Continue anyways?",
                        "Import", JOptionPane.CANCEL_OPTION,
                        JOptionPane.INFORMATION_MESSAGE) == 0)
                {
                    //Clear cached database
                    clearCache();

                    WelcomeScreen a = new WelcomeScreen();
                }

                //Hide this page
                this.setVisible(false);
            }
    	}//End of try
    	catch(Exception ex)
    	{
            JOptionPane.showMessageDialog(null, "Please enter a valid team number.");
    	}
    }//End of actionPerformed()