void removeView(ByteViewerComponent comp) {

		viewList.remove(comp);
		indexedView.removeView(comp);

		if (currentView == comp) {
			currentView = null;
		}

		if (viewList.size() > 0) {
			currentView = viewList.get(0);
		}
		comp.dispose();
		validate();
		repaint();
	}
Add a view to the panel.

@param viewName name of the format, e.g., Hex, Ascii, etc.
@param model model that understands the format
@param editMode true if edit mode is on
@param updateViewPosition true if the view position should be set
@return the new component
Ghidra/Features/ByteViewer/src/main/java/ghidra/app/plugin/core/byteviewer/ByteViewerPanel.java