🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Modal Message Box in applets ?

#9064
From: Dingel
Date: Thu, 08 Jun 2000 00:00
44 lines
2403 bytes
Stop!!!

don't do that!!

sometimes i make exactly the same ... and get a big problem.
if the dialog allways come to front if it's not longer there (by using a
listener)
it will also come to front if you will start any other application.
thats not the same like a normal modal dialog in an java-Application (or any
other language).
there the dialog will only be in front of your application.

if you then open a second dialog of this kind (by not using modal) they will
start switching
because every of them want to be in front.... by using windows nt ther will
be no chance
to stop them, because you can not reach the buttons at the taskmanager....
there will be one
of your dialogs in front!

i think there will be no well solution for your problem because of the
java-sandbox.
it will be a security problem if you get controll of the browser (to make it
deactive...for modal).
thats the reason modal will not work in applets!

the solution i use:
1. using a frame instead of a dialog -->now you will have a button in the
taskbar, so that the user can bring the
dialog back to front
2. myApplet.setEditable(false) --> input to the applet is not longer
possible

it's also not a perfect solution ... but maybe one of the best workarounds
???

if anyone has an better or other way to do that ... i like to hear of it!


-- thomas dingel

and i hope you can understand what i wrote... or what i had tried to
wrote... sorry, reading english is ok
for me but writting makes some problems!
Technical Details
Message-ID: <8hp136$rgi$13$1@news.t-online.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <393D2ECF.629C4B98@fthw.siemens.de> <393D3CDE.AF1D2E95@aravox.com> <393E1299.509B1569@fthw.siemens.de> <393E8158.362AAD5C@aravox.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,ba499406f7159b5c
X-Google-Attributes: gid111d45,public
From: "Dingel" <dingel@devcon-mail.de>
Subject: Re: Modal Message Box in applets ?
Date: 2000/06/08
Message-ID: <8hp136$rgi$13$1@news.t-online.com>
X-Deja-AN: 632769154
Content-Transfer-Encoding: 8bit
References: <393D2ECF.629C4B98@fthw.siemens.de> <393D3CDE.AF1D2E95@aravox.com> <393E1299.509B1569@fthw.siemens.de> <393E8158.362AAD5C@aravox.com>
X-Sender: 320063477271-0001@t-dialin.net
X-Priority: 3
Content-Type: text/plain; charset=ISO-8859-1
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
X-Complaints-To: abuse@t-online.de
X-Trace: news.t-online.com 960497575 13 28178 320063477271-0001 000608 20:52:55
Organization: T-Online
X-MSMail-Priority: Normal
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing