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.
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.
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.
Can Swing's list component (JList) only display text?
No, as the demo illustrated you can display anything you want in a JList
, including rich graphics.
Which Swing component provides undo support out of the box?
Swing's text components.
Can Java applications interact with the native desktop? components.
Certainly, the Desktop
API allows you to open up the browser and various other services and the TrayIcon
API allows you to put a Swing component into the desktop tray.
Can I deploy my Swing application on the web?
Certainly. You can use either Java Web Start or Java Plugin.