Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4127974
Votes 3
Synopsis Repaint problems with JTextPane...
Category java:classes_swing
Reported Against 1.1.5
Release Fixed
State 11-Closed, duplicate of 4140634, bug
Priority: 4-Low
Related Bugs 4140634
Submit Date 10-APR-1998
Description




import java.awt.*;

import com.sun.java.swing.*;

// Swing 1.0.1 + JDK 1.1.5
// Repaint problems with JTextPane...
// Found following problems with JTextPane in the following program:
// * Type aaaaaaaa... and see the wrap around.  Sometime a caret is seen
//   hanging around after line
// * Now delete the characters by pressing 'Backspace'.  Major repaint 
//   problems at parts of character a are left hanging on the screen
// * Sometimes, hitting the return key brings out the horizontal scrollbar
//   even though JTextPane isn't supposed to have horizontal scrollbars 

public class testTextPane extends JFrame {
	public static void main (String[] args) {
		JFrame f = new testTextPane ();	

		f.pack ();
		f.setSize (300, 200);
		f.setVisible (true);
	}

    public testTextPane () {
        Container c = getContentPane ();
        c.setLayout (new BorderLayout ());
        
        JTextPane aTP = new JTextPane ();
        c.add (new JScrollPane (aTP), BorderLayout.CENTER);
    }
}
(Review ID: 26172)
======================================================================
Work Around
N/A
Evaluation
N/A
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang