Solution 4. Viewports and Maps

When you start working with GWT, it doesn’t take long before you realize that the possibilities are endless. Pretty much anything you can implement in a desktop application with frameworks like Swing or the SWT is also possible with GWT.

Swing provides a handy component known as a viewport, which serves as a port onto a larger view; thus the name. Viewports are handy for all sorts of things. For example, if you wanted to create a game with a scrolling background, you might use a viewport to show a portion of your background. As the game’s characters approach the edges of the viewport, you could scroll the underlying background to let those characters explore other portions of your game’s landscape.

Another use for ...

Get Google Web Toolkit Solutions: More Cool Useful Stuff now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.