JComponent () { String currentName = myLibraryRootsComponent.getLibraryEditor().getName(); myNameField = new JTextField(currentName); myNameField.selectAll(); FormBuilder formBuilder = FormBuilder.createFormBuilder().addLabeledComponent(JavaUiBundle.message("label.library.name"), myNameField); addNorthComponents(formBuilder); return formBuilder.addVerticalGap(10).getPanel(); }