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

  1. package webeq3;
  2.  
  3. import java.awt.Component;
  4. import java.awt.Container;
  5. import java.awt.Event;
  6. import java.awt.FlowLayout;
  7. import java.awt.Font;
  8. import java.awt.Frame;
  9. import java.awt.Label;
  10.  
  11. public class ExpiredFrame extends Frame {
  12.    public ExpiredFrame() {
  13.       ((Container)this).setFont(new Font("Courier", 1, 10));
  14.       Label var1 = new Label("Your WebEQ license key is Invalid or Expired.");
  15.       ((Container)this).setFont(new Font("Courier", 0, 10));
  16.       Label var2 = new Label("Visit http://www.webeq3.com to");
  17.       Label var3 = new Label("obtain a full, non-expiring Edition, or write");
  18.       Label var4 = new Label("to info@webeq3.com for further assistance.");
  19.       ((Container)this).setLayout(new FlowLayout(1, 5, 5));
  20.       ((Container)this).add(var1);
  21.       ((Container)this).add(var2);
  22.       ((Container)this).add(var3);
  23.       ((Container)this).add(var4);
  24.       ((Frame)this).setTitle("Invalid or Expired");
  25.       ((Component)this).setSize(450, 160);
  26.       ((Component)this).setVisible(true);
  27.    }
  28.  
  29.    public boolean handleEvent(Event var1) {
  30.       if (var1.id == 201) {
  31.          System.exit(0);
  32.       }
  33.  
  34.       return false;
  35.    }
  36. }
  37.