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!