Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which Layout Manager do you use?

Tags:

java

layout

swing

What java GUI layout manager does everyone use? Lately, I have been using MigLayout, which has some powerful component controls. Just wanted to see what other developers are using other than the standard JDK ones.

like image 771
ShawnD Avatar asked Sep 22 '08 19:09

ShawnD


People also ask

Which method is used to layout manager?

After a container has been created, you can set its layout manager using the setLayout method. For example: Container contentPane = frame.

Which layout manager is the default?

BorderLayout. The border layout is the default layout manager for all Window objects.


2 Answers

MiGLayout is the GUI layout manager which is widely used by Java Developers.

like image 161
Rui Vieira Avatar answered Sep 16 '22 21:09

Rui Vieira


GridBagLayout is usable. Once you get used to using it, it works great. I think the standard JDK layout managers are pretty powerful on their own. Plus, you get to minimize dependency on 3rd party libraries.

like image 22
Jay R. Avatar answered Sep 20 '22 21:09

Jay R.