Article View: borland.public.jbuilder.java.swing
Article #848Re: ProcessMessages
From: Peder Sk�nning
Date: Wed, 06 Oct 2004 13:52
Date: Wed, 06 Oct 2004 13:52
27 lines
1583 bytes
1583 bytes
>> In Delphi I call >> >> Application.ProcessMessages >> >> How do I force a repaint of a jProgressBar in jBuilder during a batch >> run? >> > > This is a problem because your code is being invoked from the main GUI > thread. SwingUtilities.invokeLater was invented to solve this kind of > problem. > > http://java.sun.com/docs/books/tutorial/uiswing/misc/threads.html > > -- > > Regards, > > Lori Olson [TeamB] > This is more sticky than Delphi! Do I have to write a method that repaints the ProgressBar and then run it through invokeLater? Thanks Peder
Technical Details
Message-ID:
<4163f8b3$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4163e8f0$1@newsgroups.borland.com> <4163f236$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,a2dbf22cfcf04ab2 X-Google-Attributes: gid111d45,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Peder Sk�nning" <nospampax@nospampaxit.dk> Newsgroups: borland.public.jbuilder.java.swing References: <4163e8f0$1@newsgroups.borland.com> <4163f236$1@newsgroups.borland.com> Subject: Re: ProcessMessages Date: Wed, 6 Oct 2004 15:52:28 +0200 Lines: 29 Organization: PAX Informatik X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 80.196.112.50 Message-ID: <4163f8b3$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1097070771 80.196.112.50 (6 Oct 2004 06:52:51 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail