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
Q57: What can be determined about obj from
Q58: If the method makeMenuItem is called four
Q59: Which component can be added to a
Q59: Given four JRadioButton objects in a ButtonGroup,
Q61: You can add a(n) _ to a
Q63: Suppose a JPanel with a BorderLayout manager
Q65: What method is required by the ChangeListener
Q66: Which elements of creating a graphical user
Q67: How do the lifetimes of the three
Q72: Which of the following statements is correct?
A)new
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