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