AWT Containers - AWT (Abstract Window Toolkit)

What is the use of AWT Containers?

AWT Containers are an integral part of AWT GUI components. Container offers a space to locate a component and container in AWT is a component by itself which adds the capability of adding component to it. Below are the points to be considered.

  • Sub classes of Container are known as Containter. For example Panel, Frame and Window.
  • Container can add only Component to itself.
  • Default layout will be present in each container which can be overridden using setLayout method.

Sr. No.

Container & Description



Container is a generic container object which consists of other AWT components.

AWT UI Elements:

Below is the list of frequently used containers while designing GUI using AWT.

Sr. No.

Container & Description



Panel is the simplest container which offers a space to place any other component, including other panels.



Frame is a top-level window with a title and a border



Window object is a top-level window with no borders and no menubar.

All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd Protection Status

AWT (Abstract Window Toolkit) Topics