It looks like you're new here. If you want to get involved, click one of these buttons!
 the problem, in a nutshell, is summarised in the solution at the end of this post.
Hi, I have a sketch that periodically asks the user for some simple text input via a GTextField (actually multiple fields and GTabManager). There is no mouse used in the application so I am relying on the setVisible and setFocus methods to render the text field when it is needed.
The problem is that if the field starts out invisible and then is made visible it does not have focus, ie the caret is not visible or blinking. I have confirmed that the "GETS_FOCUS" event is fired when setFocus is set to true. The only way to 'activate' the field is to click with the mouse (unwanted). When the field is not in use I have setVisible, setEnabled and setFocus all false, and set them true when user input is required.
Am I using the right approach or is this a bug?
Processing 3.3.5, default renderer.