Hi. I 've made a game as a subclass of JFrame. It runs smoothly and stable when I run it by invoking the main method of the class. But now I want to convert it into an applet in order to run it through AppletViewer. Is there a way to create an applet class and use the class of the game I made to display it in the applet? Something like:

Java Code:
import java.awt.*;
import javax.swing.*;

public class PuzzleGame extends java.applet.Applet{

public void paint(){

MyPuzzle puzzle = new MyPuzzle("Puzzle App.");
puzzle.setSize(250,300);
puzzle.setVisible(true);

}
}
The code above won't work.
I 'll post the code of MyPuzzle if needed.
Thanks in advance.