JLabel jlabel = (label != null && label.length() > 0) ? new JLabel(label) : null;
return getNonEmptyTextInputField(name, jlabel, length, isFixedSize);
}
public static TextInputField2 getNonEmptyTextInputField(String name, JLabel jlabel, int length, boolean isFixedSize) {
return new DefaultNonEmptyTextInputField(name, getTextField(length, isFixedSize), jlabel);
}