Chapter 4. Laying Out Components within a Container

http://java.sun.com/docs/books/tutorial/uiswing/layout/index.html

This chapter tells you how to use layout managers, which are objects that control the size and position of components in a container. It also tells you how to use absolute positioning (no layout manager) and presents an example of how to write a custom layout manager. How-to information for each of the commonly used layout managers is in Chapter 8, Layout Manager Reference (page 457).

The chapter contains the following sections:

  • A Visual Guide to Layout Managers shows examples of the standard layout managers and points to each one's how-to section.

  • Using Layout Managers includes how to set the layout manager, add components to a container, ...

Get JFC Swing Tutorial, The: A Guide to Constructing GUIs, Second Edition 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.