Article View: borland.public.jbuilder.java.language
Article #18123Re: Processing Windows messaging
From: William Yu
Date: Fri, 07 Aug 1998 00:00
Date: Fri, 07 Aug 1998 00:00
16 lines
1309 bytes
1309 bytes
Scott Ottesen wrote: > > Hi- > > I've been working with JBuilder in Windows 95/NT. Does anyone know of a > way to have Java check for Windows messaging (much like the Delphi > System.ProcessMessages) or is there a way to construct an "interupt" > inside a WHILE loop to do things like refresh the canvas or process a > button click? I'm trying to build a Cancel button inside an import > routine I wrote, but as it runs, it's stuck running until completion > (which doesn't need to happen in this case). You need a separate thread to listen for user interface events and interrupt the processing loop when necessary. (Interruption can be in the form of setting boolean flags that the processing code periodically checks against.)
Technical Details
Message-ID:
<35CB9EC2.409AB0EB@Bigfoot.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<35CB2F83.C66DE626@dced.state.ut.us>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,527fcc360015b0d3 X-Google-Attributes: gidf74b3,public From: William Yu <William_Yu@Bigfoot.com> Subject: Re: Processing Windows messaging Date: 1998/08/07 Message-ID: <35CB9EC2.409AB0EB@Bigfoot.com> X-Deja-AN: 379015213 Content-Transfer-Encoding: 7bit References: <35CB2F83.C66DE626@dced.state.ut.us> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: American All-Risk Group (AARG) Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language