An adapter class provides the default implementation of all methods in an event listener interface. Adapter classes are very useful when you want to process only few of the events that are handled by a particular event listener interface. You can define a new class by extending one of the adapter classes and implement only those events relevant to you.
The pessimist complains about the wind; the optimist expects it to change; the realist adjusts the sails.
-- William Arthur Ward
I'm Nataraja Gootooru, programmer by profession and passionate about technologies. All
examples given here are as simple as possible to help beginners. The source code is compiled and tested in my dev environment.
If you come across any
mistakes or bugs, please email me to [email protected] or you can comment on the page.