Quick question
Describe how a graphics object such as an instance of JButton registers an event class to handle its action events.
Answer: button.addActionListener(this); //that right
The purpose of the Adapter class...
Implements an interface with a set of dummy methods
you don't have to write methods for events you are not interested in handling.
Anything else..?
[390 byte] By [
Chillia] at [2007-11-27 3:21:22]

> Describe how a graphics object such as an instance of
> JButton registers an event class to handle its action
> events.
>
> Answer: button.addActionListener(this); //that
> right
Bad design.
>
> The purpose of the Adapter class...
> Implements an interface with a set of dummy methods
> you don't have to write methods for events you are
> not interested in handling.
> Anything else..?
Why do you post your homework here?
> Am just going over past papers since there are no
> answer sheets, this is the best place to get expert
> responses..
Says who? Your average actual expert won't be too keen on doing your homework for you. A self-appointed expert might, but can you trust their answers?
> A self-appointed> expert might, but can you trust their answers?What, are you talking about my answers in this thread? http://forum.java.sun.com/thread.jspa?threadID=5168837&messageID=9647888#9647888;)