JComponent () { JPanel patternListPanel = new JPanel(new BorderLayout()); patternListPanel.setBorder(IdeBorderFactory.createTitledBorder(IdeBundle.message("group.todo.filter.patterns"))); patternListPanel.add(myPatternsScrollPane, BorderLayout.CENTER); return FormBuilder.createFormBuilder() .addLabeledComponent(IdeBundle.message("label.todo.filter.name"), myNameField) .addComponentFillVertically(patternListPanel, 0).getPanel(); }