JComponent () { final JPanel panel = new JPanel(new BorderLayout()); panel.add(myPanel, BorderLayout.PAGE_START); myForm = createEnvPanel(); final JComponent envPanel = myForm.getMainPanel(); panel.add(envPanel, BorderLayout.PAGE_END); return panel; }