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

JTextComponent incorrectly implements committed text related methods

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      beta2
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      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
      ===========================================================================

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: