Whats is the Dimension Class used for?
Ensuring that previous graphical objects do not get erased with every repaint I’m trying to create a MS-Paint Style whiteboard for collaborative work across the net. Any previously drawn graphical objects(circles, rect etc) would be erased with every repaint. Currently, I’ve solved this problem by using a vector to store drawn objects and repaint them every time repaint is called. As the number of objects increases, the screen starts to flicker as a lot of redrawing has to be done.