Question
Menus are attached to windows by calling method____________. A) addMenuBar B) setJMenuBar C) setMenu D) addJMenuBar 67. The first argument to method showMessageDialog specifies A)
Menus are attached to windows by calling method____________.
A) addMenuBar
B) setJMenuBar
C) setMenu
D) addJMenuBar
67.
The first argument to method showMessageDialog specifies
A) the title
B) the message
C) the icon
D) the parent window
68.
Which constructor below creates a JInternalFrame that isresizable, closable, maximizable, and minimizable?
A) JInternalFrame frame = new JInternalFrame("InternalFrame", true, true, true, true);
B) JInternalFrame frame = new JInternalFrame("Internal Frame",true, true, false, true);
C) JInternalFrame frame = new JInternalFrame("Internal Frame",true, true, true, false);
D) JInternalFrame frame = new JInternalFrame("Internal Frame",false, false, true, true);
69.
In a multiple-document interface (MDI), a JDesktopPane is theparent window and what class is the child window?
A) JChild
B) JInternalFrame
C) JChildWindow
D) JFrame
70.
A JTabbedPane
A) arranges GUI components into layers such that only onelayer is visible at a time.
B) allows users to access a layer of GUI components via atab.
C) extends JComponent.
D) All of the above.
71.
Which of the following GridBagConstraints specifies the numberof columns a component will occupy?
A) gridwidth
B) gridheight
C) weightx
D) weighty
72.
What GridBagConstraints constants can be used in place of gridxand gridy?
A) RELATIVE and REMAINDER
B) CENTER and BOTH
C) NORTH and SOUTH
D) FILL and NONE
73.
To evenly distribute fixed size components in a row usingBoxLayout, use the method:
A) createVerticalStrut().
B) createHorizontalStrut().
C) createVerticalGlue().
D) createHorizontalGlue().
74.
By default, the tabs on a JTabbedPane appear at the:
A) top
B) bottom
C) left
D) right
Step by Step Solution
3.55 Rating (166 Votes )
There are 3 Steps involved in it
Step: 1
The detailed answer for the above question is provided below Answer 66 The correct answer is A addMenuBar Menus are attached to windows by calling the addMenuBar method This method is used to attach a ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started