private void update(DocumentEvent e){
		Integer key = null;
		Document eventDocument = e.getDocument();
		
		//find the key
		for (Entry<Integer, Document> entry: textBoxDocuments.entrySet()){
			if (entry.getValue() == eventDocument){
				key = entry.getKey();
				break;
			}
		}
		
		//find textbox and value
		JTextField textBox = textBoxes.get(key);
		TileObjectDisplayDatum datum = data.get(key);
		
		//process the data
		datum.setValue(textBox.getText());
		if (datum.isValid()){
			textBox.setBackground(Color.WHITE);
		}
		else {
			textBox.setBackground(Color.PINK);
		}
		
		infoPanel.setDirty(true);
	}