JComponent () { myBoardComboBox = new ComboBox<>(300); myBoardLabel = new JBLabel(TaskBundle.message("label.board"), SwingConstants.RIGHT); myBoardLabel.setLabelFor(myBoardComboBox); myListComboBox = new ComboBox<>(300); myListLabel = new JBLabel(TaskBundle.message("label.list"), SwingConstants.RIGHT); myListLabel.setLabelFor(myListComboBox); myAllCardsCheckBox = new JBCheckBox(TaskBundle.message("checkbox.include.cards.not.assigned.to.me")); return FormBuilder.createFormBuilder() .addLabeledComponent(myBoardLabel, myBoardComboBox) .addLabeledComponent(myListLabel, myListComboBox) .addComponentToRightColumn(myAllCardsCheckBox) .getPanel(); }