BibleGet-I-O / bibleget-openoffice

BibleGet I/O Project plugin for Open Office
Apache License 2.0
2 stars 1 forks source link

JTextField uneditable when JCEF present, until JFrame loses focus #13

Closed JohnRDOrazio closed 3 years ago

JohnRDOrazio commented 3 years ago

This is the weirdest thing. The JFrame contains:

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?

I opened a stackoverflow post here: https://stackoverflow.com/q/64622736/394921

JohnRDOrazio commented 3 years ago

fixed in commit aaf0e5ea7f8451d901377696c61c75b8e7fb0565