public void add(Component e) {
		if (selectedOC != null)
			selectedOC.setSelected(false);
		selectedOC = null;
		if (enteredIC != null)
			enteredIC.setSelected(false);
		enteredIC = null;
		if (e instanceof Stub) {
			if (stubs.size() < 4)
				stubs.add((Stub) e);
			else {
				JOptionPane.showMessageDialog(null,
						"You can not add more than 4 Stubs!");
				return;
			}
		}
		elements.add(e);
		e.setPanel(this);
		setSelected(e);
		changed();
		repaint();
		// connectablesDialog = null;
	}