This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
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
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: