JComponent () { JPanel panel = new JPanel(null); panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS)); panel.setBackground(WelcomeScreenUIManager.getProjectsBackground()); panel.setFocusTraversalPolicy(new ListFocusTraversalPolicy( Arrays.asList(textField, recentProjectTree) )); panel.setFocusTraversalPolicyProvider(true); panel.setFocusCycleRoot(true); panel.add(searchTextField); panel.add(scrollPane); panel.setPreferredSize(JBUI.size(DEFAULT_POPUP_WIDTH, DEFAULT_POPUP_HEIGHT)); return panel; }