Integrated: 8335587: TextInputControl: Binding prompt text that contains linebreak causes exception
Ziad El Midaoui
duke at openjdk.org
Wed Feb 5 23:45:16 UTC 2025
On Tue, 4 Feb 2025 14:11:00 GMT, Ziad El Midaoui <duke at openjdk.org> wrote:
> When binding the promptTextProperty of a TextInputControl (TextField or TextArea) to a text that contains linebreaks/newlines ("\n") the "bind" call causes a RuntimeException to be thrown, the solution to it is to unbind before calling the set(txt) method to set the new value for the property.
> Also added tests to test this new fix
This pull request has now been integrated.
Changeset: d615fdc7
Author: Ziad El Midaoui <ziad.el.midaoui at oracle.com>
Committer: Andy Goryachev <angorya at openjdk.org>
URL: https://git.openjdk.org/jfx/commit/d615fdc717a55251225823ae5eeefb766e900e99
Stats: 42 lines in 2 files changed: 37 ins; 5 del; 0 mod
8335587: TextInputControl: Binding prompt text that contains linebreak causes exception
Reviewed-by: angorya, mhanl
-------------
PR: https://git.openjdk.org/jfx/pull/1694
More information about the openjfx-dev
mailing list