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

Wrapped words disappear when wrapping starts in a JTextArea.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.2.2
    • 1.1.7, 1.2.0
    • client-libs
    • 1.2.2
    • x86, sparc
    • solaris_2.5.1, solaris_2.6, windows_95, windows_nt

      The test
        api/javax_swing/interactive/JTextAreaTests.html#JTextAreaTest0011
      is meant to probe line wrapping in JTextAreas. There is a checkbox
      in the test that enables the JTextArea feature that forces wrapping
      to occur at word boundaries.

      After starting the test, I selected the "Wrap at word boundaries"
      check box. Then I entered the text:
          0123456789012345678901 abcdef
      into the JTextArea so that the right edge of the JTextArea is
      just to the right of the 'f'. Typing a 'g' after the 'f' made the
      contents of the JTextArea look like:
          0123456789012345678901
                g
      This is the bug. Typing an 'h' after the 'g' made the JTextArea
      contain two lines:
          0123456789012345678901
          abcdefg
      which is what should be there.


      allan.jacobs@Eng 1998-11-10

            svioletsunw Scott Violet (Inactive)
            ajacobssunw Allan Jacobs (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: