This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug SWING/22610] New: swing: JScrollPane is not repainted correctly after window resize (more info)
- From: "timo dot lindfors at iki dot fi" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jul 2005 15:31:26 -0000
- Subject: [Bug SWING/22610] New: swing: JScrollPane is not repainted correctly after window resize (more info)
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Here's alternative testcase for classpath bug #13814. Should print "true/true"
but prints "true/false".
Testcase:
import javax.swing.*;
import java.awt.*;
public class testcase extends JFrame {
public static void main(String[] args) {
new testcase();
}
public testcase() {
JTextArea area = new JTextArea("text1");
JScrollPane scrollpane = new JScrollPane(area);
this.setContentPane(area);
try {
this.setSize(new Dimension(100,300));
this.show();
Thread.sleep(1000);
System.out.println(area.isValid());
this.setSize(new Dimension(300,300));
Thread.sleep(1000);
System.out.println(area.isValid());
System.exit(0);
} catch (Exception e) {
e.printStackTrace();
}
}
}
--
Summary: swing: JScrollPane is not repainted correctly after
window resize (more info)
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: SWING
AssignedTo: graydon at redhat dot com
ReportedBy: timo dot lindfors at iki dot fi
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22610