JComponent (@NotNull Presentation presentation, @NotNull String place) { ComboBoxButton button = createComboBoxButton(presentation); JLabel label = new JLabel(myLabel); label.setLabelFor(button); JPanel panel = new JPanel(new BorderLayout(JBUI.scale(3), 0)); panel.add(BorderLayout.WEST, label); panel.add(BorderLayout.CENTER, button); panel.setBorder(JBUI.Borders.empty(0, 6, 0, 3)); return panel; }