🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #3013

Re: Modal JInternalFrame possible?

#3013
From: Max Polk
Date: Thu, 21 May 1998 00:00
22 lines
1484 bytes
In article <MPG.fca972299ef861a9896a9@forums.borland.com>, none@none.com 
says...
> How can you achieve a modal JInternalFrame in a JApplet?  You can add 
> the JInternalFrame to the MODAL_LAYER, but that is not a magic layer 
> making it modal.
> 
> It turns out that Netscape makes external frames non-modal so that you 
> can get the frame behind the main Netscape window and then be 
> confused.  I wanted a JInternalFrame that is modal to avoid confusion.
> 

I found no way to get a JInternalFrame modal over other JInternaFrame's 
inside of a JApplet.  Instead, from the root pane, I traversed all 
JInternalFrames and for each one, made the glass pane have null mouse 
listeners before making the glass pane visible and before adding the 
pseudo-modal JInternalFrame.

In this way, adding a JInternalFrame at a higher layer means the 
JInternalFrame is always on top, and access to other JInternalFrames 
results in ignored mouse presses.  In a kind of way, this is like modal 
behavior.
Technical Details
Message-ID: <MPG.fcdefc0e9414fed989687@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <MPG.fca972299ef861a9896a9@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,4d03ca93c26e38e8,start
X-Google-Attributes: gid1089d0,public
From: none@none.com (Max Polk)
Subject: Re: Modal JInternalFrame possible?
Date: 1998/05/21
Message-ID: <MPG.fcdefc0e9414fed989687@forums.borland.com>
X-Deja-AN: 355222718
References: <MPG.fca972299ef861a9896a9@forums.borland.com>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.api