home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2002 June / INTERNET92.ISO / pc / software / windows / building / visual_dhtml / visualdhtmlwin2000.exe / test.___ (.txt) < prev    next >
Encoding:
Java Class File  |  2001-10-19  |  818 b   |  30 lines

  1. import com.ms.wfc.app.Application;
  2. import com.ms.wfc.ui.Control;
  3. import com.ms.wfc.ui.Form;
  4. import com.ms.wfc.ui.HTMLControl;
  5. import com.ms.wfc.ui.Point;
  6.  
  7. public class test extends Form {
  8.    public test() {
  9.       this.initForm();
  10.       ((Form)this).setVisible(true);
  11.    }
  12.  
  13.    private void initForm() {
  14.       ((Control)this).setText("test");
  15.       ((Form)this).setAutoScaleBaseSize(new Point(5, 13));
  16.       ((Control)this).setClientSize(new Point(477, 238));
  17.       ((Form)this).setTopMost(true);
  18.       HTMLControl var1 = new HTMLControl();
  19.       var1.setURL("http://www.opencube.com");
  20.    }
  21.  
  22.    public static void launchWindow() {
  23.       Application.run(new test());
  24.    }
  25.  
  26.    public void dispose() {
  27.       super.dispose();
  28.    }
  29. }
  30.