import javax.swing.JFrame; import javax.swing.JMenuBar; public class MyJFrame ex
ID: 3771090 • Letter: I
Question
import javax.swing.JFrame;
import javax.swing.JMenuBar;
public class MyJFrame extends JFrame
{
JMenuBar bar;
MyJFrame(String s)
{
super(s);
JMenuBar bar = new JMenuBar();
setJMenuBar(bar);
}
}
What statements best describe what the code does when it is compiled and executed?
Select one or more:
a. The inherited class JFrame sets the title for MyJFrame
b. The codes sets up the menu choices
c. The area north of the cotent pane is reserved for the menu choices, and it is not visible to the human eye
d. The code sets up the menu items onto the menubar
import javax.swing.JFrame;
import javax.swing.JMenuBar;
public class MyJFrame extends JFrame
{
JMenuBar bar;
MyJFrame(String s)
{
super(s);
JMenuBar bar = new JMenuBar();
setJMenuBar(bar);
}
}
Explanation / Answer
c. The area north of the cotent pane is reserved for the menu choices, and it is not visible to the human eye
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.