Download the JDK
Search the Tutorials
Trail: Graphical User Interfaces
Lesson: Swing Features
Home Page > Graphical User Interfaces > Swing Features
« Previous • TOC
Answers to Questions and Exercises: Graphical User Interfaces

### Questions

> 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 a `JList`, 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, 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.

> 7. Can I deploy my Swing application on the web?

> > Certainly. You can use either Java Web Start or Java Plugin.

Previous page: Questions and Exercises: Graphical User Interfaces