The idea of redrawing an AWT component is that you either place somw another component on it, that can redraw itself or you get an access to component's graphics, that
you should everytime you get repaint() called.
In other words, you have to modify paint(Graphics) method to draw any 2D objects on a Component each time JDK wants to repaint the window.
------------------
With best of best regards, Pawel S. Veselov ( aka Black Angel )