public void actionPerformed(ActionEvent event)
	{
		Object source = event.getSource();
		
		if (source == addButton)
		{
			String value = tfValue.getText();
			if (value.length() == 0) return;
			
			int typeIndex = typeCombo.getSelectedIndex();
			if (typeIndex == -1) return;
			
			int type = EXTHRecord.knownTypes[typeIndex];
			EXTHRecord rec = null;
			if (EXTHRecord.isBooleanType(type))	// this is an ugly hack - we really should present a checkbox to the user
			{
				boolean boolValue = false;
				if (value.equals("1")
					||
					value.toLowerCase().equals("true")
					||
					value.toLowerCase().equals("on")
					||
					value.toLowerCase().equals("yes"))
				{
					boolValue = true;
				}
				rec = new EXTHRecord(type, boolValue);
			}
			else
				rec = new EXTHRecord(type, value, GuiModel.getCharacterEncoding());
			listener.addEXTHRecord(rec);
			setVisible(false);
			dispose();
		}
		else if (source == cancelButton)
		{
			setVisible(false);
			dispose();
		}
	}