Click to See Complete Forum and Search --> : Applet Refresh Not Working?


Mike3667
May 26th, 2010, 05:21 PM
Well, this is my first attempt at some form of interactive applet, and I'm aiming for a Pacman game. Everything seems to be working just fine, the only problem I'm having is the repaint and refresh, no matter how I try, they never seem to work. I've looked at other examples of this, and still nothing. If someone could please point me in the right direction it would be greatly appericated!
I'm not sure how to paste code so I'll just upload it..

Norm
May 27th, 2010, 09:05 AM
Why are there more than one class that extends Applet? Only the main class needs to do that.

Hard to test your code without the images.

If you add the following to your code, you can run ApplietViewer with the source instead of needing a separate HTML file.

/*
<APPLET code=PacyMan width=600 height=600> </APPLET>
*/

dlorde
May 28th, 2010, 03:53 AM
I'm not sure how to paste code so I'll just upload it..
Copy & paste it into the editor and surround it with [CODE]...[/CODE] tags.

Many of us will not be prepared to spend time on your problem if you aren't prepared make the effort to find out how to post it properly.

Programs must be written for people to read, and only incidentally for machines to execute...
H. Abelson and G. Sussman