Google Web Toolkit

GWT Panels

GWT Designer supports the following panel types (layout managers).

AbsolutePanel

FlexTable

 

Grid

 

FlowPanel

Dock[Layout]Panel

 

LayoutPanel

 

Notes about panels with implicit layout managers

A program written in GWT may be deployed on multiple platforms. If you were to use standard UI design techniques, specifying absolute positions and sizes for your UI components, your UI won't be portable. What looks fine on your development system might be unusable on another platform. To solve this problem, GWT provides a system of portable panel types each with its own implicit layout manager. You use these layout managers to specify rules and constraints for the layout of your UI in a way that will be portable.

Layout managers can provide the following advantages:

  • Correctly positioned components that are independent of fonts, screen resolutions, and platform differences.
  • Intelligent component placement for containers that are dynamically resized at runtime.
  • Ease of translation. If a string increases in length after translation, the associated components stay properly aligned.

Each panel type has characteristic strengths and drawbacks. Grid-based layouts and constraint-based layouts are the most useful and powerful of the standard layouts, but they are also the most complicated.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 3.0 License.

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.