tags:

views:

57

answers:

2

I have some frames that have the property alwaysOnTop set to true. If this frames are showing and the main frame shows a modal dialog, all menu items stay disabled until the application is restarted.

It looks like an apple java bug

Any thoughts of a fix?

+1  A: 

I haven't used setAlwaysOnTop, but it appear to be supported on Mac OS X. You might look at this answer for an example. Also, see if the OSXAdapter example has the same problem.

trashgod
Is OSXAdapter example available somewhere?
tou
Oops, sorry about that; link updated.
trashgod
+1  A: 

I'm facing the same problem, see also http://lists.apple.com/archives/java-dev/2010/Jul/msg00133.html. My workaround is to hide a non modal alwaysOnTop window, show modal Window, hide modal window restore/show again the non modal alwaysOnTop window.

I tried to reenable menuitems from java, then from ObjC side, without positive results (I could see, that MenuItems were enabled for 0.3-0.5 second or so, but went disabled by some magic again and again).

I reported this issue as #8233991.

sergiy