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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.