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

-------------

Commit messages:
 - Fixed TextInputControl binding prompt with linebreaks and added tests

Changes: https://git.openjdk.org/jfx/pull/1694/files
  Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=1694&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8335587
  Stats: 42 lines in 2 files changed: 37 ins; 5 del; 0 mod
  Patch: https://git.openjdk.org/jfx/pull/1694.diff
  Fetch: git fetch https://git.openjdk.org/jfx.git pull/1694/head:pull/1694

PR: https://git.openjdk.org/jfx/pull/1694

Reply via email to