Article View: borland.public.jbuilder.java.swing
Article #849Re: ProcessMessages
From: Karl-Heinz Reng
Date: Wed, 06 Oct 2004 21:14
Date: Wed, 06 Oct 2004 21:14
44 lines
1906 bytes
1906 bytes
Hello, look at this book, Graphic Java Volume 2 Swing, 3 rd Edition from David M. Geary. On page 590 you will find an example (Monitoring the Values of a Progress Bar). You must use Threads. Regards Karl-Heinz Reng Reng-EDV "Peder Sk๏ฟฝnning" <nospampax@nospampaxit.dk> schrieb im Newsbeitrag news:4163f8b3$1@newsgroups.borland.com... > >> 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:
<41645f72@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4163e8f0$1@newsgroups.borland.com> <4163f236$1@newsgroups.borland.com> <4163f8b3$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 From: "Karl-Heinz Reng" <nomeil@noem.de> Newsgroups: borland.public.jbuilder.java.swing References: <4163e8f0$1@newsgroups.borland.com> <4163f236$1@newsgroups.borland.com> <4163f8b3$1@newsgroups.borland.com> Subject: Re: ProcessMessages Date: Wed, 6 Oct 2004 23:14:01 +0200 Lines: 46 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 217.229.155.115 Message-ID: <41645f72@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1097097074 217.229.155.115 (6 Oct 2004 14:11:14 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail