Code example for JTextComponent

Methods: getText

0
    protected void valueModelValueChanged(Object value) { 
        control.setText((String)value);
    } 
 
    public void focusLost(FocusEvent e) {
        adaptedValueChanged(control.getText());
    } 
 
    public void focusGained(FocusEvent e) {
    } 
}