Skip to main content



      Home
Home » Eclipse Projects » WindowBuilder » WindowBuilder with JGoodies Forms >= 1.6
WindowBuilder with JGoodies Forms >= 1.6 [message #1219452] Tue, 03 December 2013 17:20 Go to next message
Eclipse UserFriend
Hi,

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[] {
    RowSpec.decode("10dlu"),		
    com.jgoodies.forms.factories.FormFactory.PREF_ROWSPEC,				  
    com.jgoodies.forms.factories.FormFactory.RELATED_GAP_ROWSPEC,
    com.jgoodies.forms.factories.FormFactory.PREF_ROWSPEC,
    ...


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

Regards,
AD
Re: WindowBuilder with JGoodies Forms >= 1.6 [message #1219716 is a reply to message #1219452] Thu, 05 December 2013 09:44 Go to previous message
Eclipse UserFriend
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: Wed Jul 02 20:17:42 EDT 2025

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

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

Back to the top