Return-Path: X-Original-To: apmail-pivot-user-archive@www.apache.org Delivered-To: apmail-pivot-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DC12DFE5 for ; Wed, 20 Apr 2011 02:45:26 +0000 (UTC) Received: (qmail 38828 invoked by uid 500); 20 Apr 2011 02:45:26 -0000 Delivered-To: apmail-pivot-user-archive@pivot.apache.org Received: (qmail 38765 invoked by uid 500); 20 Apr 2011 02:45:26 -0000 Mailing-List: contact user-help@pivot.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@pivot.apache.org Delivered-To: mailing list user@pivot.apache.org Received: (qmail 38757 invoked by uid 99); 20 Apr 2011 02:45:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Apr 2011 02:45:26 +0000 X-ASF-Spam-Status: No, hits=4.2 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RFC_ABUSE_POST,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 216.139.236.26 is neither permitted nor denied by domain of sueyentsai@gmail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Apr 2011 02:45:19 +0000 Received: from ben.nabble.com ([192.168.236.152]) by sam.nabble.com with esmtp (Exim 4.69) (envelope-from ) id 1QCNPW-000245-Lj for user@pivot.apache.org; Tue, 19 Apr 2011 19:44:58 -0700 Date: Tue, 19 Apr 2011 19:44:58 -0700 (PDT) From: sam To: user@pivot.apache.org Message-ID: <1303267498666-2841188.post@n3.nabble.com> Subject: Alert opened and the rest of code keep going MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_38338_13656969.1303267498668" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_38338_13656969.1303267498668 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, In swing the Dialog shows up and the code after dialog.setVisible(true) will not run until the dialog is closed. The Alert or prompt in Pivot is not following that behavior. I tested the following code as a button listener. The alert shows up on screen right but the System.out.printlnn() prints before the alert was closed. Is this simply because pivot wasn't design the same way swing dialog was designed or I missed something? function buttonPressed(button) { Alert.alert("This is an Alert.", frame); System.out.println("alert showd"); } Sam -- View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Alert-opened-and-the-rest-of-code-keep-going-tp2841188p2841188.html Sent from the Apache Pivot - Users mailing list archive at Nabble.com. ------=_Part_38338_13656969.1303267498668 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, In swing the Dialog shows up and the code after dialog.setVisible(true) will not run until the dialog is closed. The Alert or prompt in Pivot is not following that behavior. I tested the following code as a button listener. The alert shows up on screen right but the System.out.printlnn() prints before the alert was closed. Is this simply because pivot wasn't design the same way swing dialog was designed or I missed something?
function buttonPressed(button) {
     Alert.alert("This is an Alert.", frame);
    System.out.println("alert showd");
 }
Sam

View this message in context: Alert opened and the rest of code keep going
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
------=_Part_38338_13656969.1303267498668--