Eventually, I would like to program a simple video game, one that will be using swing GUIs, and I'm told that for such applications, one should really use JApplets (which requires importing javax.swing.JApplet).
So I made one simple modification to the code at the above link. I imported javax.swing.JApplet in addition to the libraries already imported, and I made the Thread1 class an extension of the JApplet class instead of the Applet class.
This seems to have changed something though. If you go to my website:
you'll see that the lines that have been drawn are not being erased as it moves to the right. It's almost as though the repaint() function works differently with JApplets than it does Applets.
Any insight as to why this might be happening and how to fix it?