Re: many JFrames and JDialog modal only for one of them (not all)
From: Steve W. Jackson (stevewjackson_at_charter.net)
Date: 01/23/04
- Next message: Nige: "Exception when hiding a column in JTable using Java version 1.3"
- Previous message: Chris Smith: "Re: help: lost bufferedimage content"
- In reply to: Andrew Thompson: "Re: many JFrames and JDialog modal only for one of them (not all)"
- Next in thread: ak: "Re: many JFrames and JDialog modal only for one of them (not all)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 23 Jan 2004 08:58:58 -0600
In article <yu_Pb.24168$Wa.19326@news-server.bigpond.net.au>,
"Andrew Thompson" <andrew64@bigNOSPAMpond.com> wrote:
>:"Lukasz Indyk" <dyzma@mat.uni.torun.pl> wrote in message
>:news:bupob0$t23$1@flis.man.torun.pl...
>:| Andrew Thompson wrote:
>:....
>:| > ..try PhySci, you can open
>:| > any one of 7 apps, but if you open a modal
>:| > dialog in _any one_m then _all_ are locked.
>:...
>:| from steve's answer i know that the only standard way of displaying
>:| dialog in swing are:
>:
>:Just because something is 'standard',
>:does not mean it cannot be changed,
>:or overridden.
>:
>:| but i think that it must be possible to use no-modal dialog and force it
>:.....
>:| (http://java.sun.com/developer/JDCTechTips/2001/tt1220.html)
>:|
>:| and i don't believe that anybody has never done it in java;)
>:
>:Well, so far as I can see, nobody besides
>:you has suggested it _cannot_ be done,
>:
>:I was going to put forward that each app
>:started in an entirely different Thread
>:might have the ablility to become modally
>:'blocked' without affecting other apps.
>:
>:I am less of an expert on threading, so I
>:will cede to the threading experts if it
>:would change anything, or you might
>:have a look into it yourself..
>:
>:Does the article you linked to give you
>:any ideas, threaded or otherwise?
>:
>:I do not have time to look over it
>:at the moment, but perhaps Steve
>:or others can advise further..
>:
>:--
>:Andrew Thompson
>:* http://www.PhySci.org/ PhySci software suite
>:* http://www.1point1C.org/ 1.1C - Superluminal!
>:* http://www.AThompson.info/andrew/ personal site
It's not going to be solved by threading, that's for certain. The
information in my earlier response that addressed the "Macintosh
community" was mainly informational, pointing out that Mac developers
lose one form of modality they have in native apps.
If you read the text at the top of the java.awt.Dialog class in the API
docs, it says that modal dialogs block "input to all other toplevel
windows in the application, except for any windows created with the
dialog as their owner." Putting each JFrame into a separate thread
would still have them in the same application. In fact, I believe that
each already exists in its own thread (not positive).
= Steve =
-- Steve W. Jackson Montgomery, Alabama
- Next message: Nige: "Exception when hiding a column in JTable using Java version 1.3"
- Previous message: Chris Smith: "Re: help: lost bufferedimage content"
- In reply to: Andrew Thompson: "Re: many JFrames and JDialog modal only for one of them (not all)"
- Next in thread: ak: "Re: many JFrames and JDialog modal only for one of them (not all)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|