JComponent () { FormBuilder builder = FormBuilder.createFormBuilder().setVertical(true); builder.addLabeledComponent(JavaUiBundle.message("label.project.layout.panel.name"), myNameField); builder.addLabeledComponent(getSplitDialogChooseFilesPrompt(), myChooser); myChooser.setPreferredSize(JBUI.size(450, 300)); return builder.getPanel(); }