In this section, you will learn how to handle events in Java awt. Events are the integral part of the java platform. You can see the concepts related to the event handling through the example and use methods through which you can implement the event dri
As discussed earlier a container is a component that can be nested. The most widely used Panel is the Class Panel which can be extended further to partition GUIs. There is a Panel which is used for running the programs. This Panel is known as Class Applet
A scrollable text display object with one row of characters is known as the TextField. In the example given below, shown a textfield in the applet by creating its textfield.shtml object.
A scrollbar is represented by a "slider" widget. The characteristics of it are specified by integer values which are being set at the time of scrollbar construction. Both the types of Sliders are available i.e. horizontal and vertical.
A displayed label object is known as the Label. Most of the times label is used to demonstrate the significance of the other parts of the GUI. It helps to display the functioning of the next text field. A label is also restricted to a single line of text
The class component is extended by all the AWT components. More of the codes can be put to this class to design lot of AWT components. Most of the AWT components shown below directly extend Component like Button, Canvas, Label etc.
Graphical User Interfaces
A class library is provided by the Java programming language which is known as Abstract Window Toolkit (AWT). The Abstract Window Toolkit (AWT) contains several graphical widgets which can be added and positioned to the display area with a layout manager
Create Your Own Package
The package to which the source file belongs is specified with the keyword package at the top left of the source file, before the code that defines the real classes in the package.