Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » MigLayout for SWT - no such Layout there :(
icon4.gif  MigLayout for SWT - no such Layout there :( [message #1018779] Thu, 14 March 2013 09:06 Go to next message
Patrick B is currently offline Patrick B
Messages: 1
Registered: March 2013
Junior Member
Hey Smile

today I wanted to start my first SWT project with WB in Eclipse 4.2 - but I didn't find my lovely MigLayout. So I tried to add this as a component but it throws an exception:

java.lang.ClassNotFoundException: net.miginfocom.swt.MigLayout

It is imported and in the build path, so it may be a problem with the WindowBuilder.

Any suggestions?

Thanks Smile
Re: MigLayout for SWT - no such Layout there :( [message #1018961 is a reply to message #1018779] Thu, 14 March 2013 15:42 Go to previous message
Eric Clayberg is currently offline Eric Clayberg
Messages: 738
Registered: July 2009
Location: Boston, MA
Senior Member
WindowBuilder does not support SWT MiGLayout at all. We do support it for Swing where it is moderately popular.

Layouts are not like normal JavaBean-based components. They require an extreme amount of custom design time code in order to support them. Given the extremely low level of interest in that layout for SWT, the WB team does not plan to work on it. If someone else wants to contribute code to support it, we would be happy to take a look and even make suggestions as needed. Starting with the MiGLayout supporting code for Swing would make this a reasonable project to undertake for anyone really interested in that layout.

Personally, I would recommend just using the standard SWT GridLayout. It can do just about everything useful that MiGLayout can do, and it is used by ~99% of the views you will encounter in Eclipse itself (and in most 3rd party plugins). WB also has excellent GridLayout support.
Previous Topic:WindowBuilder Install Fails Eclipse Juno 4.2
Next Topic:gwt designer doesn't work with gwt 2.5
Goto Forum:
  


Current Time: Sun May 26 05:00:50 EDT 2013

Powered by FUDForum. Page generated in 0.01615 seconds