}); */
public void removeUpdate(SDocumentEvent e) { result.setText(((STextComponent) e.getSource()).getText()); buttonDesc.setText("button not pressed"); }  public void changedUpdate(SDocumentEvent e) { result.setText(((STextComponent) e.getSource()).getText()); buttonDesc.setText("button not pressed"); } });
    SForm createTextComponentExample(STextComponent textComp) {        SForm f = new SForm();        SGridLayout layout = new SGridLayout(2);        layout.setCellPadding(10);        f.setLayout(layout);        SLabel desc = new SLabel("Enter some text: ");        SLabel resultDesc = new SLabel("Entered text: ");        final SLabel result = new SLabel("");        final SLabel buttonDesc = new SLabel("");        /* TODO FIXME           textComp.addTextListener(new TextListener() {            public void textValueChanged(TextEvent evt) {                result.setText(((STextComponent) evt.getSource()).getText());                buttonDesc.setText("button not pressed");            }        }); */        SButton button = new SButton("Submit");        button.setName("submit" + (i++));        button.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent e) {                buttonDesc.setText("Button pressed");            }        });        f.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent e) {                buttonDesc.setText(buttonDesc.getText() + " + form event");            }        });        f.add(desc);        f.add(textComp);        f.add(resultDesc);        f.add(result);        f.add(button);        f.add(buttonDesc);        return f;    }