Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » WindowBuilder with JGoodies Forms >= 1.6
WindowBuilder with JGoodies Forms >= 1.6 [message #1219452] Tue, 03 December 2013 22:20 Go to next message
Adam Dyga is currently offline Adam DygaFriend
Messages: 1
Registered: July 2009
Junior Member

I've just tried WindowBuilder 1.6.1 with JGoodies Forms 1.7.2. Unfortunatelly when you use row or column templates to define your form (such as "related gap", "unrelated gap", etc), the generated code is not compilable. It happens because one of the classes in JGoodies (FormFactory) has been renamed to FormSpecs in 1.6, but WindowBuilder seems to still generate code for old JGoodies version.

Example of generated uncompilable code:

new RowSpec[] {

Is there anything what can be done in order to make WindowBuilder work with latest versions of JGoodies?

Re: WindowBuilder with JGoodies Forms >= 1.6 [message #1219716 is a reply to message #1219452] Thu, 05 December 2013 14:44 Go to previous message
Eric Clayberg is currently offline Eric ClaybergFriend
Messages: 979
Registered: July 2009
Location: Boston, MA
Senior Member
In the short term, no. WB would need to be updated to work with the new JGoodies classes. That probably won't happen any time soon unless someone submits a patch to the WB/JGoodies plugin (org.eclipse.wb.swing.FormLayout). WB is open source, so contributions are always welcome.

As a work around (which I haven't tried), you might try copying the earlier FormFactory into your project. The generated code would then compile and hopefully even work. This is a good example why introducing breaking changes between major version releases is not a good idea. The JGoodies folks should have kept the FormFactory class around for backward compatibility (even if deprecated.
Previous Topic:Eclipse and WindowBuilder: can't see the live image
Next Topic:Installation error
Goto Forum:

Current Time: Sun Jul 05 12:02:18 GMT 2020

Powered by FUDForum. Page generated in 0.02174 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top