public void actionPerformed(ActionEvent evt)
    {
    	try
    	{
            //Check if button has been selected
            if (evt.getActionCommand().equals("New"))
            {
                openHomeScreen(createNewTextFile());
            }
            else if (evt.getActionCommand().equals("Open"))
            {
                System.out.println("Opening file browser...");

                //Create temp filename string
                String file = getFileToOpen();
                if(!file.equals(""))
                    openHomeScreen(file);
            }
            else if (evt.getActionCommand().equals("Help"))
            {
                Help a = new Help();
                a.a.scrollToReference("Section 4.");
            }
            else if (evt.getActionCommand().equals("Close"))
            {
                System.exit(0);
            }
    	}//End of try
    	catch(Exception ex)
    	{
                System.out.println("Error opening file: " + ex);
    	}//End of catch
    }//End of actionPerformed