Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

the display of my applet in html got problem~

 
Edward Sie
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i having problem of the running the animation, when i move my public void run(); to my class file~ i hope anyone cn help me solve this problem~ or tell me wat should i do~



 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What, exactly, is the problem? In other words, what does the code do now, and what do you think it should be doing instead?

For starters, why does the Player class extend Applet?

In the future, please UseCodeTags when posting code of any length (I have added those now for you). It's unnecessarily hard to read the code otherwise, making it less likely that people will bother to do so.
 
Edward Sie
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry for the inconvenient. i first time using the forum. i have a new coding that working, the only problem is i cant add in button, maybe it need use paintComponent? i hope you can teach me~ i'm new to java applet~ this is the link to my new post~ http://www.coderanch.com/t/530182/Applets/java/display-applet-html-got
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic