On 02/25/2017 01:22 PM, Erdem wrote:

I try to implement a cellrenderer progress demo like this.

... code ...

Let's think we have three task. We'd like to do these tasks in order.

After the first task is over, we will move to the second task, at the mean time the progress bar will advance.

But how do we get an iterator to the first item/task in the model? (It is "Make soup" in our example)

You can use TreeModel.getIterFirst to get an TreeIter pointing to the
first row.

TreeIter iter;
model.getIterFirst(iter);

// iter now points to the firs row.