Recent articles:
Popular archives:
Java: A platform for platforms
Sun's reorg may seem promising to shareholders but it's also a scramble for position. The question now is whether Sun can,
or wants to, maintain its hold on Java technology. Especially with enterprise leaders like SpringSource and RedHat investing
heavily in Java's future as a platform for platforms
Also see:
Discuss: Java: A platform for platforms?
Page 2 of 4
|
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.