JDK-5066160 : JTextPane: Layout, wrapping, and highlights completely broken
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 5.0
  • Priority: P1
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_nt,windows_2000
  • CPU: x86
  • Submitted: 2004-06-21
  • Updated: 2004-06-21
  • Resolved: 2004-06-21
Related Reports
Duplicate :  
Duplicate :  
Description
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.

Comments
EVALUATION this bug has the same cause as 5065189 closing as dup ###@###.### 2004-06-21
21-06-2004