Problem:
Question1- What is an event object? Give an example.
Question 2- What is an event source? Give an example.
Question 3- What is an event listener? Give an example.
Question 4- What is a nested inner class? What special privileges does a nested inner class have? Give an example of how you declare a nested inner class.
Question 5- You are writing a simple GUI application using a class called MyGuiClass. Your GUI will have a JButton which your program will need to respond to when it is clicked. Describe what you would need to do to setup event handling using a nested inner class. Use Java code fragments in your answer.
Question 6- If the GUI in the above example had three JButtons, how would you change your actionPerformed method to handle events from the three different buttons?
Please describe about an event listener.