Some reader favorites:
EJB fundamentals and session beans
Create a scrollable virtual desktop in Swing
More action with Struts 2
In a recent review of Struts 2 in Action, JW Blogger Oleg Mikheev notes that Struts 2 is "just a collection of extensions built upon WebWork, which is ultimately
the right thing to learn before starting a Struts 2 project." While Struts 2 has some architectural flaws, Oleg calls WebWork
well-designed, well-tested, and reliable. What are your experiences using Struts 2 and WebWork?
Also see "Hello World the WebWork way," a JavaWorld excerpt from WebWork in Action, by Patrick Lightbody and Jason Carreira.
| Memory Analysis in Eclipse |
| Enterprise AJAX - Transcend the Hype |
In the 1.0 release, the Java L&F will be renamed the Organic L&F and will include two color schemes, Santa Fe and Vancouver,
not available with the pre-release Java L&F. Users of pre-release version who continue to use this L&F will have to substitute
OrganicLookAndFeel for JLFLookAndFeel in code statements.
|
The Organic L&F, Santa Fe style |
The Organic L&F, Vancouver style |
|
The Motif L&F |
The Win32-style L&F |
Feedback from users of the pre-release versions of Swing (and specifically on the Java L&F) provided the design team with many ways to enhance the Java L&F for Swing 1.0. Following are some of the changes made to the Organic (neé Java) L&F.
Theme object, that the application can apply by using the setCurrentTheme() method. Expect Theme objects to encapsulate more than color schemes in future versions of Swing.radioButtonMenuItems and checkBoxMenuItems have been enhanced. And sliders now come in filled and unfilled versions.
The Motif and Windows 32-style L&Fs are pretty straightforward. There is a locking method on the Windows L&F that keeps it from working on non-Windows platforms -- Microsoft hasn't granted JavaSoft the rights that would allow Sun to offer the Windows L&F for other platforms.
|
The Macintosh L&F |
The Metal (default) L&F |
Metal was created as a compromise between the burden of overamped 3D design and the need for some sort of 3D effect to provide visual cues. Many users complained about the "bumpiness" of 3D bevels, especially on buttons in toolbars. So the designers went for an "etched" or "flush" 3D look, eliminating some of the visual clutter while still providing visual clues as to the state of the element.

The traditional, 3D bevel look (top) versus the new Metal L&F "etched" look
Also, since Metal is the new default L&F in Swing 1.0, it was designed with a simpler color model than the pre-release default, so it won't develop color-mapping problems from platform to platform. (For more on the Metal design, see "Metal design highlights" in Resources.)
According to JavaSoft officials, the Macintosh L&F won't be available when Swing 1.0 makes its debut later this month, but it should follow soon after. Also, because Metal is the new default cross-platform L&F, the Organic L&F (Vancouver and Santa Fe) will be available for downloading, but won't be bundled in Swing 1.0.
Swing components support the JavaBeans event model, which means they can work "out of the box" in applications and IDEs that support beans. In JDK 1.1 (and forward), Swing is one of the five APIs that make up the Java Foundation Classes (JFC). The others are:
Swing is implemented by three elements of the JFC:
JComponent (which descended from AWT's Container class). The hierarchy lets Swing components contain other components, which allows developers to nest components.The UI classes are responsible for the pluggable L&F, component extensibility, keyboard-stroke trapping, component border customization, tool tip support (short descriptions of components), auto-scrolling, and debugging and localization support.