Chapter 12. The java.awt Package: Layout

OBJECTIVES

This chapter helps you prepare for the exam by covering the following objectives from the “The java.awt Package” section of the Sun testing objectives.

Write code using Component, Container, and LayoutManager classes of the java.awt package to present a graphical user interface (GUI) with specified appearance and resize behavior, and distinguish the responsibilities of layout managers from those of containers.

  • This is the key objective of this chapter. Several exam questions require you to know the basics of how layout managers are used. You need to have some practical experience using the AWT layout managers to correctly answer these exam questions.

This chapter also covers the following learning ...

Get Sun Certification Training Guide (310-025, 310-027): Java™ 2 Programmer and Developer Exams now with O’Reilly online learning.

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