JComponent () { Box box = Box.createVerticalBox(); JPanel _panel = new JPanel(new BorderLayout()); _panel.add(new JLabel(getTopLabelText()), BorderLayout.NORTH); _panel.add(mySourceClassField, BorderLayout.CENTER); box.add(_panel); box.add(Box.createVerticalStrut(10)); box.add(createActionComponent()); box.add(Box.createVerticalStrut(10)); myClassNameLabel = new JLabel(); _panel = new JPanel(new BorderLayout()); _panel.add(myClassNameLabel, BorderLayout.NORTH); _panel.add(myExtractedSuperNameField, BorderLayout.CENTER); box.add(_panel); box.add(Box.createVerticalStrut(5)); _panel = new JPanel(new BorderLayout()); myPackageNameLabel = new JLabel(); _panel.add(myPackageNameLabel, BorderLayout.NORTH); _panel.add(myPackageNameField, BorderLayout.CENTER); if (myDestinationRootPanel != null) { _panel.add(myDestinationRootPanel, BorderLayout.SOUTH); } box.add(_panel); box.add(Box.createVerticalStrut(10)); JPanel panel = new JPanel(new BorderLayout()); panel.add(box, BorderLayout.CENTER); return panel; }