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

1

Container

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

1

Panel

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

2

Frame

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

3

Window

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

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

AWT (Abstract Window Toolkit) Topics