Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8335547

Support multi-line prompt text for TextArea

    XMLWordPrintable

Details

    • generic
    • generic

    Description

      ADDITIONAL SYSTEM INFORMATION :
      All systems

      A DESCRIPTION OF THE PROBLEM :
      As of OpenJFX 22, newlines/linebreaks in prompt texts for all TextInputControls (TextField and TextArea) are automatically stripped out.
      https://github.com/openjdk/jfx/blob/ca04c87d307c36591162af8cd6298ede17812834/modules/javafx.controls/src/main/java/javafx/scene/control/TextInputControl.java#L323
      (Sidenote: The automatic stripping also currently causes exeptions when prompt texts with newlines are bound - reported under internal review ID : 9077238).

      Stripping newlines might be sensible for the single-line TextField, however for multi-line TextAreas, this seems like an unnecessary limitation.

      On certain OSs, e.g. Windows, it may be possible to use e.g. "\r" (carriage return) as a workaround. This is not possible on e.g. Linux.

      Enhancement request: Multi-line prompt texts should be supported for TextArea.


      Attachments

        Issue Links

          Activity

            People

              angorya Andy Goryachev
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: