Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

adapter class ?

Answer Posted / janet

An adapter class provides an empty implementation of all
methods in an event listener interface.Adapter classes are
useful when you want to receive and process only some of
the events that are handled by a particular event listener
interface.you can define a new class to act lisener by
extending one of the adapter classes and implementing onlu
those events in which you are interested.
For ex: the MouseMotionListenerAdapter class has two
methods,mouseDragged() and mouseMoved(). The signatures of
these empty are exactly as defined in the
MouseMotionListener interface. If you are interested in
onlu mouse drag events,that you could simply extend
MouseMotionAdapter and implement mouseDragged().

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does java edition mean?

1034


Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?

1168


How we can run a jar file through command prompt in java?

912


How do you sing an Applet ?

2419


How to add menushortcut to menu item?

944


Is integer a class?

1014


What do the thread?class methods run() and start() do?

983


What is remote method invocation (rmi)?

1006


What is the map interface in java programming?

965


Can I extend singleton class in java?

1038


What is the use of protected in java?

975


What does 3 dots mean in java?

922


what is inner class in java?

1073


Can you access non static variable in static context?

984


Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.

882