To run code after all event handler in GWT are invoked the class
DeferredCommand can be used. A example for such a command could be to set a focus for a text field ...
Example code for set a focus:
DeferredCommand.addCommand(new Command() {
public void execute() {
testField.setFocus(true);
}
});
Links: