Social Sciences, asked by avdhutdhamankar2717, 1 year ago

What is the default layout manager for the dialog class in java?

Answers

Answered by Chirpy
0

The default layout manager for the Dialog class in java is BorderLayout manager.


LayoutManagers are used to arrange components in a specific way. Every container class has a default layout manager. The BorderLayout manager is the default manager for the Frame class and Dialog class. The FlowLayout manager is the default layout manager for the Panel class.

Answered by writersparadise
0

The answer is BorderLayout.


The Dialog class and Frame class in Java are subclasses of the main Window class. Therefore, they use the same Layout Manager that is used for Windows class. The standard Layout Manager for Windows class is BorderLayout. Hence, the default Layout Manager for Dialog class is also BorderLayout.                       


A dialog is a window that responds based on an input provided by the user.
Similar questions