SwiX is really great! Kudos to Wolf Paulus and team, and to all contributors..
SwixNG and swixml-forms.

I'm an absolute newbie to gui design, so I really don't like muckimg with code,
recompilimg to see results etc. I aso find the JGoodies Formlayout a bit hard,
but I liked the Formbuilder. I would have liked to write XML as below, so I
wrote a few dirty hacks to accomplish it.  I couldn't get your code to run 
(Ozeebee)
but I will give it another try, does your usage of JGoodies look something like
this?

<panel id='operandspanel' preferredSize='300,290' layout='BorderLayout'>

        <jgoodiesforms builder='yes' buildername='FormBuilder' debug='yes'>
        <layout>
                <rowspec str=""/>
                <colspec str='12dlu, right:min(20dlu;pref):grow, 4dlu, 
min(20dlu;pref), 7dlu, right:max(40dlu;p), 4dlu, max(20dlu;pref), 80dlu'  />
                <offset cols='1'/>
        </layout>

        <appendseparator name = 'Operands '/>
        <appendlabelcomp prompt='Numbers' comp='operandsarea' colspan='6'/>
        <nextline/>
        <appendlabelcomp prompt='' comp='operandsinstr' colspan='6'/>

        <appendseparator name = 'Options '/>
        <appendlabelcomp prompt="Decimals" comp='ops_ckone' />
        <nextline/>

        <swingobjects>
        <textfield id='operandsarea' text=''   />
        <label id='operandsinstr' text='(Enter numbers separated by space)'   />
        <checkbox id='ops_ckone'/>
        </swingobjects>

        </jgoodiesforms>

</panel>

Basically the XML calls are translated to FormBuilder class methods, and the 
swingobjects element subtree
is parsed by the regular SwiX parser. Perhaps the only advantage is not dealing 
with CellConstraints..

-- nandan.

On Tue, 1 Mar 2005 Forum@carlsbadcubes.com wrote:

>Forum@carlsbadcubes.com wrote:
>> Does the code handle the FormBuilder class of JGoodies?
>
>Hi, I'm not sure to understand your question ...
>
>In any case, the current swixml-form version does not use any
>FormBuilder class to create/layout the components.
>
>The only jgoodies classes used are :
>
>       com.jgoodies.forms.factories.DefaultComponentFactory
>       com.jgoodies.forms.layout.CellConstraints
>       com.jgoodies.forms.layout.FormLayout
>
>Hope this helps
>
>Ozeebee.
>  < http://jroller.com/page/ozeebee >
>
>

-- 
Nandan Bagchee

Excuse me, but what the hell?

        -- Slava Pestov, on seeing:
  FunctorParser parser = new FunctorParser();
  BinaryFunctor toggleOther = parser.parseBinary("x.setEnabled(!x.isEnabled())",
                                JButton.class, ActionEvent.class);



Reply via email to