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