• problem with open office component - hiding, preloading
Replies:
2
Views:
139
Up one level
• problem with open office component - hiding, preloading
Posted by
tzu
at
2010-02-25 14:41:57
Hi,
I build application where I use OpenOffice as a text editor. Unfortunately I just faced few problems. For example when I use a menu or try to show message box java components hide under the Open Office window. Is there any solution to avoid these behaviour? I use simple work around: - when java component like menu or message box is going to be show on Open Office component I make a picture of area where Open Office component is placed - unload Open Office component - set the picture - next when java component like menu or message box is going to be hide I remove the picture, load Open Office component (loadDocument()) and set it It works but unloading document and loading it take some time and user see all these operations. Maybe is there possibility to just hide document instead unloading it or another faster solution? Next question: Is there possibility to preload Open Office. What I mean is that when user load document for the first time it takes much more time compering to next openings. I suppose that some data have to be load to memory. Is there possibility to preload it for example in time when my application is starting and many other things are loading? Regards, Tomasz |
tzu
Member
Posts:
4
|
• Re: problem with open office component - hiding, preloading
Posted by
mnhg
at
2010-03-01 20:37:36
I don't know anything about your environment, but mayby a StackLayout could help you. http://www.java2s.com/Code/Java/SWT-JFace-Eclipse/StackLayoutSample.htm
In my case I stacked multiple oocomponents in one view and prevent the reloading with this solution. Martin |
mnhg
Member
Posts:
5
|
• Re: problem with open office component - hiding, preloading
Posted by
Markus Krueger
at
2010-03-04 12:52:12
"For example when I use a menu or try to show message box java components hide under the Open Office window."We are not facing the problem in NOA4e, so maybe your try Martin's suggestion. "Is there possibility to preload Open Office?"Maybe you could activate the IOfficeApplication in a background thread. This has the disadvantage that it will load OOo although the user might not ever need it. Of course, this depends on you application. Anyways, the thread for activation needs to be finished before any loading or other work should be done as OOo is not capable of multi-threadding. Regards, Markus |


