public void removeSelected() {
		if (getSelectionPath() != null) {
			Object o = getSelectionPath().getLastPathComponent();
			if (o != null && o instanceof DefaultMutableTreeNode) {
				DefaultMutableTreeNode n = (DefaultMutableTreeNode) o;
				if (n.getUserObject() != null
						&& n.getUserObject() instanceof NodeLayer) {
					removeLayer((NodeLayer) n.getUserObject());
				}
			}
		}
	}