পৃষ্ঠাসমূহ

Search Your Article

CS

 

Welcome to GoogleDG – your one-stop destination for free learning resources, guides, and digital tools.

At GoogleDG, we believe that knowledge should be accessible to everyone. Our mission is to provide readers with valuable ebooks, tutorials, and tech-related content that makes learning easier, faster, and more enjoyable.

What We Offer:

  • 📘 Free & Helpful Ebooks – covering education, technology, self-development, and more.

  • 💻 Step-by-Step Tutorials – practical guides on digital tools, apps, and software.

  • 🌐 Tech Updates & Tips – simplified information to keep you informed in the fast-changing digital world.

  • 🎯 Learning Support – resources designed to support students, professionals, and lifelong learners.

    Latest world News 

     

Our Vision

To create a digital knowledge hub where anyone, from beginners to advanced learners, can find trustworthy resources and grow their skills.

Why Choose Us?

✔ Simple explanations of complex topics
✔ 100% free access to resources
✔ Regularly updated content
✔ A community that values knowledge sharing

We are continuously working to expand our content library and provide readers with the most useful and relevant digital learning materials.

📩 If you’d like to connect, share feedback, or suggest topics, feel free to reach us through the Contact page.

Pageviews

Sunday, January 15, 2017

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 which all event state objects shall be derived. All Events are constructed with a reference to the object, the source, that is logically deemed to be the object upon which the Event in question initially occurred upon.This class is defined in java.util package.

Class declaration

Following is the declaration for java.util.EventObject class:
public class EventObject
   extends Object
      implements Serializable

Field

Following are the fields for java.util.EventObject class:
  • protected Object source -- The object on which the Event initially occurred.

Class constructors

S.N.Constructor & Description
1EventObject(Object source)
Constructs a prototypical Event.

Class methods

S.N.Method & Description
1Object getSource()
The object on which the Event initially occurred.
2String toString()
Returns a String representation of this EventObject.

Methods inherited

This class inherits methods from the following classes:
  • java.lang.Object

AWT Event Classes:

Following is the list of commonly used event classes.
Sr. No.Control & Description
1AWTEvent
It is the root event class for all AWT events. This class and its subclasses supercede the original java.awt.Event class.
2ActionEvent
The ActionEvent is generated when button is clicked or the item of a list is double clicked.
3InputEvent
The InputEvent class is root event class for all component-level input events.
4KeyEvent
On entering the character the Key event is generated.
5MouseEvent
This event indicates a mouse action occurred in a component.
6TextEvent
The object of this class represents the text events.
7WindowEvent
The object of this class represents the change in state of a window.
8AdjustmentEvent
The object of this class represents the adjustment event emitted by Adjustable objects.
9ComponentEvent
The object of this class represents the change in state of a window.
10ContainerEvent
The object of this class represents the change in state of a window.
11MouseMotionEvent
The object of this class represents the change in state of a window.
12PaintEvent
The object of this class represents the change in state of a window.

No comments:

Post a Comment