Re: Why does fireTableDataChanged cause getValueAt called repeatly?



On 5月7日, 上午11时19分, Tom Hawtin <use...@xxxxxxxxxxxxxxxxx> wrote:
Allen wrote:

Now I use fireTableRowInserted method. It also calls getValueAt
endlessly.
I only add two rows into the table. Look these output message.

Literally endlessly? Are you sure you are not causing the table model to
fire events from getValueAt or causing repaints/revalidates in some
other way?

Tom Hawtin

Sorry. I found the reason now. I used my custermized multiline
textarea cell renderer.
And I just overrided getTableCellRendererComponent method of
TableCellRenderer interface.
Now I change to use TextAreaRenderer download from
http://www.javaspecialists.co.za/archive/newsletter.do?issue=106&locale=en_US.
It is ok now.

Thank you!

.