JComponent () { myProjectLabel = new JBLabel(TaskBundle.message("label.project"), SwingConstants.RIGHT); myProjectCombo = new ComboBox<>(300); //myProjectCombo.setRenderer(new TaskUiUtil.SimpleComboBoxRenderer("Set URL and password/token first")); myProjectCombo.setRenderer(SimpleListCellRenderer.create(TaskBundle.message("label.set.url.password.token.first"), value -> { if (myProjectCombo.isPopupVisible()) { //if (value.myLevel == 0 && value.myProject != RedmineRepository.UNSPECIFIED_PROJECT) { //setFont(UIUtil.getListFont().deriveFont(Font.BOLD)); //} return StringUtil.repeat(" ", value.myLevel) + value.myProject.getName(); } else { // Do not indent selected project return value.myProject.getName(); } })); myAPIKeyLabel = new JBLabel(TaskBundle.message("label.api.token"), SwingConstants.RIGHT); myAPIKey = new JPasswordField(); myAllAssigneesCheckBox = new JBCheckBox(TaskBundle.message("checkbox.include.issues.not.assigned.to.me")); return FormBuilder.createFormBuilder() .addLabeledComponent(myAPIKeyLabel, myAPIKey) .addLabeledComponent(myProjectLabel, myProjectCombo) .addComponentToRightColumn(myAllAssigneesCheckBox) .getPanel(); }