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

Text does not clear selection on Text.setText(...)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: fx2.0.2
    • Fix Version/s: fx2.0.2
    • Component/s: javafx
    • Labels:

      Description

      Text does not clear selection on Text.setText(...). Thus next selection range will be invalid for most text content changes. For example if all text is selected in a string "Hello", then we have a selection range from 0 to 5. But if that text is changed to "H" the range 0, 5 will cause an out of range exception.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                thor Thor Johannesson (Inactive)
                Reporter:
                thor Thor Johannesson (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: