I want to regester a listener on a TextFiled,the listener can listen to the action when I type any letter in the TextField,So I use this code,it works ok
TextField field = new TextField();
field.set(TextComponentPeer.PROPERTY_SYNC_MODE,
TextComponentPeer.SYNC_ON_CHANGE);
field.set(TextComponentPeer.PROPERTY_SYNC_DELAY, new Integer(0));
field.addPropertyChangeListener(TextField.TEXT_CHANGED_PROPERTY,
new PropertyChangeListener() {
@Override
public void propertyChange(PropertyChangeEvent evt) {
System.out.println("ok");
}
});
but I found only nextapp.echo.app.TextField and nextapp.echo.app.PsswordField works well,the TextField in echopoint,such as RegexTextField doesn't work,why?!
See
See http://echo.nextapp.com/site/node/6160. I hope to add regex capabilities to the KeystrokeTextField component soon.
It's done for RegexText
It's done for RegexText field. Maybe we should do the same for the other text fields.
Feel free :-)
Feel free :-)