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]
# 1

> 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?

kajbja at 2007-7-12 8:24:06 > top of Java-index,Java Essentials,New To Java...
# 2
Am just going over past papers since there are no answer sheets, this is the best place to get expert responses..
Chillia at 2007-7-12 8:24:06 > top of Java-index,Java Essentials,New To Java...
# 3

> 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?

georgemca at 2007-7-12 8:24:06 > top of Java-index,Java Essentials,New To Java...
# 4
better than nothing, answers seem pretty right..
Chillia at 2007-7-12 8:24:06 > top of Java-index,Java Essentials,New To Java...
# 5
> better than nothing, answers seem pretty right..But since you had to ask in the first place, how can you tell?
georgemca at 2007-7-12 8:24:06 > top of Java-index,Java Essentials,New To Java...
# 6
Well i don't know...I have given the answer that i would put down, just seeing if i am on the right lines and waiting for people to correct moi..
Chillia at 2007-7-12 8:24:06 > top of Java-index,Java Essentials,New To Java...
# 7
> 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;)
kajbja at 2007-7-12 8:24:06 > top of Java-index,Java Essentials,New To Java...
# 8
Ya those answers where top notch just after the "}"Just like find X....
Chillia at 2007-7-12 8:24:06 > top of Java-index,Java Essentials,New To Java...