CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2010
    Posts
    0

    Applet Refresh Not Working?

    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..
    Attached Files Attached Files

  2. #2
    Join Date
    Jun 1999
    Location
    Eastern Florida
    Posts
    3,877

    Re: Applet Refresh Not Working?

    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>
    */
    Norm

  3. #3
    dlorde is offline Elite Member Power Poster
    Join Date
    Aug 1999
    Location
    UK
    Posts
    10,163

    Re: Applet Refresh Not Working?

    Quote Originally Posted by Mike3667 View Post
    I'm not sure how to paste code so I'll just upload it..
    Copy & paste it into the editor and surround it with &#91;CODE]...&#91;/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
    Please use &#91;CODE]...your code here...&#91;/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured