Which of the following statements registers a panel object aPanel as a listener for a button variable aButton? Question 15 options: aPanel.addEventListener(aPanel); aButton.addActionListener(aPanel); aButton.addActionEventListener(aPanel); addActionListener(aPanel);
Question 15 (5 points)
Which of the following statements registers a panel object aPanel as a listener for a button variable aButton?
Question 15 options:
| aPanel.addEventListener(aPanel); |
| aButton.addActionListener(aPanel); |
| aButton.addActionEventListener(aPanel); |
| addActionListener(aPanel); |