home *** CD-ROM | disk | FTP | other *** search
/ PC World 1999 November / PCWorld_1999-11_cd.bin / Software / Servis / JDE / fj2.exe / _SETUP.1 / TestApplet.java < prev    next >
Text File  |  1999-07-11  |  517b  |  20 lines

  1. import java.applet.*;
  2. import java.awt.*;
  3.  
  4. // note: in order to compile the applet, you
  5. // must set this file as "Main" - select it
  6. // in the project window, and then press F8.
  7. // If you want to run the application version,
  8. // set Tester.java as main.
  9. // To run the applet, choose "Run Applet", or press
  10. // Shift+F5. To run the application, press F5
  11.  
  12. public class TestApplet extends Applet
  13. {
  14.     public void init()
  15.     {
  16.         this.setLayout(new BorderLayout());
  17.         this.add(new DrawCanvas(), "Center");
  18.     }
  19. }    
  20.