JComponent () { JPanel contentPane = new JPanel(new BorderLayout()); contentPane.add(createNamePanel(), BorderLayout.CENTER); contentPane.add(createCBPanel(), BorderLayout.SOUTH); return contentPane; }