JComponent () { myProjectLabel = new JBLabel(TaskBundle.message("label.project"), SwingConstants.RIGHT); myProjectCombobox = new ComboBox<>(200); myProjectCombobox.setRenderer(SimpleListCellRenderer.create(TaskBundle.message("label.login.first"), MantisProject::getName)); myFilterLabel = new JBLabel(TaskBundle.message("label.filter"), SwingConstants.RIGHT); myFilterCombobox = new ComboBox<>(200); myFilterCombobox.setRenderer(SimpleListCellRenderer.create(TaskBundle.message("label.login.first"), MantisFilter::getName)); return FormBuilder.createFormBuilder() .addLabeledComponent(myProjectLabel, myProjectCombobox) .addLabeledComponent(myFilterLabel, myFilterCombobox) .getPanel(); }