APPENDIX F

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 www.oracle.com/technetwork/java.

ActionEvent

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

Object

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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.