public TextField(String label, String text, int maxSize, int constraints) {
		super(label);
		if (text == null) {
			text = "";
		}
		if (maxSize <= 0) {
			throw new RuntimeException("The maxSize on the TextField should be more than 0 actual value: " + maxSize);
		}
		if (constraints < 0) {
			constraints= TextField.ANY;
		}
		if (text.length() > maxSize) {
			text= text.substring(0, maxSize);
		}

		field = new ScmTextComponent(this, "textField", true);
		field.setText(text);
		field.setMaxSize(maxSize);
		field.setConstraints(constraints);
		lines.addElement(field);
	}