Fhomasp wrote:
Hey, thanks
I'm not very used to working with proxies.
Some new info about my issue here has come to light. It would seem that
both your suggested approaches work occasionally. That is, both only works
in debug mode. Which makes me assume that it is a Threading issue.
However attempting to control the sequence of the Threads doesn't work at
all. For example:
public void layoutEvent(EventObject eventObject, short i, Object object) {
if (i == LayoutManagerEvents.UIELEMENT_VISIBLE &&
object.equals("private:resource/menubar/menubar")) {
SwingUtilities.invokeLater(new Runnable(){
public void run() {
try {
addParagraafMenu();
} catch (Exception e) {
throw new
SeriousException(e.getMessage(),this,e);
}
}
});
}
}
Hi Fhomasp,
Please don't call your menu bar changes in another thread. You have to
make the changes directly in the layoutEvent call. OpenOffice.org is not
well prepared for multi threading.
Regards,
Carsten
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]