Getting Rid of Flicker and Tearing
First off, you can create three types of graphical games in Java: an applet game, a windowed game, and a full-screen game.
Applet games. Java applet games are applications that run in a web browser. The benefit here is that the user doesn't have to install anything. But players have to be online and running a web browser to play, and, unfortunately, applets have a few security restrictions to keep malicious code from causing harm. For example, applets can't save information such as preferences or saved games to the user's hard drive. Also, an applet can make a network connection only to the server that it came from.