Chapter 7 Examples
Label Alignments
LabelAlign.java
demonstrates the available label alignments.
Label Text Positions
LabelTextPos.java
demonstrates the available label text positions.
Labels
LabelExample.java
displays several JLabels with various attribtues.
Text Fields
Fields.java
displays several JTextFields with various attribtues.
Text Areas
Areas.java
displays several JTextAreas with various attribtues.
Focus Events
FocusWatch.java
uses a FocusListener to receive notifications of changes to a text fields focus.
Supporting Focus Traversal
Lenses.java
demonstrates the techniques used to support focus traversal in custom components.
Key Events
Echo.java
uses a KeyListener to receive notifications of key events in a text field.
Form Design
Forms.java
displays a good form.
BadForm.java
displays a bad form.
Copyright © 1998, John Wiley and Sons, Inc.