home *** CD-ROM | disk | FTP | other *** search
/ Chip Special: HTML & Java / Chip-Special_1997-01_HTML-a-Java.bin / javasdk / sdk-java.exe / SDKJava.cab / Samples / Version / VersionPanelTestApplet.java < prev    next >
Encoding:
Java Source  |  1996-10-10  |  775 b   |  34 lines

  1. // VersionPanelTestApplet.java
  2. //
  3. // Created 09/25/96
  4. //
  5. // (C)Copyright 1996 Microsoft Corporation, All rights reserved.
  6. //
  7.  
  8. import java.io.File;
  9.  
  10.  
  11. public
  12. class VersionPanelTestApplet extends TestApplet
  13. {
  14.     public void start ()
  15.     {
  16.         System.out.println("Creating frame...");
  17.         
  18.         String filename = getParameter("file");
  19.         File file = filename != null ? new File(filename) : null;
  20.             
  21.         VersionPanelTest f = new VersionPanelTest(null);
  22.         f.isapplet = true;
  23.         f.newfile(file);
  24.         
  25.         System.out.println("Frame created.");
  26.     }
  27.  
  28.     public static void main (String[] args)
  29.     {
  30.         TestApplet.main(new VersionPanelTestApplet(), "Version Panel Test Applet", args);
  31.     }
  32. }
  33.  
  34.