home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / owf.zip / template / java1 / java1.java < prev   
Text File  |  1997-04-21  |  660b  |  33 lines

  1. import java.applet.*;
  2. import java.awt.*;
  3.  
  4.  
  5. public class java1 extends Applet
  6. {
  7.     public void init() {
  8.         super.init();
  9.  
  10.         setLayout(null);
  11.         addNotify();
  12.         resize(426,266);
  13.         textField1 = new java.awt.TextField();
  14.         textField1.reshape(60,30,100,20);
  15.         textField1.setFont(new Font("Helvetica", Font.PLAIN, 12));
  16.         textField1.setBackground(new Color(16777215));
  17.         add(textField1);
  18.  
  19.         textField2 = new java.awt.TextField();
  20.         textField2.reshape(60,60,100,20);
  21.         add(textField2);
  22.     }
  23.  
  24.     public boolean handleEvent(Event event) {
  25.         return super.handleEvent(event);
  26.     }
  27.  
  28.     java.awt.TextField textField1;
  29.     java.awt.TextField textField2;
  30. }
  31.  
  32.  
  33.