I am a Java developer, designer, public speaker and a JAS 39 Gripen instructor fighter pilot. A somewhat unusual combination I guess, but I like challenges. I have created miglayout.com, migcalendar.com and Wing, a flight planning system used in several Air Forces. I find end user usability to be the most important part of a system and have therefore specialized in creating such applications. Mikael has posted 10 posts at DZone. View Full User Profile

MiG Layout 3.5 - SWT/Swing LayoutManager

  • submit to reddit

MiG Layout 3.5 is a Layout Manager for Swing and SWT that is very easy to use, yet extremely powerful when needed. It has a syntax that resembles CSS and replaces the functionality of all other layout managers, including FormLayout and TableLayout.

Version 3.5 contains several improvements. You can view them all in the change log.

At the site there are also demo applications, cheat sheets and a white paper. 


If you are visiting JavaOne, note that I will have a Technical Session (TS-4928) about how to create GUIs using MiG Layout. If you are attending JavaOne and you are a client side developer, or want to be one, please come and see it. I promise you that you will create more good looking GUIs faster if you do.


Mikael Grev


Average: 3.7 (3 votes)
Published at DZone with permission of its author, Mikael Grev.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)


Joe Attardi replied on Tue, 2008/04/29 - 10:45am

Congrats on the new release, Mikael. I absolutely LOVE MiG Layout and am currently using it in an application I am working on. Best layout manager I've ever worked with, hands down.

Mikael Grev replied on Tue, 2008/04/29 - 8:53pm

Thank you for your kind words Joe! :)

Mike P(Okidoky) replied on Wed, 2008/04/30 - 11:43am

MigLayout kind of makes the whole layout frustrations in Swing go away.  I'm not 100% behind the exact syntax, but the learning curve isn't bad and you can get going with it quite quickly.  Without MigLayout you'd be hopping back and forth between various other layout managers each with their own quirks.  I haven't seen it generate any strange errors or unpredictable behavior.  It's stable and effective and it's been around for a while.  If anyone has any doubts and is scratching their head over what to use, stop, use MigLayout, you won't be sorry.  The documentation is good, and there are examples and demos that'll help ramp you up.

I was going to write a printf-style layout manager myself at one point, but then I discovered MigLayout and immediately canned my concoction.  Thanks for saving me oodles of time. 

Cudos to Mikael. 


Mikael Grev replied on Wed, 2008/04/30 - 3:03pm

Thank you Mike. Since MiG Layout is free it is these kind of comments that makes it worth while. :)

Ingo Kegel replied on Thu, 2008/05/01 - 3:17pm

I would like too add my endorsement for MigLayout here. I've evaluated lots of layout managers. MigLayout is quite easy to learn and at the same time it's an absolute power tool for power users. Miglayout should really be part of the JRE.

Jacek Furmankiewicz replied on Tue, 2008/05/06 - 2:59pm

Best layout manager, ever. I would not even consider using anything else for Swing development. Made me forget that Matisse even exists, it was so simple to be productive.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.