🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #7582

Re: I need a window which is modal

#7582
From: Rick Ingham
Date: Sat, 20 Jan 2001 17:38
29 lines
2401 bytes
That rings a bell.  I just don't remember how you invoke a new event handler thread and stop it after you want to return.  There's a
technique for doing this, but I don't remember where I saw it.  It may have been in JOptionPane.

"Torsten Welches" <torsten.welches@who.cares.netcologne.de> wrote in message news:3a69c8e9_1@dnews...
> Rick,
>
> the problem with your ModalWindow is that it "waits" the AWT event dispatch
> thread without providing a replacement event pump - that's what Dialog does.
> All gui painting stops after your line:
>   if( visible ) myMutex.wait();
>
> Try putting some components on your parent JFrame and invoke your
> ModalWindow. Now iconify and restore your parent and you will see the
> problem.
>
> Torsten
>
> Rick Ingham schrieb in Nachricht <94av0c$6i95@bornews.inprise.com>...
> >I don't think a Dialog box stops other "processes" or threads other than
> the one making the dialog visible, does it?  I would hope
> >it doesn't stomp on all the other threads.  This could kill background
> processing and network activity creating timeout disconnects
> >and such.
> >
> >I'm curious if anyone else has suggestions on improvements to bring this
> closer to Dialog behavior.
>
>
>
Technical Details
Message-ID: <94cid6$g7g4@bornews.inprise.com>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeeds.belnet.be!naxos.belnet.be!news.belnet.be!bornews.borland.com!not-for-mail
References: <3a6369f0_1@dnews> <3a6564c7$1_2@dnews> <944b6j$pcp18@bornews.inprise.com> <3a669326$1_2@dnews> <948gf1$nu85@bornews.inprise.com> <948o7v$nnm5@bornews.inprise.com> <3a68bcad_2@dnews> <94av0c$6i95@bornews.inprise.com> <3a69c8e9_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,4562037466fa7b2c
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2001-01-20 09:39:21 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeeds.belnet.be!naxos.belnet.be!news.belnet.be!bornews.borland.com!not-for-mail
From: "Rick Ingham" <rdingham@home.com>
Newsgroups: borland.public.jbuilder.java.swing
Subject: Re: I need a window which is modal
Date: Sat, 20 Jan 2001 09:38:40 -0800
Organization: Another Netscape Collabra Server User
Lines: 30
Message-ID: <94cid6$g7g4@bornews.inprise.com>
References: <3a6369f0_1@dnews>  <3a6564c7$1_2@dnews>  <944b6j$pcp18@bornews.inprise.com>  <3a669326$1_2@dnews> <948gf1$nu85@bornews.inprise.com> <948o7v$nnm5@bornews.inprise.com> <3a68bcad_2@dnews> <94av0c$6i95@bornews.inprise.com> <3a69c8e9_1@dnews>
NNTP-Posting-Host: c191422-a.sttln1.wa.home.com
Mime-Version: 1.0
Content-Type: text/plain;
 charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400