<p>I am writing a Java Application for Data Entry using Eclipse and SWT. Naturally it has a great many Text objects. </p>

<p>What I would like to happen is that when user enters something into one field focus automatically changes to the next field.</p>

<p>Thanks in advance</p>

```
```
final Text textBox = new Text(shell, SWT.NONE);
textBox.addKeyListener(new KeyAdapter() {
    public void keyPressed(KeyEvent e) {
        if (x.getText().length() == 1); {
            x.traverse(SWT.TRAVERSE_TAB_NEXT);
        }
    }
});
```
```