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

JTextComponent set and move CaretPosition is not the same as select(int s,int e)

XMLWordPrintable

    • beta
    • x86
    • windows_2000

      Inconsistencty between select and setCaretPoistion then moveCaretPosition
      1. Compile attached code and run
      2. Click 'Select using select' button
      Observe: All text is highlighted
      3. Click 'Select using setCaret, moveCaret
      Observe: Odd selection that is not consistent with select() selection
      note: end range on both accounts is greater than available text
      note2: JavaDoc needs to specify what should happen when range is greater than available text to select (another bug?)

            shickeysunw Shannon Hickey (Inactive)
            jdixonsunw John Dixon (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: