Summary
Allow the promptText property in TextArea, TextField, and PasswordField to contain any character.
Problem
Previously, the promptText property had restrictions in some cases which limited the values it could take and modify its value by removing newlines "\n". Also binding the property when it has line breaks this would throw an exception which was handled in the TextInputControl control but this imposed unnecessary constraints.
Solution
Allow the promptText
property to take any value. This provides more flexibility when using TextArea, TextField, and PasswordField controls.
A promptText value that contains newlines will continue to appear in a single line in the single-line controls TextField
and PasswordField
and as a multi-line in TextArea
.
Specification
The change is behavioral: previously, there were unspecified restrictions on the promptText value in certain cases. Now, these restrictions have been removed, and the property can accept any value.
- csr of
-
JDK-8335547 Support multi-line prompt text for TextArea
-
- Open
-