AnchorLayout support

Swing Designer allows you to quickly create the frames, panels, dialogs, applets and other UI elements that comprise Java Swing applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

AnchorLayout support

Postby steph » Wed Jan 12, 2011 5:32 am

I just discovered the WindowBuilder tool, and it's really great.

I appreciate the anchorlayout Cloudgarden provided by, and I wanted to know if it was possible to use it with WindowBuilder.
I can add an entry to the "Layouts" category, but I can't edit any component into an anchorlayout container by drag and drop the corner of the component into the "Design" mode as it's possible with Jigloo.

Does anyone know a solution?

Thanks
steph
 
Posts: 2
Joined: Wed Jan 12, 2011 5:19 am

Re: AnchorLayout support

Postby Eric Clayberg » Wed Jan 12, 2011 6:01 am

What does AnchorLayout do that the other standard layout managers don't do?

Adding support for any layout manager is a very complex process since it requires a great deal of custom work in every case.

While we have no plans to support AnchorLayout, Swing Designer itself is in the process of going open source through Eclipse.org. Once that happens, anyone would be able to add this support themselves as long as they learn the design time API.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: AnchorLayout support

Postby steph » Wed Jan 12, 2011 10:15 pm

Eric Clayberg wrote:What does AnchorLayout do that the other standard layout managers don't do?

The AnchorLayout provides a powerful layout allowing to put a component anywhere and to specify how to resize it on each of the 4 direction(top, right, bottom, left) when the parent container is resized, like 4 anchors.
Each anchor specifies the default distance to his border, and how to react (fixed distance, proportional to the new size, no reaction).
Each container's component may have a different resizing behavior.

Eric Clayberg wrote:Adding support for any layout manager is a very complex process since it requires a great deal of custom work in every case.

While we have no plans to support AnchorLayout, Swing Designer itself is in the process of going open source through Eclipse.org. Once that happens, anyone would be able to add this support themselves as long as they learn the design time API.

Ok, I understand. Thanks for your quick response.
steph
 
Posts: 2
Joined: Wed Jan 12, 2011 5:19 am

Re: AnchorLayout support

Postby Eric Clayberg » Thu Jan 13, 2011 6:23 am

steph wrote:The AnchorLayout provides a powerful layout allowing to put a component anywhere and to specify how to resize it on each of the 4 direction(top, right, bottom, left) when the parent container is resized, like 4 anchors.

That sounds like what you get with either GroupLayout or SpringLayout.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to Swing Designer

Who is online

Users browsing this forum: No registered users and 1 guest

cron