467,167 Members | 969 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,167 developers. It's quick & easy.

Non-modal help dialog blocked by modal dialogs

Here is the problem:

I have written a non-modal frame class in Java for displaying help
text when a user is using an application. It works as desired in that
if the user selects "help" again, the same frame is used -- this is
done using a singleton. The user can do other stuff in the main
window while the help window is up.

However, when I have a modal dialog pop-up to get information from the
user, it blocks events to the help window and continues that way until
the modal dialog goes away. You can't even scroll the help window or
tell it to go away. What I would like is for the user to still be
able to use the help window, scroll it, whatever, and not have it
blocked by the modal dialog. But I still want the rest of the
application to be blocked until the modal dialog is done.

Example: A user is using a GUI to edit some data. He brings up the
help window to see what format the data should be in. The help window
being up doesn't block anything. He then clicks a button to edit
"item 1", and that data is shown in a modal dialog box for editing.
He should not be able to do anything in the main app (like select a
different item for editing or click other buttons) until he tells the
edit dialog to go away. But he should still be able to work with the
help window (scroll it, etc).

I can't be the first person to want to have this kind of
functionality, but I haven't been able to find how others have solved
this problem. (Note: I am using JDK 1.3.0.)

Thanks for any help you can offer.
Patrick Lim
Jul 17 '05 #1
  • viewed: 3273
Share:
2 Replies
nos

"Patrick Lim" <li*****@yahoo.com> wrote in message
news:57**************************@posting.google.c om...
Here is the problem:

I have written a non-modal frame class in Java for displaying help
text when a user is using an application. It works as desired in that
if the user selects "help" again, the same frame is used -- this is
done using a singleton. The user can do other stuff in the main
window while the help window is up.

However, when I have a modal dialog pop-up to get information from the
user, it blocks events to the help window and continues that way until
the modal dialog goes away. You can't even scroll the help window or
tell it to go away. What I would like is for the user to still be
able to use the help window, scroll it, whatever, and not have it
blocked by the modal dialog. But I still want the rest of the
application to be blocked until the modal dialog is done.

Example: A user is using a GUI to edit some data. He brings up the
help window to see what format the data should be in. The help window
being up doesn't block anything. He then clicks a button to edit
"item 1", and that data is shown in a modal dialog box for editing.
He should not be able to do anything in the main app (like select a
different item for editing or click other buttons) until he tells the
edit dialog to go away. But he should still be able to work with the
help window (scroll it, etc).

I can't be the first person to want to have this kind of
functionality, but I haven't been able to find how others have solved
this problem. (Note: I am using JDK 1.3.0.)

Thanks for any help you can offer.
Patrick Lim


Modal is supposed to prevent other stuff until you dismiss it.
Jul 17 '05 #2
This seems to do the trick

http://forum.java.sun.com/thread.jsp...essage=2270741
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Mario | last post: by
25 posts views Thread by Yves Glodt | last post: by
32 posts views Thread by Adrian Herscu | last post: by
8 posts views Thread by Bern McCarty | last post: by
14 posts views Thread by Patrick Kowalzick | last post: by
11 posts views Thread by ypjofficial@indiatimes.com | last post: by
399 posts views Thread by =?UTF-8?B?Ik1hcnRpbiB2LiBMw7Z3aXMi?= | last post: by
12 posts views Thread by puzzlecracker | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.