Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 94862 invoked from network); 21 Aug 2007 08:47:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Aug 2007 08:47:56 -0000 Received: (qmail 50222 invoked by uid 500); 21 Aug 2007 08:47:51 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 50198 invoked by uid 500); 21 Aug 2007 08:47: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 50176 invoked by uid 99); 21 Aug 2007 08:47:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Aug 2007 01:47:51 -0700 X-ASF-Spam-Status: No, hits=-99.6 required=10.0 tests=ALL_TRUSTED,SUBJECT_FUZZY_TION 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; Tue, 21 Aug 2007 08:48:26 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 351D2714209 for ; Tue, 21 Aug 2007 01:47:31 -0700 (PDT) Message-ID: <13075404.1187686051215.JavaMail.jira@brutus> Date: Tue, 21 Aug 2007 01:47:31 -0700 (PDT) From: "Dmitry Irlyanov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Created: (HARMONY-4655) [classlib][swing]Setting null as margin to button don't cause to use the default margin MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [classlib][swing]Setting null as margin to button don't cause to use the default margin --------------------------------------------------------------------------------------- Key: HARMONY-4655 URL: https://issues.apache.org/jira/browse/HARMONY-4655 Project: Harmony Issue Type: Bug Components: Classlib Reporter: Dmitry Irlyanov Priority: Minor According to spec, AbstractButton.setMargin(null) causes the button to use the default margin (2,2,2,2) but Harmony doesn't obey this rule import java.awt.Insets; import javax.swing.JRadioButton; public class Test { public static void main(String[] args) { JRadioButton rb = new JRadioButton(); System.err.println(rb.getMargin()); rb.setMargin(null); System.err.println(rb.getMargin()); rb.setMargin(new Insets(10,10,10,10)); System.err.println(rb.getMargin()); rb.setMargin(null); System.err.println(rb.getMargin()); } } Output(RI): javax.swing.plaf.InsetsUIResource[top=2,left=2,bottom=2,right=2] javax.swing.plaf.InsetsUIResource[top=2,left=2,bottom=2,right=2] java.awt.Insets[top=10,left=10,bottom=10,right=10] javax.swing.plaf.InsetsUIResource[top=2,left=2,bottom=2,right=2] Output(Harmony): javax.swing.plaf.InsetsUIResource[left=2,top=2,right=2,bottom=2] null java.awt.Insets[left=10,top=10,right=10,bottom=10] null -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.