The basic idea behind the AWT is that a java window is a set of nested components starting from the outermost window all the way down to the smallest User Interface component.
The AWT provides the basic GUI components that are used in java applets and applications. The AWT provides a machine-independent interface for applications.
Java Components are implemented by the many subclasses of the java.awt.Component and java.awt.MenuComponent superclass. There are 19 non-superclasses in general. The general way to categories them is to divide them into the following categories:
1. Label \u2013 A simple label
2. Button \u2013 A simple push button
3. Canvas \u2013 A base class for creating your own controls.
4. Checkbox \u2013 A combination of check box and radio (option) button
5. Choice \u2013 A drop down list control
6. FileDialog \u2013 Which represents a File Open or Save Dialog
The two important things done with the container is establishing the container\u2019s layout manager and adding components to the container. Container is the abstract subclass of component, which allows other components to be nested inside it. These components can also be containers allowing other components to be nested inside it.
has Frame and Dialog as its subclasses
2. Frame \u2013 A frame is a window with a title and resizing corners.
3. Dialog \u2013 A Dialog does not have a menu bar. Although u can move it,
4. Panel \u2013 It is contained inside another container of inside a web browser\u2019s window. Panel identifies a rectangular area into which you must place other components. You must place Panel into a Window or subclass of window to be displayed.
Incase u are not using the default layout managers associated with each container, we must ourselves place the components using the 3 methods \u2013 setLocation(), setSize() and setBounds().
The layout manager can override your decision. If you must control the size or position of components in such a way that cannot be done using the standard layout managers, you can disable the layout manager by issuing the following method call in your container
Adds the specified component to this container at the given position. Here the number would be \u20131 to insert at the end
This action might not be possible to undo. Are you sure you want to continue?