AWT Event Classes
The Event classes represent the event. Java provides us various Event classes but we will discuss those which are more frequently used. EventObject class It is the root class from…
AWT
The Event classes represent the event. Java provides us various Event classes but we will discuss those which are more frequently used. EventObject class It is the root class from…
What is an Event? Change in the state of an object is known as event handling i.e. event describes the change in the state of source. Events are generated as…
Introduction FileDialog class control represents a dialog window from which the user can select a file. Class declaration Following is the declaration for java.awt.FileDialog class: public class FileDialog extends Dialog Field Following…
Introduction Dialog class control represents a top-level window with a title and a border used to take some form of input from the user. Class declaration Following is the declaration…
Introduction Scrollbar class control represents a scroll bar component in order to enable users to select from a range of values. Class declaration The Following is the declaration for java.awt.Scrollbar class: public…
Introduction Image class control is the superclass for all image classes representing graphical images. Class declaration The Following is the declaration for java.awt.Image class: public abstract class Image extends Object Field Following…
Introduction Canvas class control represents a rectangular area where the application can draw something or can receive inputs created by the user. Class declaration Following is the declaration for java.awt.Canvas class: public…
Introduction Choice class control is used to show pop up menu of choices. The selected choice is shown at the top of the menu. Class declaration Following is the declaration…
Introduction The TextArea class control in AWT provides us multiline editor area. The user can type here as much as he wants. When the text in the text area becomes…
Introduction The textField class component allows the user to edit a single line of text. When the user types a key in the text field the event is sent to…