Some reader favorites:
EJB fundamentals and session beans
Create a scrollable virtual desktop in Swing
Wizard API updated!
Tim Boudreau has released a new version of the Swing Wizard library (version 0.997) that fixes the WizardException bug reported in JavaWorld's recent Open Source Java Project profile. The article's examples have been reworked to test out the new, improved WizardException. Thanks, Tim, for this helpful fix!
Open Source Java Projects: The Wizard API
You're not alone if you think drag and drop in Java Web applications is a drag. Fortunately, we found a solution in Google Web Toolkit Solutions: More Cool & Useful Stuff, forthcoming from Prentice Hall. In this excerpt, authors David Geary and Rob Gordon show you how to implement a drag-and-drop module that you can easily incorporate into your Java Web applications. Along the way you'll also learn about GWT modules, composite widgets, and widget event handling.
The ultimate in user interactivity, drag and drop is taken for granted in desktop applications but is a litmus test of sorts for Web applications: If you can easily implement drag and drop with your Web application framework, then you know you've got something special.
Until now, drag and drop for Web applications has, for the most part, been limited to specialized JavaScript frameworks such as Script.aculo.us and Rico. No more. With the advent of GWT, we have drag-and-drop capabilities in a Java-based Web application framework. Although GWT does not explicitly support drag and drop (drag and drop is an anticipated feature in the future), it provides us with all the necessary ingredients to make our own drag-and-drop module.
In this solution, we explore drag-and-drop implementation with GWT. We implement drag and drop in a module of its own so that you can easily incorporate drag and drop into your applications.
This solution explores the following aspects of GWT:
Composite class
AbsolutePanel class to place widgets by pixel location
See Google Web Toolkit Solutions: More Cool & Useful Stuff Solution 1 and Solution 2 for more in-depth discussions of implementing GWT modules and implementing composite widgets, respectively.
Free Download - 5 Minute Product Review. When slow equals Off: Manage the complexity of Web applications - Symphoniq
![]()
Free Download - 5 Minute Product Review. Realize the benefits of real user monitoring in less than an hour. - Symphoniq