/** * Creates the index panel based on the style. * * @return the index panel. */ public JComponent createIndexPanel() { switch (_style) { case ICON_STYLE: return createIconPanel(); case LIST_STYLE: return createListPanel(); case TREE_STYLE: return createTreePanel(); case TAB_STYLE: default: return null; } }