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 E488C9495 for ; Wed, 30 Nov 2011 09:30:05 +0000 (UTC) Received: (qmail 25574 invoked by uid 500); 30 Nov 2011 09:30:04 -0000 Delivered-To: apmail-pivot-user-archive@pivot.apache.org Received: (qmail 24695 invoked by uid 500); 30 Nov 2011 09:30:03 -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 24605 invoked by uid 99); 30 Nov 2011 09:30:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Nov 2011 09:30:03 +0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ccp999@hotmail.com designates 65.54.190.19 as permitted sender) Received: from [65.54.190.19] (HELO bay0-omc1-s8.bay0.hotmail.com) (65.54.190.19) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Nov 2011 09:29:52 +0000 Received: from BAY148-W46 ([65.54.190.61]) by bay0-omc1-s8.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 30 Nov 2011 01:29:31 -0800 Message-ID: Content-Type: multipart/alternative; boundary="_26e1b7f5-20e7-4ae6-80b0-c7868f4eb653_" X-Originating-IP: [220.243.139.2] From: Brendan cheng To: pivot user list Subject: Simple display a dialog question Date: Wed, 30 Nov 2011 09:29:30 +0000 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 30 Nov 2011 09:29:31.0422 (UTC) FILETIME=[9084B3E0:01CCAF42] X-Virus-Checked: Checked by ClamAV on apache.org --_26e1b7f5-20e7-4ae6-80b0-c7868f4eb653_ Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8bit Hi, I wrote a login screen which has a button of registration. When the button of registration is pressed, the registration is loaded from bxml file. But I don't know how to show it on window.here is the snippet from my login java.@Override public void initialize(Map namespace, URL location, final Resources resources) { // TODO Auto-generated method stub registerButton = (PushButton) namespace.get("registerButton"); registerButton.getButtonPressListeners().add(new ButtonPressListener() { @Override public void buttonPressed(Button button) { BXMLSerializer bxmlSerializer = new BXMLSerializer(); try { registerWindow = (RegisterWindow) bxmlSerializer.readObject(getClass() .getResource("Register_window.bxml"), resources); // registerWindow.open(display); <-------------?????? } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (SerializationException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }); } Thanks in advance! --_26e1b7f5-20e7-4ae6-80b0-c7868f4eb653_ Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: 8bit
Hi,

I wrote a login screen which has a button of registration.  When the button of registration is pressed, the registration is loaded from bxml file.  But I don't know how to show it on window.
here is the snippet from my login java.

@Override

public void initialize(Map<String, Object> namespace, URL location,

final Resources resources) {

// TODO Auto-generated method stub

registerButton = (PushButton) namespace.get("registerButton");


registerButton.getButtonPressListeners().add(new ButtonPressListener() {

@Override

public void buttonPressed(Button button) {

BXMLSerializer bxmlSerializer = new BXMLSerializer();

try {

registerWindow = (RegisterWindow) bxmlSerializer.readObject(getClass()

.getResource("Register_window.bxml"), resources);

// registerWindow.open(display);  <-------------??????

} catch (IOException e) {

// TODO Auto-generated catch block

e.printStackTrace();

} catch (SerializationException e) {

// TODO Auto-generated catch block

e.printStackTrace();

}

}

});


}


Thanks in advance!

--_26e1b7f5-20e7-4ae6-80b0-c7868f4eb653_--