Programming - Layouts
You Are Here :: Home > JAVA > Layouts - General Questions
7.
The _____________ puts the components either in one row or column.
A.
BoxLayout
B.
BorderLayout
C.
layout manager
D.
layout components
Answer: Option A
Explanation:
The BoxLayout puts the components either in one row or column.
8.
The __________ places each component into a cell of a grid made up of a specified number of rows and columns
A.
BorderLayout
B.
GridLayout
C.
BoxLayout
D.
all the above
Answer: Option B
Explanation:
The GridLayout places each component into a cell of a grid made up of a specified number of rows and columns
9.
The __________is similar to the GridLayout in that it uses a grid made up of a number of rows and columns.
A.
graphical layout
B.
BoxLayout
C.
GridLayout
D.
GridBagLayout
Answer: Option D
Explanation:
The GridBagLayout is similar to the GridLayout in that it uses a grid made up of a number of rows and columns.
10.
The _______________ can be quite complicated to use as it deals with the horizontal and vertical layouts separately.
A.
GridBagLayout
B.
layout manager
C.
GroupLayout
D.
BorderLayout
Answer: Option C
Explanation:
The GroupLayout can be quite complicated to use as it deals with the horizontal and vertical layouts separately.
11.
The ____________ allows you to make an area which can display different components at different times.
A.
GridBagLayout
B.
CardLayout
C.
BoxLayout
D.
GroupLayout
Answer: Option B
Explanation:
The CardLayout allows you to make an area which can display different components at different times.
12.
The _______________ is one of the most flexible layout managers as the position of each component is defined by the distance to the edges of another component.
A.
SpringLayout
B.
BoxLayout
C.
BorderLayout
D.
layout components
Answer: Option A
Explanation:
The SpringLayout is one of the most flexible layout managers as the position of each component is defined by the distance to the edges of another component.
« prev
next »