Aplication freezes if popup when menus are shown

We have an application with a menu bar and buttons with pop-up menus. At certain moments, triggered by (amongst others) JMS messages, modal dialogs are displayed.

If the menu is folded out or the buttons' menu have popped up when the pop-up dialog is displayed, the application freezes.

The log files don't contain any stacktraces.

We're using Java 5.

Any idea what is causing this? How can we resolve this?

Thanks,

Nick.

[468 byte] By [NickDGa] at [2007-11-27 10:13:02]
# 1

you need to check out how you are creating the modal dialogs... may be there is the problem, give a printout there...

Aniruddha-Herea at 2007-7-28 15:24:16 > top of Java-index,Desktop,Core GUI APIs...
# 2

If possible post your method in which you are creating and displaying the modal dialogs... please use the code formatting tags when doing so.

If there isn't an actual problem there then the only thing I could suggest would be to change the methods creating the dialogs to check if the menus are opening before setting the dialogs to visible.

c0demonk3ya at 2007-7-28 15:24:16 > top of Java-index,Desktop,Core GUI APIs...
# 3

I put the dialog display code in a SwingUtilities.invokeLater() and it seems to be ok now.

Thanks anyway.

Nick.

NickDGa at 2007-7-28 15:24:16 > top of Java-index,Desktop,Core GUI APIs...