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

Highlighting Swing text backwards corrupts the text as it is highlighted

XMLWordPrintable

    • 2d
    • 1.2beta4
    • sparc
    • solaris_2.6
    • Verified

      Highlighting Swing text backwards causes the text to become corrupted as the cursor passes backwards over the text. This occurs with JDK-1.2beta3-J and the built-in swing classes (in classes.zip). It occurs with both the Notepad and SwingSet examples, on Solaris, Windows NT and Windows 95.

      Steps to Reproduce:
      0) 0) Set classpath to JDK-1.2beta3-J, reading swing from 1.2's classes.zip.
      1) Go the the SwingSet jfc demo directory.
      2) Type: java -mx32m SwingSet file:images
      3) Go to the PlainText tabbed pane.
      4) Hightlight some text starting at the end of the text you want to highlight, moving the mouse towards the beginning of the text you want to highlight. The bug will only occur if you are highlighting backwards.
      RESULT: The text is corrupted underneath the highlight. You can read some of the characters, other characters are either missing or drawn on top of other characters.

            jkaulorcl Jeet Kaul (Inactive)
            nschorrsunw Nancy Schorr (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: