Article View: borland.public.jbuilder.java.swing
Article #835Re: SpringLayout
From: Patrick W. McMichael
Date: Tue, 21 Sep 2004 15:16
Date: Tue, 21 Sep 2004 15:16
41 lines
3109 bytes
3109 bytes
Ultimately, I'd envision a UI designer for SpringLayout that offered some Together-like functionality where "springs" were used as a type of link b/t components. Add a "Spring Tool" to the UI pallette, where the link would be drawn as a "squiggly line" with hook points on the end. The steps would go something like... (1) Place the components on the UI almost as in flow-layout. (2) Then, taking the Spring tool, establish links, hooking one end of the "spring" graphical icon to each of the two components to be addressed (two buttons, a label and a border of the enclosing container, etc.). (3) Once the spring-link was established, you could simply set the appropriate spacing b/t the hooked components. The EAST, WEST, NORTH, SOUTH settings would be determined (by default at least) by the edge of each component the spring was "hooked to." *** In the meanwhile, I'll have to try your workaround and see what happens to the UI designer. Thanks! "Gillmer J. Derge [TeamB]" <spam@gillmerderge.com> wrote: >Patrick W. McMichael wrote: >> Does Borland have any intention of supporting the SpringLayout in > > JBuilder's UI designer? This is a valuable layout, especially in > > terms of dealing with resizing issues. > >For several versions jbuilder.jar has contained several >SwingLayout-related classes that are not enabled. My guess is that they >intend to support it eventually but haven't yet figured out the right >UI. Having tried it myself once, I can say it's not an easy thing to >create a usable interface for editing SpringLayout constraints. There >are almost more options than for GridBagLayout. > >If you want to experiment (I make no assurances about what this may or >may not break) you could try enabling it yourself. Make a file whose >contents are as shown below (two lines, 2nd line starts w/ a space). >Create a JAR with this file as the manifest (jar cmf foo.txt foo.jar). >Then put the JAR file in JBuilder's lib/ext directory and restart >JBuilder. You *might* have some kind of SpringLayout support after that. > >OpenTools-Designer: > com.borland.jbuilder.cmt2.designer.ui.SpringLayoutAssistant > >-- >Gillmer J. Derge [TeamB]
Technical Details
Message-ID:
<415045d9$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mailReferences:
<415023aa$1@newsgroups.borland.com> <415039a4$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,95cc440779ff85dc X-Google-Attributes: gid111d45,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Patrick W. McMichael" <patmcmichael@comcast.net> Sender: "Patrick W. McMichael" <patmcmichael@comcast.net> Reply-To: "Patrick W. McMichael" <patmcmichael@comcast.net> Subject: Re: SpringLayout Newsgroups: borland.public.jbuilder.java.swing X-User-Info: 208.240.15.14 References: <415023aa$1@newsgroups.borland.com> <415039a4$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <415045d9$1@newsgroups.borland.com> Date: 21 Sep 2004 08:16:41 -0700 X-Trace: newsgroups.borland.com 1095779801 207.105.83.66 (21 Sep 2004 08:16:41 -0700) Lines: 43 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mail