JComponent () { JPanel parentPanel = new JPanel(new BorderLayout()); JPanel top = new JPanel(); final BoxLayout layout = new BoxLayout(top, BoxLayout.X_AXIS); top.setLayout(layout); myRepositoriesLabel = new JLabel(myRepositoriesLabelText); top.add(myRepositoriesLabel); top.add(createToolbar(true, (AnAction[])null)); parentPanel.add(top, BorderLayout.NORTH); JComponent panel = createBrowserComponent(false); parentPanel.add(panel, BorderLayout.CENTER); return parentPanel; }