pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pan peter <pan.peter1...@gmail.com>
Subject Re: how to make a login window before main window?
Date Wed, 26 Oct 2011 14:12:17 GMT
here is the dialog.bxml,

<Dialog bxml:id="dialog" title="Dialog" modal="false"
    xmlns:bxml="http://pivot.apache.org/bxml"
    xmlns="org.apache.pivot.wtk"> 
    <TablePane preferredWidth="320" preferredHeight="210"> 
        <columns> 
            <TablePane.Column width="1*"/> 
        </columns> 
        <TablePane.Row height="1*"> 
            <Label text="This is a dialog."
                preferredWidth="320" preferredHeight="210"
                styles="{horizontalAlignment:'center',
verticalAlignment:'center'}"/> 
        </TablePane.Row> 
 
        <TablePane.Row height="-1"> 
            <BoxPane styles="{horizontalAlignment:'right'}"> 
                <PushButton buttonData="Close"
                    ButtonPressListener.buttonPressed="dialog.close()"/> 
            </BoxPane> 
        </TablePane.Row> 
    </TablePane> 
</Dialog> 

Here is my startup()

public void startup(Display display, Map<String, String> properties)  
throws Exception     {   
    	BXMLSerializer bxmlSerializer = new BXMLSerializer(); 
    	Dialog myDialog = (Dialog)
bxmlSerializer.readObject(ClientApplication.class, "resource/dialog.bxml");
    	myDialog.open(display);
} 

it always open a big pivot window behind the dialog :-(



--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/how-to-make-a-login-window-before-main-window-tp3454273p3454547.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Mime
View raw message