🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #18279

Capturing events

#18279
From: Charles Montgomery
Date: Wed, 15 Jul 1998 00:00
19 lines
1227 bytes
I'm trying to capture a button click to cancel an
operation,
but the listener never fires.  This isn't
surprising - in other languages you have to
manually check for windows messages from within
your loop (e.g. Application.ProcessMessages in
Delphi), but I can't find an analog in Java.  I
tried creating another thread, but you have to
loop to stay in run() and the event doesn't fire
while you're in run().

How do you do this in java?  I need to get the
multi-thread approach working regardless because
I'm also making JDBC calls and I need to let the
user cancel the query, which requires another
thread. It would also be nice to know if there's a
way to check for events within a single thread.

Thanks
Technical Details
Message-ID: <35AC551E.C69558DD@best.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: f74b3,fb36a8b8b5d13eb3,start
X-Google-Attributes: gidf74b3,public
From: Charles Montgomery <cmont@best.com>
Subject: Capturing events
Date: 1998/07/15
Message-ID: <35AC551E.C69558DD@best.com>
X-Deja-AN: 371603755
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
Organization: RapidWarehouse, Inc.
Mime-Version: 1.0
Reply-To: charles@rapidwarehouse.com
Newsgroups: borland.public.jbuilder.java.language