Button to hold focus while editing field

I’ve seen other Java UIs implement this:

A user can be editing a field, and a button, such as ‘Next’ or ‘Finish’ is painted as if it has focus. Hitting ‘Enter’ will ‘push’ the button. This would be very handy for Wizard-Type workflows.

In fact, many Servoy Developer dialogs use this functionality/
How can I do it in Servoy (Or even in Java for that matter)?

Servoy Developer
Version 3.1.3-build 407
Java version 1.5.0_10-b03 (Windows XP)

Perhaps, use onFocusGained to “color” the button, and onAction to “push” it.

Jim