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

JTextPane: Layout, wrapping, and highlights completely broken

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P1 P1
    • None
    • 5.0
    • client-libs
    • None
    • x86
    • windows_nt, windows_2000

      JTextPane is completely unusable.

      Its layout is broken, line wrapping doesn't work, and there are no highlights.

      Compile and run the attached test (JTextPaneTest.java).

      Click in the JTextPane and type "abc". Notice how the text is cut off and the caret overlaps where some text should be.

      Type a whole bunch of text. Normally the JTextPane would wrap at the end of the line. It no longer does.

      Try to highlight some text with the mouse. It doesn't work.

      I've also seen exceptions, multiple carets, and overlapping text while playing with this demo.

            idk Igor Kushnirskiy (Inactive)
            shickeysunw Shannon Hickey (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: