SPanel p = new SPanel(new SGridLayout(2));  p.add(new SLabel("<html><h4>Buttons outside forms</h4>")); p.add(new SLabel("<html><h4>Image buttons outside forms</h4>")); p.add(createButtonExample()); p.add(createImageButtonExample());  SForm form = new SForm(); form.add(new SLabel("<html><h4>Buttons in a form</h4>")); form.add(createButtonExample()); p.add(form);  form = new SForm(); form.add(new SLabel("<html><h4>Image buttons in a form</h4>")); form.add(createImageButtonExample()); p.add(form); return p;
controls = new ButtonControls(); SContainer p = createButtonExample();  SForm form = new SForm(new SFlowDownLayout()); form.add(controls); form.add(new SSeparator()); form.add(p);  return form;
    public SComponent createExample() {        SPanel p = new SPanel(new SGridLayout(2));                p.add(new SLabel("<html><h4>Buttons outside forms</h4>"));        p.add(new SLabel("<html><h4>Image buttons outside forms</h4>"));        p.add(createButtonExample());        p.add(createImageButtonExample());                SForm form = new SForm();        form.add(new SLabel("<html><h4>Buttons in a form</h4>"));        form.add(createButtonExample());        p.add(form);                    form = new SForm();        form.add(new SLabel("<html><h4>Image buttons in a form</h4>"));        form.add(createImageButtonExample());        p.add(form);        return p;    }