🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: I need a window which is modal

#7581
From: Torsten Welches
Date: Sat, 20 Jan 2001 17:17
21 lines
1907 bytes
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: <3a69c8e9_1@dnews>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!194.8.205.136
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>

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:23:21 PST
From: "Torsten Welches" <torsten.welches@who.cares.netcologne.de>
Newsgroups: borland.public.jbuilder.java.swing
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>
Subject: Re: I need a window which is modal
Date: Sat, 20 Jan 2001 18:17:38 +0100
Lines: 25
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
NNTP-Posting-Host: 194.8.205.136
Message-ID: <3a69c8e9_1@dnews>
X-Trace: 20 Jan 2001 09:20:41 -0800, 194.8.205.136
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!194.8.205.136