Event Handling Syntax


Prev Tutorial Next Tutorial

Syntax to Handle the Event

Example

class className implements XXXListener
{
.......
.......
}
addcomponentobject.addXXXListener(this);
.......
// override abstract method of given interface and write proper logic
public void methodName(XXXEvent e)
{
.......
.......
}
.......
}

Prev Tutorial Next Tutorial

Advertisements




Facebook Likes

Advertisements