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

Modal dialog bug

XMLWordPrintable

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



      Name: rlT66838 Date: 07/16/97


      Using setCaretPosition() and getCaretPosition()
      in TextArea's doesn't work correctly in NT4.0
      and JDK1.1.3.

      If I have a panel with text:
      -------
      Line1
      Line2
      Line3
      ------

      And would call

      setCaretPosition(999)

      The cursor would remain 3 chars apart the end
      of the panel. If I would have 10 lines
      it would remain 10 lines apart and so on...

      Positions are also mixed in other lines by
      the line numner of the current line.

      It seems that all line changes are counted twice
      and the function that counts total number of
      chars only counts them once.



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

            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: