Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 88922 invoked from network); 17 Nov 2006 05:32:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Nov 2006 05:32:01 -0000 Received: (qmail 45471 invoked by uid 500); 17 Nov 2006 05:32:11 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 45370 invoked by uid 500); 17 Nov 2006 05:32:11 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 45359 invoked by uid 99); 17 Nov 2006 05:32:11 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Nov 2006 21:32:11 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Nov 2006 21:32:00 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id DF35E71431F for ; Thu, 16 Nov 2006 21:31:39 -0800 (PST) Message-ID: <26457326.1163741499911.JavaMail.jira@brutus> Date: Thu, 16 Nov 2006 21:31:39 -0800 (PST) From: "Mikhail Loenko (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Assigned: (HARMONY-1801) [classlib][swing] JComponent.setBounds() should not cause revalidation In-Reply-To: <16927174.1160469439767.JavaMail.root@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/HARMONY-1801?page=all ] Mikhail Loenko reassigned HARMONY-1801: --------------------------------------- Assignee: Mikhail Loenko > [classlib][swing] JComponent.setBounds() should not cause revalidation > ---------------------------------------------------------------------- > > Key: HARMONY-1801 > URL: http://issues.apache.org/jira/browse/HARMONY-1801 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Dmitry A. Durnev > Assigned To: Mikhail Loenko > Priority: Minor > Attachments: H1801-BasicTabbedPaneUI.patch, H1801-fix.patch, H1801-tests.patch > > > Validation process should not be initiated by component reshaping to avoid too > many re-validations while doing layout (layout usually causes reshape). > Therefore JComponent.setBounds() should not call revalidate. > Compile & run the following test: > import java.awt.EventQueue; > import java.lang.reflect.InvocationTargetException; > import javax.swing.JButton; > import javax.swing.JFrame; > public class SetBoundsTest { > > public static void main(String[] args) throws InterruptedException, InvocationTargetException { > final JFrame jf = new JFrame("test"); > final JButton jb = new JButton("1"); > jf.getContentPane().add(jb); > jf.setSize(200, 200); > EventQueue.invokeAndWait(new Runnable(){ > public void run() { > jf.show(); > } > > }); > EventQueue.invokeAndWait(new Runnable(){ > public void run() { > jb.setSize(150, 500); > } > > }); > > EventQueue.invokeAndWait(new Runnable(){ > public void run() { > System.out.println(jb.getSize()); > jf.dispose(); > } > > }); > > } > } > On RI button size set by user(150, 500) is printed. On Harmony some other size (set by layout) is printed. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira