void (final @Nullable String title) { if (title == null) return; for (int i = 0; i < myTabbedPane.getTabCount(); i++) { final String each = myTabbedPane.getTitleAt(i); if (title.equals(each)) { myTabbedPane.setSelectedIndex(i); break; } } }