473,416 Members | 1,548 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 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 3602
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: klaus triendl | last post by:
hi, recently i discovered a memory leak in our code; after some investigation i could reduce it to the following problem: return objects of functions are handled as temporary objects, hence...
3
by: Mario | last post by:
Hello, I couldn't find a solution to the following problem (tried google and dejanews), maybe I'm using the wrong keywords? Is there a way to open a file (a linux fifo pipe actually) in...
25
by: Yves Glodt | last post by:
Hello, if I do this: for row in sqlsth: ________pkcolumns.append(row.strip()) ________etc without a prior:
32
by: Adrian Herscu | last post by:
Hi all, In which circumstances it is appropriate to declare methods as non-virtual? Thanx, Adrian.
8
by: Bern McCarty | last post by:
Is it at all possible to leverage mixed-mode assemblies from AppDomains other than the default AppDomain? Is there any means at all of doing this? Mixed-mode is incredibly convenient, but if I...
14
by: Patrick Kowalzick | last post by:
Dear all, I have an existing piece of code with a struct with some PODs. struct A { int x; int y; };
11
by: ypjofficial | last post by:
Hello All, So far I have been reading that in case of a polymorphic class ( having at least one virtual function in it), the virtual function call get resolved at run time and during that the...
2
by: Ian825 | last post by:
I need help writing a function for a program that is based upon the various operations of a matrix and I keep getting a "non-aggregate type" error. My guess is that I need to dereference my...
399
by: =?UTF-8?B?Ik1hcnRpbiB2LiBMw7Z3aXMi?= | last post by:
PEP 1 specifies that PEP authors need to collect feedback from the community. As the author of PEP 3131, I'd like to encourage comments to the PEP included below, either here (comp.lang.python), or...
12
by: puzzlecracker | last post by:
is it even possible or/and there is a better alternative to accept input in a nonblocking manner?
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.