home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2001 December / dppcpro1201.iso / Extras / maple / Viewer / WebEQ / MMLViewerInstall.cab / MMLViewerApplet.cab / webeq3 / KeyFrame.class (.txt) < prev    next >
Encoding:
Java Class File  |  2001-05-24  |  1.6 KB  |  34 lines

  1. package webeq3;
  2.  
  3. import java.awt.Button;
  4. import java.awt.Component;
  5. import java.awt.Container;
  6. import java.awt.Dialog;
  7. import java.awt.FlowLayout;
  8. import java.awt.Font;
  9. import java.awt.Frame;
  10. import java.awt.Label;
  11. import java.awt.TextField;
  12.  
  13. public class KeyFrame extends Dialog {
  14.    Label entertext = new Label("Please enter your WebEQ license key:");
  15.    TextField keytext = new TextField(26);
  16.    Button setme = new Button("Enter");
  17.    Key key = null;
  18.    String ktext = "invalid";
  19.  
  20.    public KeyFrame(Frame var1, Key var2) {
  21.       super(var1, true);
  22.       this.key = var2;
  23.       this.setme.addActionListener(new ButtonAdaptor(this));
  24.       this.keytext.addTextListener(new KeyTextAdaptor(this));
  25.       ((Dialog)this).setTitle("Enter your key");
  26.       ((Container)this).setLayout(new FlowLayout(1, 5, 5));
  27.       ((Container)this).setFont(new Font("Courier", 1, 10));
  28.       ((Container)this).add("entertext", this.entertext);
  29.       ((Container)this).add("keytext", this.keytext);
  30.       ((Container)this).add("setme", this.setme);
  31.       ((Component)this).setSize(400, 110);
  32.    }
  33. }
  34.