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

TextComponent.getSelectedText() probem on NT/95

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.1.3
    • client-libs
    • None
    • x86
    • windows_95



      Name: rlT66838 Date: 08/07/97


      The behavior of TextComponent.getSelectedText()
      ( and getSelectionStart/End ) is different on NT/95
      vs UNIX ( works fine on Solaris ).

      In NT/95 these functions seem to count the \r's
      as well as the \n's at the end of each line when
      indexing into the component. However, the \r's are
      not returned in the string genereated by getText().

      The workaround code below is from my application
      which uses these methods.

      ======================================================================

            ehawkessunw Eric Hawkes (Inactive)
            rlewis Roger Lewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: