Hi derrck
What i usually do is create a DockPanel, then set the width and height
to "100%" and stick my login box in the center panel of the
DockPanel.
TextBox login=new TextBox();
Dockpanel myDock=new DockPanel()
myDock.setSize("100%","100%");
myDock.add(login,DockPanel.CENTER);
Something like that should do the trick.
On Sep 25, 11:37 am, Derrick Xiang <[email protected]> wrote:
> Sorry to clarify, i am not using a dialogbox, i want my rootpanel to
> be centralized in the web page, as I previewed, it's always located at
> the top left corner.
>
> Regards,
> Derrick
>
> On Sep 25, 3:47 pm, Norman Maurer <[email protected]> wrote:
>
> > Hi Parvez,
>
> > just a note.. Hupa moved to james.apache.org as subproject (I'm just
> > in preparations to deploy the website). The website can be found (
> > after I finished the work) underhttp://james.apache.org/hupa.
>
> > The svn repos is:
>
> >http://svn.apache.org/repos/asf/james/hupa
>
> > Bye,
> > Norman
>
> > Ps: README.txt should include everything to get it running ;)
>
> > 2009/9/25 Parvez Shah <[email protected]>:
>
> > > If you are new to GWT based development my suggestion is learn from
> > > project
> > > HUPA
> > >http://svn.apache.org/repos/asf/labs/hupa
>
> > > its based on pretty good architecture and in my experience you straight
> > > lift lot of initial Boiler plate code.
>
> > > In my view dont get too much into running its ok if you cant run it, just
> > > read the code starting from entry point and you will be good to go .
>
> > > as far as your query goes its simple dialogbox.center and
> > > dialogbox.show/hide will do.
>
> > > On Fri, Sep 25, 2009 at 6:52 AM, Derrick Xiang <[email protected]>
> > > wrote:
>
> > >> Hi all,
> > >> I am quite new to GWT development, now am struggling in a small web
> > >> application, my application include a lot of GUI.
>
> > >> while, I got two questions here,
> > >> 1). How can centralize the application on the final web page? e.g. I
> > >> create a login window which is quite small, when I preview on the web
> > >> page, it's not in the center of the page, how can i capture the web
> > >> page size in my java code?
>
> > >> 2). As the application has a lot of GUI, how should I switch between
> > >> different windows? e.g. after login, the main window should display
> > >> and the login window should be hide, how to do this?
>
> > >> thanks for your attention, any comments are appreciate.
>
> > >> Regards,
> > >> Derrick
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---