Ron McKenzie

Greenhorn
+ Follow
since Mar 15, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by Ron McKenzie

It's very common to use Threads with any game. One reason is that games can often become resource hogs and bring the system to it's knees. The more common reason is that if you are developing a game in an applet then it is an easy way to ensure that the applet is actually loaded before you start to draw stuff. For now you can drop your Threads, but you will need some place to put your "Main game loop." I would suggest your main. I think the real reason your program is not working is that repaint() does not work the same for JPanels as it does for Applets. I don't think it calls update(). Here is a working version of your code:
11 years ago
This should do about the same thing.
11 years ago
Looks like

should be
11 years ago