Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Modal Dialogs on Java 1.5 bug?



Is there a known bug with Java 1.5 regarding modal dialogs being buried by other frames? I haven't isolated a test case yet, but first I wanted to ask if anyone else has already reported/experienced this problem.

My scenario:
Frame A has a modal dialog up. (An error dialog that occurs during our launch process.)
Now Frame B is created and made visible.


Frame B completely covers the modal dialog. But the user can't interact with Frame B. (The user needs to, say, minimize Frame B to dismiss the modal dialog, then they can reopen Frame B to interact with it.) This is a bad thing.

So I added a WindowListener to Frame B. When it's activated, I scan through my modal dialogs and pull them to the foreground. This works fine at first: my dialog ends up in front of Frame B.
But I can click Frame B, and again pull it to the foreground. Once again burying my dialog.


The nasty bit is this: my window listener on frame B isn't given a windowActivated event when this happens. Also I added a window listener to the modal dialog: it isn't given a windowDeactivated event.

So short of a separate thread continuously scanning for modal dialog every second or so (which just seems like a silly solution), I don't know how to protect the user from a hidden modal dialog.

Is this a known/reported issue? If not I'll see if I can isolate this to a test case.

This happens in Java 1.5 on my Intel mac, but in Java 1.4 on the Intel mac the modal dialog always stays in the foreground without any hassle.
- Jeremy



_______________________________________________ Do not post admin requests to the list. They will be ignored. Java-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.