Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 56564 invoked from network); 7 Jun 2007 07:34:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Jun 2007 07:34:47 -0000 Received: (qmail 75468 invoked by uid 500); 7 Jun 2007 07:34:51 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 75442 invoked by uid 500); 7 Jun 2007 07:34:51 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 75432 invoked by uid 99); 7 Jun 2007 07:34:51 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jun 2007 00:34:51 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED 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, 07 Jun 2007 00:34:46 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9AFE771418E for ; Thu, 7 Jun 2007 00:34:26 -0700 (PDT) Message-ID: <15780456.1181201666631.JavaMail.jira@brutus> Date: Thu, 7 Jun 2007 00:34:26 -0700 (PDT) From: "Andrey Pavlenko (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-4085) [classlib][awt][compatibility] BorderLayout does not invoke Component.setSize(int, int) of its components In-Reply-To: <3678670.1181198485997.JavaMail.jira@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 [ https://issues.apache.org/jira/browse/HARMONY-4085?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrey Pavlenko updated HARMONY-4085: ------------------------------------- Attachment: (was: HARMONY-4085-BorderLayout.patch) > [classlib][awt][compatibility] BorderLayout does not invoke Component.setSize(int, int) of its components > --------------------------------------------------------------------------------------------------------- > > Key: HARMONY-4085 > URL: https://issues.apache.org/jira/browse/HARMONY-4085 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Andrey Pavlenko > Attachments: HARMONY-4085-BorderLayout.patch, HARMONY-4085-BorderLayoutRTest.patch > > > BorderLayout does not invoke the method Component.setSize(int, int) of its components while resizing, but RI does. Because of this compatibility issue some buttons on Java DjVu Viewer are not displayed. The following test reproduces the issue: > public final void test() { > final Frame f = new Frame(); > final boolean[] isInvoked = new boolean[4]; > f.add(new Component() { > @Override > public void setSize(int width, int height) { > isInvoked[0] = true; > super.setSize(width, height); > } > }, BorderLayout.EAST); > f.add(new Component() { > @Override > public void setSize(int width, int height) { > isInvoked[1] = true; > super.setSize(width, height); > } > }, BorderLayout.WEST); > f.add(new Component() { > @Override > public void setSize(int width, int height) { > isInvoked[2] = true; > super.setSize(width, height); > } > }, BorderLayout.NORTH); > f.add(new Component() { > @Override > public void setSize(int width, int height) { > isInvoked[3] = true; > super.setSize(width, height); > } > }, BorderLayout.SOUTH); > f.setSize(100, 100); > f.setVisible(true); > f.dispose(); > assertTrue(isInvoked[0]); > assertTrue(isInvoked[1]); > assertTrue(isInvoked[2]); > assertTrue(isInvoked[3]); > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.