7. Input/Output: Designing the User Interface

 

 

 

 

 

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 Swing program.

OUTLINE

Introduction

The User Interface

A Command-line Interface

A Graphical User Interface (GUI)

Case Study: The One Row Nim Game

From the Java Library: java.io.File and file input (Optional)

Chapter Summary

Solutions to Self-Study Exercises Exercises

 

 

 

 

 

 

 

 

 

149