🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Newbie need details for jProgressBar

#148
From: Paul Furbacher [TeamB]
Date: Wed, 05 Apr 2006 14:15
39 lines
2354 bytes
Doychin Bondzhev wrote:

> If you come from Delphi then you know that when you want to update some 
> property in a VCL control you have to do this in the main thread and for 
> that purpose in TThread you have Synchronize method that you use to call 
> other methods which should be executed in the context of the main thread.
> 
> In java you have to follow the same rules but here it is a little bit 
> different. The way it is done is by use methods called invokeLater and 
> invokeAndWait
> 
> These 2 methods are static and are defined in SwingUtilities class.

In addition, there is a tutorial on JProgressBar which discusses this:

http://java.sun.com/docs/books/tutorial/uiswing/components/progress.html
http://java.sun.com/developer/TechTips/2000/tt0912.html#tip2


The Swing Tutorial may be of general interest to both newcomers and
experienced hands who haven't done Swing in a while (myself included):

http://java.sun.com/developer/technicalArticles/GUI/swingtut/index.html


-- 


Paul Furbacher (TeamB)

   Save time, search the archives:
        http://info.borland.com/newsgroups/ngsearch.html

   Is it in Joi Ellis's Faq-O-Matic?
        http://www.visi.com/~gyles19/fom-serve/cache/1.html

   Finally, please send responses to the newsgroup only.
   That means, do not send email directly to me.
   Thank you.
Technical Details
Message-ID: <4433d103@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <44336f97$1@newsgroups.borland.com> <4433c072$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,4179958d51cc741f
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Wed, 05 Apr 2006 10:15:33 -0400
From: "Paul Furbacher [TeamB]" <pfurbacher@mac.com>
Organization: Reverse Alchemy, Inc.
User-Agent: Thunderbird 1.5 (Macintosh/20051201)
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing
Subject: Re: Newbie need details for jProgressBar
References: <44336f97$1@newsgroups.borland.com> <4433c072$1@newsgroups.borland.com>
In-Reply-To: <4433c072$1@newsgroups.borland.com>
Content-Type: text/plain; charset=windows-1251; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 69.142.194.228
Message-ID: <4433d103@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1144246531 69.142.194.228 (5 Apr 2006 07:15:31 -0700)
Lines: 39
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail