public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected,
			boolean cellHasFocus) {

		setBackground(isSelected ? SystemColor.textHighlight : Color.white);
		setForeground(isSelected ? SystemColor.textHighlightText : Color.black);

		if (value instanceof PageMolecularViewer) {
			PageMolecularViewer mv = (PageMolecularViewer) value;
			setText("3D Molecular Viewer #" + mv.getIndex());
		}
		else if (value instanceof PageMd3d) {
			PageMd3d md = (PageMd3d) value;
			setText("3D Molecular Simulator #" + md.getIndex());
		}
		else if (value instanceof PageJContainer) {
			PageJContainer c = (PageJContainer) value;
			setText("Plugin #" + c.getIndex());
		}
		else if (value instanceof PageApplet) {
			PageApplet a = (PageApplet) value;
			setText("Applet #" + a.getIndex());
		}
		else if (value != null) {
			setText(value.toString());
		}

		return this;

	}