pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brendan cheng <ccp...@hotmail.com>
Subject Simple display a dialog question
Date Wed, 30 Nov 2011 09:29:30 GMT

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! 		 	   		  
Mime
View raw message