This is a simple example of how to run an application from within an applet.
By simply substituting an instance of diva.gui.AppletContext for the
ApplicationContext in the constructor for our simple text editor, it runs
inside an applet. The appropriate code is:
public class AppletTutorial extends AppletContext {
public AppletTutorial() {
new ApplicationTutorial(this);
}
}
This roughly corresponds to the main() function we had before.