public void actionPerformed(ActionEvent event) {
		if(event.getActionCommand().equals("Cancel")){
			node.highlight(false);
			this.setVisible(false);
			parent.redrawGUINow(); // needs blocking redrawing
		}
		else if(event.getActionCommand().equals("OK")){
			try{
				node.setPosition(new Position(Double.parseDouble(positionX.getText()), 
						Double.parseDouble(positionY.getText()), 
						Double.parseDouble(positionZ.getText())));
			}
			catch(NumberFormatException nFE){
				Main.fatalError(nFE);
			}
			node.highlight(false);
			this.setVisible(false);
			parent.redrawGUINow(); // needs blocking redrawing
		}
		else if(event.getActionCommand().equals("Next Node")){
			Enumeration<Node> nodesEnumer = Runtime.nodes.getNodeEnumeration();
			while(nodesEnumer.hasMoreElements()){
				Node nd = nodesEnumer.nextElement();
				if(nd.ID == node.ID+1){
					nodeNumber.setValue(new Integer(nd.ID));
					//this triggers a property change event.
					break;
				}
			}
		}
		else if(event.getActionCommand().equals("Previous Node")){ 
			Enumeration<Node> nodesEnumer = Runtime.nodes.getNodeEnumeration();
			while(nodesEnumer.hasMoreElements()){
				Node nd = nodesEnumer.nextElement();
				if(nd.ID == node.ID-1){
					nodeNumber.setValue(new Integer(nd.ID));
					//this triggers a property change event.
					break;
				}
			}			
		}
	}