void detach(Layered c) {
		if (!doNotFireUndoEvent) {
			getModel().getUndoManager().undoableEditHappened(new UndoableEditEvent(getModel(), new UndoableLayeredComponentOperation(UndoAction.DETACH_LAYERED_COMPONENT, c)));
			updateUndoUIComponents();
		}
		c.setHost(null);
		repaint();
		getModel().notifyChange();
	}