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


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


Relevant Pages

  • Re: OT: Win 7 comments
    ... auto-upgraded to new standard dialogs, ... right - this has been a problem for a long time on Windows. ... When the Registry goes belly up you are toast... ... I will wait for some apps to crash. ...
    (comp.sys.mac.advocacy)
  • Re: Pressing Enter on ListBox should invoke DoubleClick
    ... For example, in Finder when you are looking at a list of files, if you hit the Enter key you are put into the "rename" mode. ... You may successfully argue that the vast majority of Windows applications don't use this paradigm, but I cannot take seriously any claim that insists that there is no alternative implementation of a list-based user-interface that cannot be just as "standard" or "intuitive". ... I think the only apps that don't do it are made by people who don't ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: A *bit* OT: VB6 app on touch-notebook
    ... UMPC runs Windows XP Tablet Edition, and uses a standard ... VB apps will work fine on ...
    (microsoft.public.vb.general.discussion)
  • Re: Microsoft Fax
    ... I have a Brooktrout TruFax board in my Win2k3 Standard box with no ... The Windows service uses fxssvc.exe. ... >> What about other Windows Server Editions (Standard, Enterprise)? ... >>> Steve ...
    (microsoft.public.windows.server.general)
  • Re: Is your Windows PC, "Windows 7 Ready?"
    ... Steve de Mena wrote: ... And Windows 7 isn't an incremental upgrade from XP? ... Why else do you think apps, ...
    (comp.sys.mac.advocacy)

Loading