Article View: borland.public.jbuilder.java.swing
Article #12018Re: Disabling user interaction during long treatments
From: Ernie Rael
Date: Mon, 08 Mar 1999 00:00
Date: Mon, 08 Mar 1999 00:00
24 lines
1677 bytes
1677 bytes
How about adding no-op mouse/keyboard listener to glass pane
before setting it visible?
-ernie
On Mon, 08 Mar 1999 12:54:17 +0100, "T. Delassus"
<tdelassus@atos-group.com> wrote:
>I am working on a Corba client/server application over a slow network.
>I would like to avoid that the user click everywhere during long Corba
>calls (users are so impatient !) by displaying some kind of modal
>message ("Please wait...") during the server treatments.
>I've spent several days on that problem !
>I've tried to use a JDialog, but it blocks the main thread so it can't
>be automatically closed at the end of the treatment.
>I've also tried to use the JFrame's GlassPane to discard mouse and
>keyboard events, but these events are buffered and triggered when the
>treatment is finished.
>I don't want to disable/enable all components in my application because
>it's a big mess to manage (some fields are disabled before the Corba
>call and must not be enabled after).
>
>I guess this is a very common problem in client/server programming so
>there *must* be a simple solution.
>Any suggestion ???
Technical Details
Message-ID:
<36e45d1e.108553281@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36E3BA68.16AAFB2C@atos-group.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,317b09c023c695da X-Google-Attributes: gid111d45,public From: err@raelity.com (Ernie Rael) Subject: Re: Disabling user interaction during long treatments Date: 1999/03/08 Message-ID: <36e45d1e.108553281@forums.borland.com> X-Deja-AN: 452759522 Content-Transfer-Encoding: 7bit References: <36E3BA68.16AAFB2C@atos-group.com> Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing