Thursday, July 6, 2017

Re: Changing characters form lower to upper case in TextBox

Good Morning

In my case, i was resolved this problem with following code:

@Ian Bambury also shared this solution

TextBox example= new TextBox();
example.addKeyboardListener(new KeyboardListener() {
@Override
public void onKeyPress(Widget sender, char keyCode, int modifiers) {
DeferredCommand.add(new Command() {
@Override
public void execute() {
example.setText(example.getText().toUpperCase());
}
});
}

@Override
public void onKeyDown(Widget sender, char keyCode, int modifiers) {
}

@Override
public void onKeyUp(Widget sender, char keyCode, int modifiers) {
}
});

El miércoles, 27 de septiembre de 2006, 14:48:02 (UTC-5), owl escribió:
How to change characters form lower to upper case in TextBox as they
are being typed??

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment