★ wanayoo — archive 1999 http://stars.com/Authoring/Scripting/Tutorial/java_applet_example.htmlNouvelle recherche | Portail wanayoo

Internet Advertising Report logo

internet.com
Join the free
WDVL newsletter!

home

Java Applet by Example

  • Okay, we still have a few more things to talk about before you actually build your own applet. However, I will introduce a simple applet so you can see what it would look like. Notice that we have to import the applet package.

    import java.awt.*;
    import java.applet.*;
    
    public class Hello extends Applet
      {
      public void init()
        {
        System.out.println("We have been initialized");
        }
    
      public void start()
        {
        System.out.println("We have been started");
        }
    
      public void stop()
        {
        System.out.println("We have been stopped");
        }
    
      public void destroy()
        {
        System.out.println("We have been destroyed");
        }
    
      }
    

Additional Resources:

Applet Lifecycle
Table of Contents
Applet HTML

Up to => Home / Authoring / Scripting / Tutorial

Instantly look up a "techie" word using Webopedia!!


internet.com
e-commerce
WebDeveloper Network


Webopedia

Copyright 1999 internet.com Corporation. Legal Notices. Privacy Policy.

www.internet.com