Code example for JTextComponent

Methods: getDocument

0
    } 
 
    public AsYouTypeTextComponentAdapter(JTextComponent control, ValueModel valueModel, boolean convertEmptyStringToNull)
    { 
        super(valueModel);
        Assert.notNull(control);
        this.control = control;
        this.control.getDocument().addDocumentListener(this);
        this.convertEmptyStringToNull = convertEmptyStringToNull;
        initalizeAdaptedValue(); 
    } 
 
    public void removeUpdate(DocumentEvent e)
    { 
        controlTextValueChanged(); 
    } 
 
    public void insertUpdate(DocumentEvent e)
    { 
        controlTextValueChanged();