Updating the frame:
Public void update(Graphics g) { If(! FullUpdate) {
Int cx,cy;
g.setFont(titleFont);
for(int i=0;i<rows;i++)
{ for(int j=0;j<columns;j++)
{ if (cells[i][j].needRedisplay) {
cx=(j * cellWidth)+(fontSize*2) + rowLabelWidth;
cy=((i+1) cellHeight)+(fontSize*2)+titleHeight;
cells[I][j].paint(g.cx,cy);
}
}
}
}
else { paint(g); fullUpdate = false;
}
}