public GenerateNodesDialog(GUI p){
		super(p, "Create new Nodes", true);
		GuiHelper.setWindowIcon(this);
		cancel.addActionListener(this);
		ok.addActionListener(this);
		
		Font f = distributionModelComboBox.getFont().deriveFont(Font.PLAIN);
		distributionModelComboBox.setFont(f);
		nodeTypeComboBox.setFont(f);
		connectivityModelComboBox.setFont(f);
		interferenceModelComboBox.setFont(f);
		mobilityModelComboBox.setFont(f);
		reliabilityModelComboBox.setFont(f);

		// Detect ESCAPE button
		KeyboardFocusManager focusManager = KeyboardFocusManager.getCurrentKeyboardFocusManager();
		focusManager.addKeyEventPostProcessor(new KeyEventPostProcessor() {
			public boolean postProcessKeyEvent(KeyEvent e) {
				if(!e.isConsumed() && e.getID() == KeyEvent.KEY_PRESSED && e.getKeyCode() == KeyEvent.VK_ESCAPE) {
					GenerateNodesDialog.this.setVisible(false);
				}
				return false;
			}
		});
		
		this.setLocationRelativeTo(p);
		this.parent = p;
	}