public Object getValueAt(int row, int col) {
int imageID = row * 3 + col;
if (imageID < hits.length()) return icons.get(imageID);
else return null;
}
<BUG>public void setHits(ImageSearchHits hits, JProgressBar progress) {
</BUG>
this.hits = hits;
icons = new ArrayList<ImageIcon>(hits.length());
if (progress != null) progress.setString("Searching finished. Loading images for result list.");

public Object getValueAt(int row, int col) {
int imageID = row * 3 + col;
if (imageID < hits.length()) return icons.get(imageID);
else return null;
}
public void setHits(ImageSearchHits hits, JProgressBar progress, IndexReader reader) {
this.hits = hits;
icons = new ArrayList<ImageIcon>(hits.length());
if (progress != null) progress.setString("Searching finished. Loading images for result list.");
