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

JTextComponent incorrectly implements committed text related methods

XMLWordPrintable

    • beta2
    • generic
    • generic
    • Verified

      JTextComponent implements the interface InputMethodRequests, but the following committed text related methods are incorrectly implemented:

      cancelLatestCommittedText - currently returns an AttributedString instance which contains null ("") string. This should return null if it does not support the undo-commit functionality.

      getCommittedText - currently returns an AttributedCharacterIterator instance that contains null ("") string. This should return a range text that is specified by (begin, end) in the text component.

      getCommittedTextLength - currently returns 0. This should return the entire text length in this text component.

      ===========================================================================
      Verified in MB91

      ###@###.### 2002-01-15
      ===========================================================================

            naoto Naoto Sato
            naoto Naoto Sato
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: