The JavaTM Tutorial

| Start of Tutorial > Start of Trail | Search Feedback Form Examples Index (1.4)

Trail: Creating a GUI with JFC/Swing

## Lesson: Using Other Swing Features

> This lesson contains a collection of how-to pages to help you use miscellaneous Swing features.

### How to Use Actions

> With `Action` objects, you can coordinate the state and event handling of two or more components that generate action events. For example, you can use a single `Action` to create and coordinate a tool-bar button and a menu item that perform the same function.

### How to Support Assistive Technologies

> Swing components have built-in support for assistive technologies. Your program can provide even better support by following a few rules.

### How to Use Borders

> Borders are very handy for drawing lines, titles, and empty space around the edges of components. (You might have noticed that the examples in this trail use a lot of borders.) This section tells you how to add a border to any `JComponent`.

### How to Use Data Transfer

> Most applications can benefit from the ability to transfer information between components, either using drag and drop, or cut, copy, and paste. This section tells you how to implement these features in your program.

### How to Use the Focus Subsystem

> Some programs need to manipulate focus — for example, to validate input, or change the tab-order of components. This section describes some techniques you can use to customize focus in your program.

### How to Use Icons

> Many Swing components can display icons. Usually, icons are implemented as instances of the `ImageIcon` class.

### How to Use Key Bindings

> With key bindings, you can specify how components react to user typing.

### How to Set the Look and Feel

> You can specify the look and feel of Swing components.

### How to Use Threads

> Read this section if you need access to the GUI from any thread except the event-dispatching thread. This section explains how to use methods such as `invokeLater` and classes such as `SwingWorker`. It also tells you when you might want to use the `Timer` class.

### How to Use Swing Timers

> With the Swing `Timer` class, you can implement a thread that performs an action after a delay, and optionally continues to repeat the action. The action executes in the event-dispatching thread.

### Solving Common Problems Using Other Swing Features

> This section tells you how to fix problems you might encounter while trying to use the information in this lesson.

| Start of Tutorial > Start of Trail | Search Feedback Form Examples Index (1.4)

Copyright 1995-2004 Sun Microsystems, Inc. All rights reserved.