🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Disabling user interaction during long treatments

#12009
From: T. Delassus
Date: Mon, 08 Mar 1999 00:00
17 lines
1433 bytes
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: <36E3BA68.16AAFB2C@atos-group.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,317b09c023c695da,start
X-Google-Attributes: gid111d45,public
From: "T. Delassus" <tdelassus@atos-group.com>
Subject: Disabling user interaction during long treatments
Date: 1999/03/08
Message-ID: <36E3BA68.16AAFB2C@atos-group.com>
X-Deja-AN: 452538757
Content-Transfer-Encoding: 7bit
Organization: Another Netscape Collabra Server User
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing