472,102 Members | 2,053 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,102 software developers and data experts.

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
2 3508
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
399 posts views Thread by =?UTF-8?B?Ik1hcnRpbiB2LiBMw7Z3aXMi?= | last post: by
12 posts views Thread by puzzlecracker | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.