JComponent () { JPanel panel = new JPanel(new BorderLayout()); panel.add(new JBLabel(message("label.select.keywords.to.set")), BorderLayout.NORTH); JPanel buttonsPanel = new JPanel(new GridLayout(5, 1)); for (@NlsSafe String keyword : KNOWN_KEYWORDS) { JCheckBox keywordOption = new JCheckBox(keyword); myKeywordOptions.add(keywordOption); buttonsPanel.add(keywordOption); } panel.add(buttonsPanel, BorderLayout.CENTER); return panel; }