Modal dialog boxes in two projects simultaneously
If you have two projects up and running in separate frames a modal dialog for the first frame is also a model dialog for the second frame. For instance if you load a project in a new frame the first frame blocked until the new project has loaded. (modal dialog box in the new frame)
Is this is a bug or has it something to do with protecting the memory stature while loading projects ?
请先登录再写评论。
I do agree that it is really annoying to wait until in the first window some "CVS command" will finish without possibility to do something in another project
This has been discussed quite a couple of times before and everybody agrees that it is bad.
The problem is that it's a Swing bug/rfe: You cannot currently have a modal dialog that blocks the owning frame only. All modal dialogs block the application completely.
With the Swing expertise JetBrainers are showing they should be able to work around that by 'faking' the modality, rather than relying on Swing, but I doubt that the effort required to do that is worth it.
with JDK 1.5 you can put a windows always on top.
thus, it should be possible to create "fake" modal dialogs ?!
I'd say it's worth it, since this is a constant source of irritation
The problem is to block input events selectivly, but off course that could be done, maybe using the glasspane to block mouse events and eating key events someplace else.
Borge Nygaard Austvold wrote:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4080029
Please vote for this bug
--
Vladimir Kondratyev
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Vladimir Kondratyev (JetBrains) wrote:
Done.
By the way, did you notice this link in the comments?
http://jmodalwindow.dev.java.net/
There were also other various workarounds in comments near the bottom
that use 1.4 features. Perhaps you could try them and see if they're
feasible?
Ciao,
Gordon
--
Gordon Tyler (Software Developer)
Quest Software <http://java.quest.com/>
260 King Street East, Toronto, Ontario M5A 4L5, Canada
Voice: (416) 933-5046 | Fax: (416) 933-5001