Dynamically update table and progress bar components?


#1

Hello List,

I am working on a program which generates results dynamically and saves in database table. I want to dynamically update GUI table component and show the database table results.
Can someone suggest the best way to achieve it using Juce. Any help is really appreciated.

Also is there any function or method to display a progress bar and update it dynamically? Is there any concept of background thread like in Win SDK?

Thank you,
Abhie


#2

Take a look at the TableListBox Class, it takes a TableListBoxModel, this is your “Data Provider”. Before that I would look at the Juce Demo source code, it has a TableListBox example that covers everything you need to represent data.

ThreadWithProgressWindow is probably your best bet. Take a look at the example here:
http://www.rawmaterialsoftware.com/juce/api/classThreadWithProgressWindow.html

HTH