public void actionPerformed(ActionEvent e) {
		if(e.getActionCommand().equals(ok.getActionCommand())){
			try {
				String selectedType = (String) typeOfEdges.getSelectedItem();
				Configuration.setEdgeType(selectedType);
				
				String selectedTransModel = (String) selectedTransmissionModel.getSelectedItem();
				if(!selectedTransModel.equals(Configuration.DefaultMessageTransmissionModel)) {
					Configuration.DefaultMessageTransmissionModel = selectedTransModel;
					Global.messageTransmissionModel = Model.getMessageTransmissionModelInstance(Configuration.DefaultMessageTransmissionModel, new Object[0]);
				}
				
				if(drawRulerCB.isSelected() != Configuration.drawRulers){
					Configuration.drawRulers = drawRulerCB.isSelected();
					parent.getGraphPanel().forceDrawInNextPaint();
				}
				if(drawArrowsCB.isSelected() != Configuration.drawArrows){
					Configuration.drawArrows = drawArrowsCB.isSelected();
					parent.getGraphPanel().forceDrawInNextPaint();
				}
				if(drawEdgesCB.isSelected() != Configuration.drawEdges){
					Configuration.drawEdges = drawEdgesCB.isSelected();
					parent.getGraphPanel().forceDrawInNextPaint();
				}
				if(drawNodesCB.isSelected() != Configuration.drawNodes){
					Configuration.drawNodes = drawNodesCB.isSelected();
					parent.getGraphPanel().forceDrawInNextPaint();
				}
				if(usePerspectiveCB.isSelected() != Configuration.usePerspectiveView) {
					Configuration.usePerspectiveView = !Configuration.usePerspectiveView;
					parent.getGraphPanel().forceDrawInNextPaint();
				}
				
			} catch(WrongConfigurationException ex) {
				sinalgo.runtime.Main.fatalError(ex);
			}
		} 
		this.setVisible(false);	
	}