private void loadFromFile() 
	{
		JFileChooser jfc = new JFileChooser();
		
		if( jfc.showOpenDialog(this) != JFileChooser.APPROVE_OPTION)
			return;
		
		if( jfc.getSelectedFile() == null)
			return;
			
		File chosenFile = jfc.getSelectedFile();
		
		try
		{
			BufferedReader reader = new BufferedReader(new FileReader(chosenFile));
			String line = reader.readLine();
			
			if( line == null || reader.readLine() != null)
				throw new Exception("Unexpected file format");
			
			StringTokenizer sToken = new StringTokenizer(line);
			
			if( sToken.countTokens() != 1)
				throw new Exception("Unexpected file format");
			
			try
			{
				this.numDollars = Integer.parseInt(sToken.nextToken());
			}
			catch(Exception ex)
			{
				throw new Exception("Unexpected file format");
			}
			
			updateTextField();
		}
		catch(Exception ex)
		{
			ex.printStackTrace();
			JOptionPane.showMessageDialog(this, ex.getMessage(), "Could not read file", JOptionPane.ERROR_MESSAGE);
		}
	}