🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

To thread or not to thread?

#9745
From: BS
Date: Fri, 14 Jan 2000 00:00
15 lines
1181 bytes
I'm writing an app that is using a series of panels.  Each panel contains a
set of buttons, etc...  When a certain button is pressed the current panel
is set invisible while the next one is set visible.

My problem is:  When I click on a button it seems that the actions (ie.
connect to a database) are taking over resources and the repaint message is
delayed causing certain items from the previous panel to be seen along with
buttons on the next panel while the action is being performed.

My question is:  Should the actions that are to be performed be run in a
separate thread or is there a function similar to Delphi's
Application.ProcessMessages()?

Thanks in advance,
Brian.
Technical Details
Message-ID: <85oo41$9ov24@bornews.borland.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,e10483a2298b307b,start
X-Google-Attributes: gid111d45,public
From: "BS" <bsue@ican.net>
Subject: To thread or not to thread?
Date: 2000/01/14
Message-ID: <85oo41$9ov24@bornews.borland.com>
X-Deja-AN: 572839193
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.swing