I use a deckpanel to hold all my pages. For example
deckPanel.showWidget(0) // Show My Welcome/Login page deckPanel.showWidget(1) // Show page 1 of application. deckpanel.showWidget(2) // Show another page of the app etc. Each Page is some type of Panel, with other widgets on it. Successful login causes the application to switch to page 1 of the app. Mike. On Sep 25, 3:48 am, monk3y <darkside...@hotmail.com> wrote: > 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 <derrick.xi...@gmail.com> 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 <nor...@apache.org> 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 <parvezs...@gmail.com>: > > > > > 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 <derrick.xi...@gmail.com> > > > > 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 google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~----------~----~----~----~------~----~------~--~---