Programming - Layouts
You Are Here :: Home > JAVA > Layouts - General Questions
19.
ThecomponentOrientation property provides a way of indicating that a particular component should use something different from the default__________orientation.
A.
right-to-right, top-to-bottom
B.
left-to-left, top-to-bottom
C.
left-to-right, top-to-bottom
D.
right-to-left, top-to-bottom
Answer: Option C
Explanation:
ThecomponentOrientation property provides a way of indicating that a particular component should use something different from the default left-to-right, top-to-bottom orientation.
20.
In a container, the orientation is used as a hint to the _______________.
A.
layout manager
B.
BorderLayout
C.
layout components
D.
both a and c
Answer: Option A
Explanation:
In a container, the orientation is used as a hint to the layout manager.
21.
Invisible components-You can create lightweight components that perform no painting, but that can take up space in the __________.
A.
API
B.
GUI
C.
both a and b
D.
none
Answer: Option B
Explanation:
Invisible components-You can create lightweight components that perform no painting, but that can take up space in the GUI.
22.
If it is the only component in its container, use _________.
A.
GridBagLayout or Border layout
B.
BoxLayout or Border layout
C.
GroupLayout or Border layout
D.
GridLayout or BorderLayout
Answer: Option D
Explanation:
If it is the only component in its container, use GridLayout or BorderLayout.
23.
Tabbed panes are something like a ____________with tabs. They are not implemented as a layout, but as a type of panel.
A.
card layout
B.
GridLayout
C.
graphical layout
D.
FlowLayout
Answer: Option A
Explanation:
Tabbed panes are something like a card layout with tabs. They are not implemented as a layout, but as a type of panel.
24.
________________ is good for something like a wizard interface which shows one of several possible layouts
A.
graphical layout
B.
BorderLayout
C.
GroupLayout
D.
CardLayout
Answer: Option D
Explanation:
CardLayout is good for something like a wizard interface which shows one of several possible layouts
« prev