Organizing Components

The basic interface widgets that you find in a GUI environment are implemented by the AWT components. The AWT components are organized using containers and layout managers.

Note

To display an AWT component, you must place it in a container.

A layout manager is a set of instructions to the container about how and where to place the new component. Every time a new component is added to the container, the container consults the layout manager for its placement details.

Note

Containers are themselves components and therefore can be placed in other containers.

Several containers are defined in the AWT including

  • Panels— Used only for organizing components.

  • Frames— Can be used to create separate windows for your application and even ...

Get e-Commerce Applications Using Oracle8i and Java from Scratch 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.