pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joseph Paterson <joseph.pater...@gmail.com>
Subject Re: Notify TableView that the data has changed
Date Tue, 12 Jun 2012 10:59:47 GMT
Great, thanks! I actually also found that repaint() *does* work if the
backing objects are self-updating (ie. the values returned change without
the object itself being modified).

On Tue, Jun 12, 2012 at 2:39 PM, Roger Whitcomb <RogerandBeth@rbwhitcomb.com
> wrote:

> Hi Joseph,
>    Use the List.update method with the same (updated) object.  So, the
> flow would be:
> List<Object> list = getTableData();
> Object obj = list.get(index);
> modify obj
> list.update(index, obj);
>
> And that's all you have to do.
>
> ~Roger
>
> On Jun 11, 2012, at 6:21 PM, Joseph Paterson wrote:
>
> Hello,
>
> I have a TableView with some data in it. I've had no issues adding new
> data via getTableData().add(...), however I'm not sure how to notify the
> table if any of the *existing* data has changed. I've tried
> tableView.repaint() with no luck. The data in the table is a simple POJO.
>
> Many thanks in advance!
>
> Joseph.
>
>
>

Mime
View raw message