public SDefaultCellEditor(STextField x) {
protected SDefaultCellEditor(SComponent editorComponent, boolean initializeButtons) { this.messageLabel = new SLabel(); this.editorForm = new SForm(); this.ok = new SButton(); this.cancel = new SButton(); this.listenerList = new EventListenerList(); this.editorComponent = editorComponent; this.delegate = delegate; fireStoppedEvent = false; fireCanceledEvent = false;
    public SDefaultCellEditor(STextField x) {        editorForm.add(messageLabel);        editorForm.add(x);        this.editorComponent = x;        this.delegate = new EditorDelegate() {                public void setValue(Object v) {                    super.setValue(v);                    if (v != null)                        ((STextField)editorComponent).setText(v.toString());                    else                        ((STextField)editorComponent).setText("");                }                public Object getCellEditorValue() {                    return ((STextField)editorComponent).getText();                }                public boolean stopCellEditing() {                    return true;                }                public boolean shouldSelectCell(EventObject anEvent) {                    return true;                }        };        initButtons();    }