Return-Path: Delivered-To: apmail-pivot-user-archive@www.apache.org Received: (qmail 99828 invoked from network); 10 Mar 2011 12:48:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Mar 2011 12:48:22 -0000 Received: (qmail 40824 invoked by uid 500); 10 Mar 2011 12:48:22 -0000 Delivered-To: apmail-pivot-user-archive@pivot.apache.org Received: (qmail 40810 invoked by uid 500); 10 Mar 2011 12:48:22 -0000 Mailing-List: contact user-help@pivot.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@pivot.apache.org Delivered-To: mailing list user@pivot.apache.org Received: (qmail 40802 invoked by uid 99); 10 Mar 2011 12:48:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Mar 2011 12:48:22 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of cbartlett.x@gmail.com designates 209.85.215.54 as permitted sender) Received: from [209.85.215.54] (HELO mail-ew0-f54.google.com) (209.85.215.54) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Mar 2011 12:48:17 +0000 Received: by ewy1 with SMTP id 1so540340ewy.13 for ; Thu, 10 Mar 2011 04:47:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=5BfmixpThVOIPi0QNgzIel7qLVipuxCTou3/YiJgPjw=; b=buexKwGypOO3+HlxWQCy4nXHJeP7iITTtrJB6lxkmNoLaVFCmaTUdHQImaB5t/fnKL AY5vPUc3teMnJMb3NI6EtmK1uljZuVH3c32jq/Y2u5nMy5eibYFnRSg+Mg6B+ref31oI TXilp46absGrP9XA2z69+YjA1i+eDHySGeWaw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=AOCcWbw3B5MewsiC7dishkgHKq/C1l3tgXcy3SJpmLBuFgowJNecx/q/9hFoyjBYM3 +J3ZYwWUmuNu5wYzZwkEhQ5UVSru7UD7ltmBKALaIwEp0sMjF9fEgooa21+Mpz5jAdj0 SXh0pmIMQMoDxRplnKH52CK9+pVdtpG/S4uzM= MIME-Version: 1.0 Received: by 10.14.17.2 with SMTP id i2mr75429eei.47.1299761275650; Thu, 10 Mar 2011 04:47:55 -0800 (PST) Received: by 10.14.124.140 with HTTP; Thu, 10 Mar 2011 04:47:55 -0800 (PST) In-Reply-To: <1299741363683-2659440.post@n3.nabble.com> References: <1299741363683-2659440.post@n3.nabble.com> Date: Thu, 10 Mar 2011 19:47:55 +0700 Message-ID: Subject: Re: progress bar question From: Chris Bartlett To: user@pivot.apache.org Content-Type: multipart/alternative; boundary=0016e6570bc620c462049e204153 --0016e6570bc620c462049e204153 Content-Type: text/plain; charset=ISO-8859-1 See these tutorials http://pivot.apache.org/tutorials/background-tasks.html http://pivot.apache.org/tutorials/stock-tracker.web-queries.html You might also need to use http://pivot.apache.org/2.0/docs/api/org/apache/pivot/wtk/ApplicationContext.html#queueCallback(java.lang.Runnable) to ensure that changes to Components occur in Pivot's GUI thread so that they will repaint immediately. http://svn.apache.org/repos/asf/pivot/trunk/demos/src/org/apache/pivot/demos/million/LargeData.java You can also have a look at DummyLoadTask within SplashExample from this demo I posted to the list a few months ago http://apache-pivot-users.399431.n3.nabble.com/Window-without-control-button-tp2062421p2063350.html Some other threads that might be useful http://apache-pivot-users.399431.n3.nabble.com/Problem-with-repaint-of-Label-tp1084848p1084848.html http://apache-pivot-users.399431.n3.nabble.com/HostFrame-Size-How-to-calculate-tp1736915p1736915.html Chris On 10 March 2011 14:16, lello wrote: > Hi all, > > I was experimenting with the progressbar but I have some problems to > understand in which thread I have to start it. Suppose I want to have > several progress meter in a tablepane each showing the status of some > action > (for example some music file playing or whatever) How do I start all of > them? > I guess I must create a class which implements runnable and start the > progress meter, but them how do I display it in the application? > (I must admit that probably this is very basic question and one of my > problems is that I am not so familiar with threads management in Java... > sorry for that). > > > -- > View this message in context: > http://apache-pivot-users.399431.n3.nabble.com/progress-bar-question-tp2659440p2659440.html > Sent from the Apache Pivot - Users mailing list archive at Nabble.com. > --0016e6570bc620c462049e204153 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
See these tutorials

You might also need to use
to ensure that changes to Components occur in Pivot's GUI thread s= o that they will repaint immediately.


You can also have a look at DummyLoadTas= k within SplashExample from this demo I posted to the list a few months ago=

Some other threads that might be useful
http://apache-pivot-users.39943= 1.n3.nabble.com/HostFrame-Size-How-to-calculate-tp1736915p1736915.html<= /div>

Chris

On= 10 March 2011 14:16, lello <rborrelli@gmail.com> wrote:
Hi all,

I was experimenting with the progressbar but I have some problems to
understand in which thread I have to start it. Suppose I want to have
several progress meter in a tablepane each showing the status of some actio= n
(for example some music file playing or whatever) How do I start all of
them?
I guess I must create a class which implements runnable and start the
progress meter, but them how do I display it in the application?
(I must admit that probably this is very basic question and one of my
problems is that I am not so familiar with threads management in Java... sorry for that).


--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/progress-bar-question-tp26= 59440p2659440.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

--0016e6570bc620c462049e204153--