OBJECTIVES
After studying this chapter, you will
Understand the importance of the user interface.
Know how to use a simple command-line interface.
Be able to program and use a simple Graphical User Interface (GUI).
Understand the concept of event-driven programming.
Know how to program and use a Java applet.
OUTLINE
4.1
Introduction
4.2
The User Interface
4.3
A Command-Line Interface
4.4
A Graphical User Interface (GUI)
4.5
CASE STUDY: The One-Row Nim Game
4.6
From the Java Library: java.io.File and File Input (Optional)
Chapter Summary
Solutions to Self-Study Exercises
Exercises