Which layout is used as their default layout by Window, Frame and Dialog classes?

Options
- CardLayout
- BorderLayout
- FlowLayout
- GridLayout


CORRECT ANSWER : BorderLayout

Discussion Board
BorderLayout

Panels allow us to format the screen. Panels must have a specific layout. If a layout is not specified, the default will be a FlowLayout.

BorderLayout divides the screen in nine sections based in geographic orientation such as "North", "South", "East"....etc. BorderLayout takes no arguments.

It is also the default layout for Window, Frame and Dialog classes as it is used to draw the borders on the screen in the form of frames.

Rohit Sharma 09-30-2014 05:31 PM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement