What is the process of setting the layout manager?



What is the process of setting the layout manager?..

Answer / Deepika Pathak

To set the layout manager for a container in Swing, follow these steps:
1. Create a new instance of a desired layout class.
2. Set this layout object as the layout property of the container using the `setLayout()` method.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Swing Interview Questions

Default layout for a ContentPane in JFC?

8 Answers   HCL,


What is difference between applet and swing?

1 Answers  


What is the process of setting the layout manager?

1 Answers  


What is swing and awt in java?

1 Answers  


Why swings are called lightweight components?

1 Answers  


Hello ..Friends. I need a Code which makes a software of Enter the cheque Details.. means any enduser enter the details in a Particular field that should be printed on the paper On Cheque. at the backend side it sholud be printed on pdf file. Thanks in Advance

0 Answers  


What are all the components used in Swing?

1 Answers  


Which is better swing or awt?

1 Answers  


What are swings awt?

1 Answers  


What is the use of jcomponent class in swing?

1 Answers  


What are the components of java swing?

1 Answers  


What is swing api?

1 Answers  


Categories