Using which Layout We can force the components to start a new line in a frame?
-
Flow Layout
-
Box Layout
-
Border Layout
-
None of these
B
Correct answer
Explanation
BoxLayout allows components to be arranged vertically (along the Y-axis), forcing each component to start on a new line. FlowLayout arranges components horizontally in a line, wrapping only if space is insufficient, while BorderLayout places components in five specific regions rather than sequential lines.