Im not familiar how Java2D works on hardware level, my experiences on other than my own computer are my friends and library.
When im on my town library computers, i wont have success on Bufferstrategy, all my attemps to run Applet Canvas BufferStrategy have failed.
So, i went using Applet.createVolatileImage for doublebuffering, now my town libraryes work without problems, but my friend have WinXP computer
which fails to start my gamesite Applet and with my Linux Mint my Applet sometimes hangs when exitting my gamesite.
So, I currently have following ->
public class GameSite Extends Applet Implements Runnable
Chess chess = null;
public void init ()
JFrame jframe = new JFrame ();
jframe.add ( this );
public void destroy ()
jframe = null;
chess = null;
public void run ()
while ( onrun )
if ( gamemode == chess_init )
chess = new Chess ();
if ( gamemode == chess_run )
What would be the right way to end the life of my Applet, when it is build like that, and what may be the problem
why my friends WinXP fails to activate the Applet and why my Linux Mint sometimes hangs when exitting my gamesite.
This is very beginner of Java question, i anyway set it here Java2D.