There are so many basic mistakes in painting/graphics here. For example, calling repaint() from inside paintComponent() is just plain wrong, if you were actually overriding paintComponent(), which...