posted 23 years ago
Dharam,
You are right. Its another way of doing things. It depends on the design. Lets say you are writing a calculator and each button is just supposed to write to the display when it is clicked. You can either create 10 buttons ( 1,2,3 ... ) and add Listeners to them individaully. Instead why not subclass Button, add the ProcessEvent and ENABLE_EVENT code and do it once. I hope it makes sense.
Thanks,
Harry