home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 7: Programming / CDAT7.iso / demos / vj / VJ98 / VJProjs / componen / comcontr / COMContr.jav next >
Encoding:
Text File  |  1998-05-31  |  1.1 KB  |  41 lines

  1. import com.ms.wfc.core.*;
  2. import com.ms.wfc.ui.*;
  3.  
  4. /**
  5.  * This class is a visual component. The entry point for class execution
  6.  * is the constructor.
  7.  * 
  8.  * This class can be used as an ActiveX control. Check the checkbox for this class 
  9.  * on the Project Properties COM Classes tab, or remove the // from the next line:
  10. // * @com.register ( clsid=%GUID1%, typelib=%GUID2% )
  11.  */
  12. public class Control1 extends UserControl
  13. {
  14.     public Control1()
  15.     {
  16.         // Required for Visual J++ Form Designer support
  17.         initForm();
  18.  
  19.         // TODO: Add any constructor code after initForm call
  20.     }
  21.  
  22.     /**
  23.      * NOTE: The following code is required by the Visual J++ form
  24.      * designer.  It can be modified using the form editor.  Do not
  25.      * modify it using the code editor.
  26.      */
  27.     Container components = new Container();
  28.  
  29.     private void initForm()
  30.     {
  31.         this.setSize(new Point(300, 300));
  32.         this.setText("Control1");
  33.     }
  34.     // NOTE: End of form designer support code
  35.  
  36.     public static class ClassInfo extends UserControl.ClassInfo
  37.     {
  38.         // TODO: Add your property and event infos here
  39.     }
  40. }
  41.