Monday, May 26, 2008

Swing/SWT programmers: discover the power of MigLayout

I am happy to announce a DevX.com article I wrote about Mikael Grev's amazing MigLayout layout manager:
http://www.devx.com/Java/Article/38017

If you are doing any UI development in either Swing or SWT, you deserver to give this layout manager a try. After getting familiar with it, I would find it painful to go back to anything else.

I used one of the samples the readers have sent me on the complex UI challenge post from a few weeks ago as the base for the most complex screen in the article...I can't even imagine how convoluted the code would have been in any standard JDK layout manager.



Don't forget to vote on the RFE to get MigLayout included in the base JDK:
http://bugs.sun.com/bugdatabase/view_bug.do;jsessionid=2532262642c44ffffffffa36083a3bd0096c?bug_id=6530906

BTW, what's wrong with this picture? The RFE is in the top 10 RFEs, but Sun marked the priority as "5-Very Low". Earth to Sun, Earth to Sun...listen to your users. 90% of the layout manager tutorial could have been redone with nothing but MigLayout.

Pretty much all layout managers in the JDK (outside of FlowLayout) could be marked as @Deprecated and replaced with MigLayout.

7 comments:

Casper Bang said...

Very cool. Would be interesting if this layout manager could be used in WYSIWYG mode in NetBeans/Matisse. Group layout works pretty well, but its .xml metadata and locked lines of Java code is an abomination.

Jacek Furmankiewicz said...

It could. It even comes with classes for IDE integration, but as far a I know no IDE maker has integrated it yet.

Konstantin.Scheglov said...

Mea culpa, guys. I've promised to support MigLayout, but was too busy to really do this.
Hm... maybe start right now? :-)

Jacek Furmankiewicz said...

Yes :-)

Feel free to contact Mikael Grev directly, I am sure he would be interested in helping you out along the way.

MigLayout is the future of Swing layout management.

Anonymous said...

Great Article

If you are looking for oasis outsourcing or freelance projects try going to ICanFreelance.com

Anonymous said...

Such was the case when second life linden labs decided to pull the plug on several banks in the game. Some of these banks offered the system to buy lindens what real life banks would an interest rate. Some people get their secondlife money out of the banks says that Second Life depositors may have US$ 750,000 in real life money. The new rules state that only banks with proof of an applicable government registration statement or financial institution character will be able to operate with cheap linden in the game. Second Life has proven to be a popular place for companies to set up virtual shop where many players can exchange their favorite something with all kinds of linden dollars.

wholesale jewelry said...

wholesale jewelryhandmade jewelryjewelry wholesalediscount jewelryhandcrafted jewelrywholesale beads