Java Classes APIs

In this appendix, we have compiled the APIs for the Java classes and interfaces used in this book. There are more methods and constructors for the classes presented here, and there are many more classes in the Java class library. We invite you to explore the Java APIs at


Package: java.awt.event

Description: contains information relating to the action event fired by a component. This event is passed to any ActionListener registered on the component.

A Useful Method of the ActionEvent Class

Return value

Method name and argument list


getSource( )


returns the object reference of the component that fired the event. This method is inherited from the EventObject ...

Get Java Illuminated, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.