1. Does Swing support multiple look and feels?Yes. Sun provides implementations for the GTK+ look and feel, Windows look and feel, CDE/Motif look and feel, Synth (a customizable look and feel), and two variants of the Java look and feel.2. True or False: The Java look and feel is the only look and feel that works across all platforms.
True. The Java look and feel (also called Metal) comes in two themes. Previous to the 5.0 release, the theme was called Steel. The theme for 5.0 and beyond, is called Ocean.3. True or False: Swing's Undo Framework supports an unlimited number of actions to undo (and redo).
True. Undo support is built-in to Swing's text component and can be added to other components.4. Can Swing's list component (JList) only display text?
No, as the demo illustrated you can display anything you want in aJList
, including rich graphics.5. Which Swing component provides undo support out of the box?
Swing's text components.6. Can Java applications interact with the native desktop? components.
Certainly, theDesktop
API allows you to open up the browser and various other services and theTrayIcon
API allows you to put a Swing component into the desktop tray.7. Can I deploy my Swing application on the web?
Certainly. You can use either Java Web Start or Java Plugin.