Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
行を 1 つ追加して fireTableRowInserted() を呼び出すか、すべての行を追加してから fireTableDataChanged() を呼び出すことをお勧めしますか?
新しい行を追加するだけの場合は、すべての行を追加fireTableRowsInserted()し、適切な最初と最後の行で呼び出すことをお勧めします。ビューは 1 つのイベントのみを処理する必要があり、イベントは何が起こるかを正確に伝えます。これにより、更新する必要のないビューの部分を更新する必要がなくなります。
fireTableRowsInserted()