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 ?

6 comments
Comment actions Permalink

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

0
Comment actions Permalink

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.

0
Comment actions Permalink

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


with JDK 1.5 you can put a windows always on top.
thus, it should be possible to create "fake" modal dialogs ?!

that the effort required to do that is worth it.


I'd say it's worth it, since this is a constant source of irritation



0
Comment actions Permalink

with JDK 1.5 you can put a windows always on top.
thus, it should be possible to create "fake" modal dialogs You missed the point. A dialog is always on top of its owner, even in Java 1.0.

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.

0
Comment actions Permalink

Borge Nygaard Austvold wrote:

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 ?



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!"

0
Comment actions Permalink

Vladimir Kondratyev (JetBrains) wrote:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4080029

Please vote for this bug


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

0

Please sign in to leave a comment.