What is known for certain from this correct code excerpt?
ActionListener openListener = new FileOpenListener() ;
JMenuItem fileOpen = new JMenuItem("Open File") ;
fileOpen.addActionListener(openListener) ;
A) fileOpen will open a file dialog when clicked
B) The fileOpen menu item will be visible
C) The FileOpenListener class implements the ActionListener interface
D) The openListener object will only listen to the fileOpen object
Correct Answer:
Verified
Q36: a(n. _ is used when you have
Q37: A _ is a combination of a
Q38: What type of object can be added
Q39: What type does the method getSelectedItem in
Q40: Which method can a program use to
Q42: What is wrong with the following code?
class
Q43: What features do GUI builders have to
Q44: If the method makeMenuItem is called four
Q45: Which elements of creating a graphical user
Q46: You can add a(n) _ to a
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents