Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 57076 invoked from network); 25 Sep 2007 10:21:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Sep 2007 10:21:13 -0000 Received: (qmail 32508 invoked by uid 500); 25 Sep 2007 10:21:03 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 32481 invoked by uid 500); 25 Sep 2007 10:21:02 -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 32464 invoked by uid 99); 25 Sep 2007 10:21:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Sep 2007 03:21:02 -0700 X-ASF-Spam-Status: No, hits=-98.8 required=10.0 tests=ALL_TRUSTED,DNS_FROM_DOB,RCVD_IN_DOB 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, 25 Sep 2007 10:21:11 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1515B714212 for ; Tue, 25 Sep 2007 03:20:51 -0700 (PDT) Message-ID: <31799515.1190715651083.JavaMail.jira@brutus> Date: Tue, 25 Sep 2007 03:20:51 -0700 (PDT) From: "Alexey Petrenko (JIRA)" To: commits@harmony.apache.org Subject: [jira] Assigned: (HARMONY-4838) [classlib][swing] hang up when call JDialog.setVisible In-Reply-To: <28434216.1190358651437.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-4838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alexey Petrenko reassigned HARMONY-4838: ---------------------------------------- Assignee: Alexey Petrenko > [classlib][swing] hang up when call JDialog.setVisible > ------------------------------------------------------ > > Key: HARMONY-4838 > URL: https://issues.apache.org/jira/browse/HARMONY-4838 > Project: Harmony > Issue Type: Bug > Components: Classlib > Environment: Win32 > Reporter: Chunrong Lai > Assignee: Alexey Petrenko > Attachments: harmony-4838-fixed.patch > > > Below is the reproducer. SwingUtilities.invokeLater schedules a job for the event-dispatching thread but it does not impact the result of hang up. > import java.awt.event.ActionEvent; > import java.awt.event.ActionListener; > import javax.swing.JButton; > import javax.swing.JDialog; > import javax.swing.JFrame; > //import javax.swing.SwingUtilities; > public class TestRunner > { > public static void main(String[] args) > { > //javax.swing.SwingUtilities.invokeLater(new Runnable() { > // public void run() { > JFrame frame = new JFrame(); > frame.setDefaultCloseOperation(frame.EXIT_ON_CLOSE); > frame.setBounds(200, 200, 400, 300); > frame.setVisible(true); > > final JDialog dialog = new JDialog(frame, true); > dialog.setBounds(400, 400, 50, 50); > JButton button = new JButton("aaa"); > button.addActionListener(new ActionListener() { > public void actionPerformed(ActionEvent e) { > dialog.setVisible(true); > System.out.println("Can I see it at the mean time?"); > }}); > dialog.add(button); > dialog.setVisible(true); > System.out.println("fsafasfsfsfasfasfs"); > //} //end of run > //}); //end of invokeLater > } //end of main > } //end of TestRunner -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.