Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 87816 invoked from network); 22 Sep 2006 08:04:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Sep 2006 08:04:27 -0000 Received: (qmail 26690 invoked by uid 500); 22 Sep 2006 08:04:27 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 26587 invoked by uid 500); 22 Sep 2006 08:04:26 -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 26576 invoked by uid 99); 22 Sep 2006 08:04:26 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Sep 2006 01:04:26 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from [209.237.227.198] ([209.237.227.198:60492] helo=brutus.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 64/B0-06791-60993154 for ; Fri, 22 Sep 2006 01:04:24 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6164D7142FE for ; Fri, 22 Sep 2006 08:00:23 +0000 (GMT) Message-ID: <31918444.1158912023395.JavaMail.jira@brutus> Date: Fri, 22 Sep 2006 01:00:23 -0700 (PDT) From: "Dmitry A. Durnev (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Updated: (HARMONY-1533) [classlib][swing] JCombobox.setSelectedItem() sometimes doesn't fire action event In-Reply-To: <29899749.1158854543072.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/HARMONY-1533?page=all ] Dmitry A. Durnev updated HARMONY-1533: -------------------------------------- Attachment: H1533-JComboBox.patch Attached fix for the issue. > [classlib][swing] JCombobox.setSelectedItem() sometimes doesn't fire action event > --------------------------------------------------------------------------------- > > Key: HARMONY-1533 > URL: http://issues.apache.org/jira/browse/HARMONY-1533 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Dmitry A. Durnev > Priority: Minor > Attachments: H1533-JComboBox.patch, H1533-tests.patch > > > Spec of JCombobox.setSelectedItem() says: > ActionListeners added to the combo box will be notified with an ActionEvent when this method is called. > But the following test prints "false" on Harmony & "true" on RI: > public class JComboboxTest { > private static boolean fired; > public class JComboboxTest { > private static boolean fired; > public static void main(String[] args) { > String item = "item"; > JComboBox jcb = new JComboBox(new String[]{item}); > jcb.addActionListener(new ActionListener(){ > public void actionPerformed(ActionEvent ae) { > fired = true; > } > }); > jcb.setSelectedItem(item); > System.out.println(fired); > } > } -- 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