guideliness on create a portal

GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

guideliness on create a portal

Postby asianCoolz » Sat Jan 31, 2009 7:42 am

Do I need to specify width for instance 800*600 on rootPanel and use absolutePanel to insert my GWT UI to create portal? Because if i use this approach my page will be hardcoded width and height and cannot be re sizable by visitors. I remember when I did programming in SWT, I able to make the ui auto resizable depending on the parent windows size. how can I achieve this with gwt designer. can give me example
Posts: 7
Joined: Fri Jan 23, 2009 12:58 am

Re: guideliness on create a portal

Postby Eric Clayberg » Sat Jan 31, 2009 7:22 pm

I don't have any such examples, but why not just make the width 100%?

In general, questions about how to use GWT should be directed to the Google GWT forum.
Eric Clayberg
Software Engineering Manager

Author: "Eclipse Plug-ins"
Eric Clayberg
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: guideliness on create a portal

Postby Konstantin.Scheglov » Sun Feb 01, 2009 12:17 am

Use something like this:

Code: Select all
public class ImageViewer implements EntryPoint {
   public void onModuleLoad() {
      final RootPanel rootPanel = RootPanel.get();
         final Button button = new Button("Fill button");
         rootPanel.add(button, 10, 10);
         Window.addWindowResizeListener(new WindowResizeListener() {
            public void onWindowResized(int width, int height) {
               button.setPixelSize(width - 10 - 10, height - 10 - 10);
         button.setPixelSize(Window.getClientWidth() - 10 - 10, Window.getClientHeight() - 10 - 10);
Posts: 186
Joined: Tue Oct 18, 2005 8:11 pm
Location: Russian Federation, Lipetsk

Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 2 guests