public void actionPerformed(ActionEvent e) {
		if(e.getActionCommand().equals("Graph")){
			//draw a graph//
			String name = nameField.getText();
			NameSurferEntry entry = dataFile.findEntry(name);
			graph.addEntry(entry);
			graph.update();
		}else if(e.getActionCommand().equals("Clear")){
			//clear the canvas//
			graph.clear();
			graph.update();
		}
	}