Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 90353 invoked from network); 10 Jan 2008 12:27:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Jan 2008 12:27:57 -0000 Received: (qmail 73882 invoked by uid 500); 10 Jan 2008 12:27:46 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 73788 invoked by uid 500); 10 Jan 2008 12:27:46 -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 73779 invoked by uid 99); 10 Jan 2008 12:27:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jan 2008 04:27:46 -0800 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, 10 Jan 2008 12:27:42 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 328A071422E for ; Thu, 10 Jan 2008 04:27:34 -0800 (PST) Message-ID: <14632395.1199968054204.JavaMail.jira@brutus> Date: Thu, 10 Jan 2008 04:27:34 -0800 (PST) From: "Andrey Pavlenko (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-5060) [classlib][swing] Can not move window showing popupMenu In-Reply-To: <111789.1193992130613.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-5060?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12557611#action_12557611 ] Andrey Pavlenko commented on HARMONY-5060: ------------------------------------------ The attached patch introduces new issues. This issue needs more investigation. > [classlib][swing] Can not move window showing popupMenu > ------------------------------------------------------- > > Key: HARMONY-5060 > URL: https://issues.apache.org/jira/browse/HARMONY-5060 > Project: Harmony > Issue Type: Bug > Components: Classlib > Environment: Win32 > Reporter: Chunrong Lai > Assignee: Andrey Pavlenko > > Below is the simple reproducer. > I only succeed in the first time when I try to move the window with the PopupMenu showing. After that I can not move the window if the popup menu is shown. After some tracing I see that the window can be moved because the WM_CAPTURECHANGED event is generated and handled. But generally there are only MOUSE_PRESSED events instead of the WM_CAPTURECHANGED event. > import java.awt.*; > import java.awt.event.*; > import javax.swing.*; > public class PopupMenuDemo extends JPanel { > public PopupMenuDemo() { > super(new BorderLayout()); > String[] theStrings = { "First", "Second", "Third", "Fourth" }; > JComboBox theList = new JComboBox(theStrings); > add(theList, BorderLayout.PAGE_START); > } > public static void main(String[] args) { > JFrame frame = new JFrame("PopupMenuDemo"); > frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); > JComponent newContentPane = new PopupMenuDemo(); > newContentPane.setOpaque(true); //content panes must be opaque > frame.setContentPane(newContentPane); > frame.setBounds(100, 100, 200, 50); > //Display the window. > frame.setVisible(true); > } > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.