void () { final Component selectedComponent = getSelectedComponent(); if (selectedComponent instanceof TabbedPaneWrapper.TabWrapper) { ((TabbedPaneWrapper.TabWrapper)selectedComponent).requestDefaultFocus(); } else { super.requestDefaultFocus(); } }