Re: Modal and non modal in same app
- From: "Steve W. Jackson" <stevewjackson@xxxxxxxxxxx>
- Date: Wed, 27 Apr 2005 10:10:42 -0500
In article <Xns964480597319Ba@xxxxxxxxxxxx>, Leila <Leila@..> wrote:
> 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
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 =
--
Steve W. Jackson
Montgomery, Alabama
.
- References:
- Modal and non modal in same app
- From: Leila
- Modal and non modal in same app
- Prev by Date: Scale font to fit width and height
- Next by Date: Problem with Font.createGlyphVector(frc, String)
- Previous by thread: Modal and non modal in same app
- Next by thread: Newer style file dialog on Windows?
- Index(es):
Relevant Pages
|