Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

replacement for applets

 
leo zeo
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have developed a game using applets in which a ball shows its trajectory to hit an object.
For that i have used repaint method of applet to paint applet again and again when the coordinates of the ball get changed.

If i have to develop same game without using applet how can i get the same result.
I think i have to use threads for displaying the trajectory of the ball.

please guide me whether i m going on right track or i have to use something else.
Any pointers will be appreciated.
thanks in advance

--
Leozeo
 
Norm Radder
Ranch Hand
Posts: 707
3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wouldn't think you need to change the logic much in the applet. You could wrap code around an applet that allows an applet to run as an application.
Here's how I did it with AWT code:
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"leo zeo",
Please check your private messages regarding an important administrative matter.
-Ben
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic