void (final String tabName) { getComponent(); final TabbedPaneWrapper tabbedPane = myTabbedPane; if (tabbedPane == null) return; for (int i = 0; i < tabbedPane.getTabCount(); i++) { if (tabName.equals(tabbedPane.getTitleAt(i))) { tabbedPane.setSelectedIndex(i); return; } } }