fix(renderer): setting multi-line property

This commit is contained in:
extio-de
2026-01-03 20:48:19 +01:00
parent 4034770d2a
commit 16b26d4b60

View File

@@ -72,11 +72,13 @@ public class G2DTextfieldControlImpl2 extends G2DBaseControlImpl implements Text
}
private void setMultiLine(final boolean multiLine) {
if (this.textComponent != null) {
throw new UnsupportedOperationException("Multiline property is read-only after initial control creation");
}
if (this.textComponent == null) {
this.multiLine = multiLine;
}
else {
// throw new UnsupportedOperationException("Multiline property is read-only after initial control creation");
}
}
private boolean isReadonly() {
return this.readonly;