Set TextField box Focus

Does anyone know how to make the focus change to a TextField Box.

I am trying to create a Pop-up that has a TextField Box. Once the Pop-up appears I want the focus to be placed on the TextField box automatically.

In the visionWindowOpen event try calling the requestFocusInWindow method on the text field. But call it with the system.util.invokLater function. Like this:

system.util.invokeLater(system.gui.getParentWindow(event).getComponentForPath('Root Container.Text Field').requestFocusInWindow)Best,

1 Like