//初心者の質問
ほとんど基本的なセルレンダラーを備えた JTable があります (線の色が異なります)。テーブルで何もしていない場合でも、画面に表示される行に対してセル レンダラーが常に実行されていることに気付きました。
それが本来あるべき姿ですか?各セルを一度レンダリングするべきではありませんでしたか? どうすれば停止し、変更時にのみ再計算できますか?
public Component getTableCellRendererComponent(JTable table, Object value,
boolean isSelected, boolean hasFocus, int row, int column) {
log.debug("Building cell : " + row + "," + column);
Component comp = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
Filter filter = (Filter)table.getModel().getValueAt(row, Column.CLASSIFICATION.getIndex());
comp.setBackground(filter.getColor());
return comp;
}