JComponent () { JBSplitter splitter = new JBSplitter(true, COMMENTS_SPLITTER_PROPORTION_KEY, COMMENTS_SPLITTER_PROPORTION); splitter.setDividerWidth(4); JPanel tablePanel = new JPanel(new BorderLayout()); tablePanel.add(ScrollPaneFactory.createScrollPane(myList), BorderLayout.CENTER); JPanel statusPanel = new JPanel(new FlowLayout()); statusPanel.add(myStatusSpinner); statusPanel.add(myStatusLabel); JPanel separatorPanel = new JPanel(new BorderLayout()); separatorPanel.add(myChangesOnlyCheckBox, BorderLayout.WEST); separatorPanel.add(statusPanel, BorderLayout.EAST); tablePanel.add(separatorPanel, BorderLayout.NORTH); tablePanel.setBorder(JBUI.Borders.empty(0, 16, UIUtil.DEFAULT_VGAP, 16)); splitter.setFirstComponent(tablePanel); splitter.setSecondComponent(createComments()); return splitter; }