public void loadDataFromFile() throws Exception {
	   	// Build a file chooser component that displays files only
	   	JFileChooser fileChooser = new JFileChooser();
	   	fileChooser.setFileSelectionMode( JFileChooser.FILES_ONLY );
	   	fileChooser.addChoosableFileFilter(new TxtFilter());
	   	
	   	// check if user clicked Cancel button on dialog, if so, return
	   	int result = fileChooser.showOpenDialog( comp );
	   	if( result == JFileChooser.CANCEL_OPTION ) {
	   		throw new Exception("Load operation cancelled.");
	   	}
	   	
		// Display all files available in FileChooser dialog
		selectedFile = fileChooser.getSelectedFile();  
                
	    if (selectedFile != null && selectedFile.exists()){
	 	   BufferedReader in = new BufferedReader(
	 						 new FileReader(selectedFile));
	 	   String line = in.readLine();
	 	   String[] tokens = line.split("=");
	 	   if( tokens[0].equalsIgnoreCase("name") ) {
	 		   String[] names = tokens[1].split(" ");
	 		   firstName = names[0];
	 		   lastName = names[1];
	 	   }
	 	   in.close();
	     }
	}