home *** CD-ROM | disk | FTP | other *** search
/ Freesoft 1997 May / Freesoft_1997-05_cd.bin / recenz / PROGRAM / JAVADRAW / iavadraw301_inst.exe / data.z / Twi.pre < prev    next >
Text File  |  1997-07-07  |  2KB  |  83 lines

  1. #define _standalone
  2. #undef _applet
  3.  
  4. #ifdef _applet _standalone
  5. #error _applet and _standalone can not be defined both.
  6. #endif
  7.  
  8. #ifndef _applet _standalone
  9. #error You must define either _applet or _standalone.
  10. #endif
  11.  
  12. #ifdef _applet
  13. import java.applet.*;
  14. public class \Name\ extends Applet implements Runnable
  15. #endif
  16.  
  17. #ifdef _standalone
  18. public class \Name\ extends Frame implements Runnable
  19. #endif
  20.  
  21.    {
  22.    #ifdef _standalone
  23.    public static void main(String args[])
  24.       {
  25.       \Name\ Main = new \Name\ ();
  26.       Main.run ();
  27.       //Add your code here
  28.       }
  29.    #endif
  30.    
  31.    public void init() 
  32.       {
  33.       //Add your code here
  34.       }
  35.  
  36.    public void start() 
  37.       {
  38.       //Add your code here
  39.       }
  40.  
  41.    public void stop() 
  42.       {
  43.       //Add your code here
  44.       }
  45.  
  46.    public void destroy() 
  47.       {
  48.       //Add your code here
  49.       }
  50.  
  51.    public void run() 
  52.       {
  53.       #ifdef _standalone
  54.       init ();
  55.       start ();
  56.       show ();
  57.       #endif
  58.       //Add your code here
  59.       }
  60.  
  61.    public void paint(Graphics g) 
  62.       {
  63.       //Add your code here
  64.       super.paint (g);
  65.       }
  66.  
  67.    public boolean action (Event e, Object o)
  68.       {
  69.       //Add your code here
  70.       return super.action (e,o);
  71.       }
  72.  
  73.    public boolean handleEvent (Event e) 
  74.       {
  75.       //Add your code here
  76.       return super.handleEvent (e);
  77.       }
  78.    }
  79.  
  80. //JAVADRAW! type definition section
  81. //Please do not alter this remark! [JDV5.0tds]
  82.  
  83.