Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / April 2005

Tip: Looking for answers? Try searching our database.

Modal and non modal in same app

Thread view: 
Leila - 26 Apr 2005 20:37 GMT
Hi Group,

I have an application that pops up JFrames when certain events occur.
The application also has a modal dialog.

Diagram:

                        Main App (JFrame)
                         /     \\
                        /       \\
                  Modal           Interactive
                  JDialog         JFrames
               

I would like to have the Interactive JFrames still be interactive while the
modal dialog is up.
The modal dialog is not a child of the JFrames.

Is there a way of doing this in Java?

                       
Thanks,

-Leila
Steve W. Jackson - 27 Apr 2005 16:10 GMT
> Hi Group,
>
[quoted text clipped - 20 lines]
>
> -Leila

Not without some special trickery.  The API JavaDocs will tell you that
any Dialog (and JDialog extends it) that is modal blocks access to ALL
other top-level Window descendants in the entire app unless they're
owned by the dialog itself.  In its non-Java environment, Apple calls
what you describe "document modal", while it calls the standard Java
dialog behavior "application modal".  I'm among those who think that
Java should allow for blocking access onto the owning top-level window.

= Steve =
Signature

Steve W. Jackson
Montgomery, Alabama



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.