pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Brown <gk_br...@verizon.net>
Subject Re: progress bar question
Date Thu, 10 Mar 2011 12:55:54 GMT
You definitely need to use queueCallback() to update the meter's state. This ensures that the
code is executed on the UI thread.
G

On Mar 10, 2011, at 7:47 AM, Chris Bartlett wrote:

> 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 <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 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.
> 


Mime
View raw message