public void removeSelectedComponent() {

		if (selectedComponent == null)
			return;
		super.removeSelectedComponent();

		if (selectedComponent instanceof GayBerneParticle) {
			pasteBuffer = ((GayBerneParticle) selectedComponent).clone();
			List<Integer> list = new ArrayList<Integer>();
			list.add(((GayBerneParticle) selectedComponent).getIndex());
			removeMarkedParticles(list);
			model.notifyChange();
			if (!doNotFireUndoEvent) {
				model.getUndoManager().undoableEditHappened(new UndoableEditEvent(model, new UndoableDeletion(UndoAction.BLOCK_REMOVE, 1)));
				updateUndoUIComponents();
			}
		}

		if (selectedComponent != null) {
			selectedComponent.setSelected(false);
			selectedComponent = null;
		}
		repaint();

	}