@Override
	public void actionPerformed(ActionEvent arg0) 
	{
		String file = loadDialog();
		if(file==null) return;

		ArrayList<FileObject> allFiles = null;
		try
		{
			allFiles = LSParser.parseFile(file);
			if(allFiles.size()==0) throw new Exception();
		}
		catch(Exception e)
		{
			JOptionPane pop = new JOptionPane();
			String message = "The specified file has an invalid format.\n\n" 
					+"The desired format is obtained by executing:\n      ls -ls --time-style=+%m/%d/%Y\\ %T\n" 
					+ "                             or \n" +
					"      ls -Rls --time-style=+%m/%d/%Y\\ %T\n";
			JOptionPane.showMessageDialog(pop, message, "Error", JOptionPane.PLAIN_MESSAGE);
			return;
		}

		addDialog();

		if(single && master.singleGraphTitles.contains((new File(file)).getName()))
			return;
		if(dual1 && master.dual1GraphTitles.contains((new File(file)).getName()))
			return;
		if(dual2 && master.dual2GraphTitles.contains((new File(file)).getName()))
			return;

		master.addSet(allFiles,(new File(file)).getName(),single,dual1,dual2);
		master.redraw();

	}