private void initListener()
void initListener()
    private void initListener()    {        tabPane.addChangeListener(new ChangeListener() {            public void stateChanged(ChangeEvent e)            {                int index = -1;                switch (tabPane.getSelectedIndex()) {                    case SEARCH_TAB:                        index = ClipBoard.SEARCH_PANEL;                        break;                    case ANNOTATE_TAB:                        index = ClipBoard.ANNOTATION_PANEL;                        break;                };                controller.setPaneIndex(index);            }        });    }