controls.addSizable(formattedTextField);
    public SComponent createExample() {        controls = new ComponentControls();        SGridLayout gridLayout = new SGridLayout(2);        gridLayout.setCellPadding(4);        SPanel p = new SPanel(gridLayout);        SLabel l = new SLabel("STextField: ");        l.setVerticalAlignment(SConstants.TOP);        p.add(l);        STextField textField = new STextField();        textField.setName("textfield");        textField.addDocumentListener(documentListener);        p.add(textField);        l = new SLabel("STextArea: ");        l.setVerticalAlignment(SConstants.TOP);        p.add(l);        STextArea textArea = new STextArea();        textArea.setName("textarea");        textArea.addDocumentListener(documentListener);        p.add(textArea);        l = new SLabel("SFormattedTextField: ");        l.setVerticalAlignment(SConstants.TOP);        p.add(l);        SNumberFormatter formatter = new SNumberFormatter(NumberFormat.getNumberInstance(getSession().getLocale()));        SFormattedTextField formattedTextField = new SFormattedTextField(formatter);        formattedTextField.setName("formattedTextField");        formattedTextField.addDocumentListener(documentListener);        p.add(formattedTextField);        p.add(new SLabel("DocumentEvent: "));        p.add(documentEvent);        SButton button = new SButton("Submit");        p.add(button);        p.add(actionEvent);        button.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent e) {                actionEvent.setText("Button pressed");            }        });        SForm f = new SForm(new SBorderLayout());        f.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent e) {                actionEvent.setText(actionEvent.getText() + " + form event");            }        });        controls.addSizable(textField);        controls.addSizable(textArea);                f.add(controls, SBorderLayout.NORTH);        f.add(p, SBorderLayout.CENTER);        return f;    }