add(tabPane, BorderLayout.CENTER);
setViewportView(tabPane);
    private void buildUI()    {        setLayout(new BorderLayout());        tabPane.add(searchView, SEARCH_TAB);        tabPane.setTitleAt(SEARCH_TAB, SEARCH);        tabPane.add(annotationView, ANNOTATE_TAB);        tabPane.setTitleAt(ANNOTATE_TAB, ANNOTATIONS);         add(tabPane, BorderLayout.CENTER);    }