🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Modal Message Box in applets ?

#9046
From: Joi Ellis
Date: Wed, 07 Jun 2000 00:00
38 lines
2019 bytes
Juergen Maihoefner wrote:
> 
> Hello,
> 
[snip]
> 
> I agree that modal Windows aren't allways the best solution, and I
> would try another way if I have one.
> 
> But how can I tell a window to "stay-on-top" ?
> Is there a method that I don't know about ?
> 

Well, I see java.awt.Window.toFront() and is inherited by JFrame,
JWindow, and JDialog, so perhaps you could try adding a windowListener
to the thing that forces it toFront() whenever it gets hidden.
That's where I'd start.  I don't know if that will bring the 
thing in front of unrelated apps, or not.  Probably depends upon
the platform.

> B.t.w., the MessageBox works perfect when the applet is runnig as
> a application or within appletviewer.
> But when I use a browser, the MessageBox drops behind the browser
> when I'm clickin on Netscape.
 
Can't suggest anything here, I avoid applets in general.

> More worth, there isn't anything to see in the taskbar.
> Only by using Alt+Tab, it is possible to reach the MessageBox again.
> 
--
Joi Ellis                    Software Engineer
Aravox Technologies          joi@aravox.com, gyles19@visi.com

No matter what we think of Linux versus FreeBSD, etc., the one thing I
really like about Linux is that it has Microsoft worried.  Anything
that kicks a monopoly in the pants has got to be good for something.
           - Chris Johnson
Technical Details
Message-ID: <393E8158.362AAD5C@aravox.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>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,ba499406f7159b5c
X-Google-Attributes: gid111d45,public
From: Joi Ellis <joi@aravox.com>
Subject: Re: Modal Message Box in applets ?
Date: 2000/06/07
Message-ID: <393E8158.362AAD5C@aravox.com>
X-Deja-AN: 632243831
Content-Transfer-Encoding: 7bit
References: <393D2ECF.629C4B98@fthw.siemens.de> <393D3CDE.AF1D2E95@aravox.com> <393E1299.509B1569@fthw.siemens.de>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Aravox Technologies
Mime-Version: 1.0
Reply-To: joi@aravox.com
Newsgroups: borland.public.jbuilder.java.swing