CHAPTER 3

image

Graphical User Interfaces

This chapter will explain the basic components of a graphical user interface (GUI) and how to use them in Java applications. We will begin to explore the different types of relationships between classes and document both the classes and their relationships using the Unified Modeling Language (UML).

After finishing this chapter, you should understand:

  • AWT, Swing, and SWT
  • Getters and setters
  • Properties
  • Composition
  • Specialization
  • Inheritance
  • UML

After finishing this chapter, you should be able to:

  • Create a simple frame
  • Display information using labels
  • Generate a UML diagram
  • End an application

Introduction ...

Get Beginning Java with WebSphere now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.