addTextField(parent, textEditor, labelText, propertyName, false);
} else {
parent.add(new JLabel(labelText));
PropertyDescriptor propertyDescriptor = propertyContainer.getDescriptor(propertyName);
propertyDescriptor.setValidator(new PatternValidator(Pattern.compile(validatorRegex)));
<BUG>JComponent editorComponent = textEditor.createEditorComponent(propertyDescriptor, bindingContext);
editorComponent.setPreferredSize(new Dimension(editorComponent.getPreferredSize().width, controlHeight));</BUG>
editorComponent.setMaximumSize(new Dimension(editorComponent.getMaximumSize().width, controlHeight));
parent.add(editorComponent);
}

addTextField(parent, textEditor, labelText, propertyName, false);
} else {
parent.add(new JLabel(labelText));
PropertyDescriptor propertyDescriptor = propertyContainer.getDescriptor(propertyName);
propertyDescriptor.setValidator(new PatternValidator(Pattern.compile(validatorRegex)));
JComponent editorComponent = textEditor.createEditorComponent(propertyDescriptor, bindingContext);
UIUtils.addPromptSupport(editorComponent, "enter " + labelText.toLowerCase().replace(":", "") + " here");
editorComponent.setPreferredSize(new Dimension(editorComponent.getPreferredSize().width, controlHeight));
editorComponent.setMaximumSize(new Dimension(editorComponent.getMaximumSize().width, controlHeight));
parent.add(editorComponent);
