3.4. Creating your user interface
When you display some text to the user, provide a button for them to click, or animate a dialog box giving some information, you’re using a widget. When you want to display widgets in some form of structure, then you’re most likely going to be using a panel.
Definitions
A widget is a component of your web application with which the user may interact. A panel is a widget that can hold one or more other widgets in a specific visual/functional structure.
HelloWorld’s entry point gave perhaps the simplest example. It created a Label widget that’s able to hold some text and added it to a panel called RootPanel (that represents the web page).
Widgets and panels have some subtle differences between them, ...
Get GWT in Action, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.