From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7755 invoked by alias); 22 Jul 2005 15:31:27 -0000 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org Received: (qmail 7729 invoked by uid 48); 22 Jul 2005 15:31:26 -0000 Date: Fri, 22 Jul 2005 15:31:00 -0000 From: "timo dot lindfors at iki dot fi" To: java-prs@gcc.gnu.org Message-ID: <20050722153124.22610.timo.lindfors@iki.fi> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug SWING/22610] New: swing: JScrollPane is not repainted correctly after window resize (more info) X-Bugzilla-Reason: CC X-SW-Source: 2005-q3/txt/msg00118.txt.bz2 List-Id: 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