public void renameAndHide() {
			CPArtwork artwork = controller.getArtwork();

			if (layerNb >= 0 && layerNb < artwork.getLayersNb()) {
				artwork.setLayerName(layerNb, getText());
			}

			layerNb = -1;
			setVisible(false);
			setEnabled(false);
		}