home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 October / Chip_1997-10_cd.bin / tema / sybase / powerj / samples.z / Check_Box.wxc < prev    next >
Text File  |  1997-01-28  |  3KB  |  133 lines

  1. Save Format v2.0(1)
  2. @begin ClassFile "Check_Box"
  3.  Exported 1;
  4.  Abstract 0;
  5.  Interface 0;
  6.  PackageName "";
  7.  Language "Java";
  8.  
  9.  @begin UserFunction "Check_Box()"
  10.   Compiler 1;
  11.   GencodeFunction 1;
  12.   GencodeSrcLine 10;
  13.   FunctionName "Check_Box::Check_Box()";
  14.  @end;
  15.  
  16.  @begin UserFunction "init()"
  17.   Compiler 1;
  18.   GencodeSrcLine 14;
  19.   FunctionName "Check_Box::init()";
  20.  @end;
  21.  
  22.  @begin UserFunction "CreateAppletForm()"
  23.   Compiler 1;
  24.   GencodeFunction 1;
  25.   GencodeSrcLine 19;
  26.   FunctionName "Check_Box::CreateAppletForm()";
  27.  @end;
  28.  
  29.  @begin UserFunction "main(String args[])"
  30.   Compiler 1;
  31.   GencodeFunction 1;
  32.   GencodeSrcLine 24;
  33.   FunctionName "Check_Box::main(String args[])";
  34.  @end;
  35.  
  36.  @begin UserFunction "createAppletForm()"
  37.   Compiler 1;
  38.   GencodeFunction 1;
  39.   GencodeSrcLine 41;
  40.   FunctionName "Check_Box::createAppletForm()";
  41.  @end;
  42.  
  43.  @begin HPPPrefixBlock
  44. @begin-code HPPPrefix
  45.  
  46. // add your custom import statements here
  47.  
  48. @end-code;
  49.   GencodeSrcLine 6;
  50.  @end;
  51.  
  52.  @begin ClassContentsBlock
  53. @begin-code ClassContents
  54.  
  55.     // add your data members here
  56.  
  57. @end-code;
  58.   GencodeSrcLine 46;
  59.  @end;
  60.  
  61. @begin-code BaseClassList
  62.  
  63. extends powersoft.jcm.ui.AWTAppletEx
  64.  
  65. @end-code;
  66.  
  67. @begin-code GeneratedClassContents
  68.  
  69.  
  70. @end-code;
  71.  
  72. @begin-code Code "Check_Box::Check_Box()"
  73.  
  74.     public @CLASSNAME@()
  75.     {
  76.         super();
  77.     }
  78.  
  79. @end-code;
  80.  
  81. @begin-code Code "Check_Box::init()"
  82.  
  83.     public void init()
  84.     {
  85.         super.init();
  86.         CreateAppletForm();
  87.     }
  88.  
  89. @end-code;
  90.  
  91. @begin-code Code "Check_Box::CreateAppletForm()"
  92.  
  93.     public void CreateAppletForm()
  94.     {
  95.         Form1 form = new Form1(this);
  96.         form.create();
  97.     }
  98.  
  99. @end-code;
  100.  
  101. @begin-code Code "Check_Box::main(String args[])"
  102.  
  103.     public static void main(String args[])
  104.     {
  105.         @@CLASSNAME@ applet = new @CLASSNAME@();
  106.         powersoft.jcm.ui.Form f = new powersoft.jcm.ui.Form();
  107.         f.create();
  108.         f.setResizable(false);
  109.         f.setMainWindow(true);
  110.         f.addComponent(applet);
  111.         applet.init();
  112.         java.awt.Insets insets = f.getInsets();
  113.         java.awt.Dimension size = applet.size();
  114.         applet.move( insets.left, insets.top );
  115.         f.setWidth( size.width + insets.left + insets.right );
  116.         f.setHeight( size.height + insets.top + insets.bottom );
  117.         f.resize(applet.preferredSize());
  118.         f.setVisible(true);
  119.     }
  120.  
  121. @end-code;
  122.  
  123. @begin-code Code "Check_Box::createAppletForm()"
  124.  
  125.     public void createAppletForm()
  126.     {
  127.         Form1 form = new Form1(this);
  128.         form.create();
  129.     }
  130.  
  131. @end-code;
  132. @end;
  133.