Multiple Choice
When you write an action listener class for a JButton component,it must
A) have a method named buttonClicked
B) implement the ActionLIstener interface
C) have a method named actionPerformed which must take an argument of the ActionEvent type
D) Both b and c
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q6: Programs that operate in a GUI environment
Q16: Check boxes may be grouped in a
Q22: When an application uses many components, instead
Q25: In GUI terminology, a container that can
Q35: Which of the following is not a
Q36: You must use the statement import java.swing.*;
Q38: The GridLayout manager limits each cell to
Q43: The FlowLayout manager does not allow the
Q49: This layout manager arranges components in rows.<br>A)
Q60: When this is the argument passed to