JComponent () { if (myPropertiesViewerFocused) { JComponent component = getPropertiesPreferredFocusedComponent(); if (component != null) return component; return myContentViewer.getPreferredFocusedComponent(); } else { JComponent component = myContentViewer.getPreferredFocusedComponent(); if (component != null) return component; return getPropertiesPreferredFocusedComponent(); } }