Hello,
I've got a short question which is bugging me for a long time:
fireTableRowsUpdated(firstrow, lastrow) is a function of
AbstractTableModel, it notifies the View when a row is updated. It
accepts 2 parameters, firstrow and lastrow.
I'm wondering if the firstrow and lastrow are 0 based or 1 based, for
example:
fireTableRowsUpdated(0, 0)
will this code notify the View that row 1 till 1 has been updated? Or
will:
fireTableRowsUpdated(1,1)
do that? (notify that row 1 till 1 has been updated)
The docs are not very clear about this.
Kind regards,
Jaap Zeerijk
Andrew Thompson - 15 Jun 2005 15:05 GMT
> fireTableRowsUpdated(0, 0)
> will this code notify the View that row 1 till 1 has been updated? Or
> will:
> fireTableRowsUpdated(1,1)
> do that? (notify that row 1 till 1 has been updated)
What do your experiments reveal?

Signature
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane
Jaap Zeerijk - 15 Jun 2005 15:13 GMT
>> fireTableRowsUpdated(0, 0)
>> will this code notify the View that row 1 till 1 has been updated? Or
[quoted text clipped - 3 lines]
>
>What do your experiments reveal?
I'm currently using "fireTableRowsUpdated(0, 0)" to update the first
row. That works with me, but several customers have repaint problems.
Now i'm using fireTableDataChanged() and no one has repaint problems.
I don't want my customers to try the other solution
(fireTableRowsUpdated(1,1)) at the risk of unfixing a bug, so i don't
know if that one is working. That's why i'm asking.
Jaap Zeerijk