Question:
(a) Explain the event handling mechanism using a 'JComboBox' as example. Your answer must clearly indicate the event source, event object and event listener.
Also write down the necessary sample code extracts where appropriate.
(b) Explain the use and purpose of Java adapter classes using any suitable example of your own.