Multiple Choice
When method makeMenuItem is called, how many objects are being created?
Public JMenuItem makeMenuItem(final String menuLabel)
{
JMenuItem mi = new JMenuItem(menuLabel) ;
Class MyMenuListener implements ActionListener
{
Public void actionPerformed(ActionEvent
A) 1
B) 2
C) 3
D) 4
E) {
DoSomethingElse() ;
System.out.println(menuLabel) ;
}
}
Mi) addActionListener(new MyMenuListener() ) ;
Return mi;
}
Correct Answer:

Verified
Correct Answer:
Verified
Q6: A complex GUI can be created with
Q11: What can be determined about obj from
Q21: What is the easiest way to create
Q22: _ are round and have a black
Q24: A _ is a user-interface component with
Q31: Which component can be added to a
Q32: Which elements of creating a graphical user
Q46: When the user selects a menu item,
Q62: If one ChangeListener is listening for three
Q63: Consider the following code snippet:<br>Class MouseClickedListener implements