JComponent () { myProductLabel = new JBLabel(TaskBundle.message("bugzilla.label.product"), SwingConstants.RIGHT); myProductInput = TextFieldWithAutoCompletion.create(myProject, Collections.emptyList(), true, myRepository.getProductName()); myComponentLabel = new JBLabel(TaskBundle.message("bugzilla.label.component"), SwingConstants.RIGHT); myComponentInput = TextFieldWithAutoCompletion.create(myProject, Collections.emptyList(), false, myRepository.getComponentName()); return FormBuilder.createFormBuilder() .addLabeledComponent(myProductLabel, myProductInput) .addLabeledComponent(myComponentLabel, myComponentInput) .getPanel(); }