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

TextBox getText() returns nothing when called from an onKeyXX event

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • fx2.0
    • fx2.0
    • javafx
    • Windows 7, Java 1.6.

      Calling getText() returns nothing when called from an onKeyXX event.

      You have to call getRawText() to get the current text contents.

      This is, in my opinion, nuts and utterly confusing.

      If you want to differentiate between committed/uncommitted text, how about removing getText() and getRawText() and going with getUncommittedText() and getCommittedText().

      Or have getText() return the current contents, and introduce getCommittedText();

            gkbrown Greg Brown (Inactive)
            sherodjfx Steven Herod (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: