JComponent () { JPanel panel = createIconPanel(); JPanel messagePanel = createMessagePanel(); myComboBox = new ComboBox<>(220); messagePanel.add(myComboBox, BorderLayout.SOUTH); panel.add(messagePanel, BorderLayout.CENTER); return panel; }