public void actionPerformed(ActionEvent ae) {
		if (ae.getActionCommand().equals("apply")) {
			if (door != null) {
				door.type = typeNames[typeBox.getSelectedIndex()];
				door.climbDir = dirClimbBox.getSelectedIndex();
				door.destDir = dirBox.getSelectedIndex();
				door.destX = Integer.parseInt(destX.getText());
				door.destY = Integer.parseInt(destY.getText());
				door.style = Integer.parseInt(style.getText());
				door.eventFlag = Integer.parseInt(flagField.getText(), 16);
				door.pointer = textPtr.getText();
			}
		} else if (ae.getActionCommand().equals("close")) {
			hide();
		} else if (ae.getActionCommand().equals("seek")) {
			typeBox.setEnabled(false);
			seekButton.setEnabled(false);
			ebhack.Ebhack.main.showModule(MapEditor.class, this);
		} else if (ae.getActionCommand().equals("goto")) {
			ebhack.Ebhack.main.showModule(MapEditor.class,
					new int[] { Integer.parseInt(destX.getText())*8,
								Integer.parseInt(destY.getText())*8 });
		} else if (ae.getSource().equals(typeBox)) {
			updateGUI();
		}
	}