OOoBean in 2 Java windows, one disappears
Posted: Thu Apr 08, 2021 12:31 pm
Hi everyone,
I am working on a Java legacy code to show o edit some odt documents in a web application. I have to solve a problem that I do not know how to tackle!
The documents used to be displayed using an applet, and the OOoBean within the applet. But due to security problems, that was replaces a custom browser uri scheme, ooviewer:..., that launches a java desktop application with the ooobean inside.
Now the problem I have been told to solve is that when 2 windows are opened, the first ooobean disappears when the second window is opened. Exactly when the method setVisible is called on the JFrame object.
I suppose it could be some kind of swing or awt hierarchy that cannot be displayed twice, i.e. in both windows, a problem I had had in a former project.
I could show you some code, but I do not know what could be important/interesting
(Note that I did not write the original applet code, nor the transformation to desktop application. Also the version of openoffice is 3.1)
Thanks in advance
Olivier Georg
I am working on a Java legacy code to show o edit some odt documents in a web application. I have to solve a problem that I do not know how to tackle!
The documents used to be displayed using an applet, and the OOoBean within the applet. But due to security problems, that was replaces a custom browser uri scheme, ooviewer:..., that launches a java desktop application with the ooobean inside.
Now the problem I have been told to solve is that when 2 windows are opened, the first ooobean disappears when the second window is opened. Exactly when the method setVisible is called on the JFrame object.
I suppose it could be some kind of swing or awt hierarchy that cannot be displayed twice, i.e. in both windows, a problem I had had in a former project.
I could show you some code, but I do not know what could be important/interesting
(Note that I did not write the original applet code, nor the transformation to desktop application. Also the version of openoffice is 3.1)
Thanks in advance
Olivier Georg