a JPanel with form fields (among which are some JTextFields)
and a JInternalFrame that contains the JCEF component
The JCEF component only fully initializes when the JFrame becomes visible.
And the JTextFields are then uneditable, unless the JFrame loses and regains focus (click outside of the JFrame and then inside again, or close and open seeing that I don't fully dispose them, they keep their state when I close them).
So we need to find a way to make sure the JTextFields are editable when opening a frame with a JCEF component for the first time. Maybe a callback on JCEF initialized that makes the JFrame lose and regain focus automatically?
This is the weirdest thing. The
JFrame
contains:JPanel
with form fields (among which are someJTextField
s)JInternalFrame
that contains theJCEF
componentThe JCEF component only fully initializes when the
JFrame
becomes visible. And theJTextField
s are then uneditable, unless theJFrame
loses and regains focus (click outside of the JFrame and then inside again, or close and open seeing that I don't fully dispose them, they keep their state when I close them).So we need to find a way to make sure the
JTextField
s are editable when opening a frame with a JCEF component for the first time. Maybe a callback on JCEF initialized that makes the JFrame lose and regain focus automatically?I opened a stackoverflow post here: https://stackoverflow.com/q/64622736/394921