Multiple Choice
Which of the following statements will correctly add a JMenuBar named myBar to a JFrame ?
A) myBar = setJMenuBar
B) setJMenuBar(myBar)
C) JMenuBar.setJMenuBar(myBar)
D) JMenuBar = new JMenuBar(myBar)
Correct Answer:

Verified
Correct Answer:
Verified
Q1: import java.awt.*; <br>import javax.swing.*; <br>import java.awt.Color; <br>public
Q2: The wildcard in the import java.awt.* statement
Q3: What is the parent class of JPanel
Q4: When do you need to worry about
Q6: import javax.swing.*; <br>import java.awt.*; <br>public class JDemoGridLayout
Q7: _ are lists of user options; they
Q8: The focusGained(FocusEvent) handler is defined in the
Q9: A BorderLayout is arranged in north, south,
Q10: A(n) _ is a tree of components
Q11: import javax.swing.*; <br>import java.awt.*; <br>public class JDemoBorderLayout