public void setPaneIndex(int index)
public void setPaneIndex(int index, ImageDisplay node)
    public void setPaneIndex(int index)    {        if (index != SEARCH_PANEL && index != ANNOTATION_PANEL)            throw new IllegalArgumentException("Pane index not valid.");        if (model.getPaneIndex() == index) return;        model.setPaneIndex(index);        view.onDisplayChange(                model.getParentModel().getBrowser().getSelectedDisplay());        view.setSelectedPane(index);        if (index != ANNOTATION_PANEL) discardAnnotation();    }