home *** CD-ROM | disk | FTP | other *** search
/ Dynamic HTML Construction Kit / Dynamic HTML Construction Kit.iso / earthlink / nscomm / java40.jar / netscape / softupdate / SymProgressWindow.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-11-03  |  1.9 KB  |  69 lines

  1. package netscape.softupdate;
  2.  
  3. import java.awt.Button;
  4. import java.awt.Component;
  5. import java.awt.Container;
  6. import java.awt.Event;
  7. import java.awt.Font;
  8. import java.awt.Frame;
  9. import java.awt.Label;
  10. import java.awt.LayoutManager;
  11.  
  12. public class SymProgressWindow extends Frame {
  13.    Label status;
  14.    Label progress;
  15.    Button install;
  16.    Button cancel;
  17.    Button info;
  18.  
  19.    void info_Clicked(Event var1) {
  20.    }
  21.  
  22.    void cancel_Clicked(Event var1) {
  23.    }
  24.  
  25.    void install_Clicked(Event var1) {
  26.    }
  27.  
  28.    public SymProgressWindow() {
  29.       ((Container)this).setLayout((LayoutManager)null);
  30.       ((Frame)this).setResizable(false);
  31.       ((Frame)this).addNotify();
  32.       ((Component)this).resize(((Container)this).insets().left + ((Container)this).insets().right + 497, ((Container)this).insets().top + ((Container)this).insets().bottom + 144);
  33.       ((Component)this).setFont(new Font("Dialog", 1, 12));
  34.       this.status = new Label("xxxxxxxxxxxxx");
  35.       this.status.reshape(((Container)this).insets().left + 12, ((Container)this).insets().top + 12, 472, 36);
  36.       this.status.setFont(new Font("Dialog", 1, 12));
  37.       ((Container)this).add(this.status);
  38.       this.progress = new Label("xxxxxxxxxxx");
  39.       this.progress.reshape(((Container)this).insets().left + 12, ((Container)this).insets().top + 48, 472, 40);
  40.       this.progress.setFont(new Font("Courier", 0, 14));
  41.       ((Container)this).add(this.progress);
  42.       this.install = new Button("xxxxxIxxx");
  43.       this.install.reshape(((Container)this).insets().left + 12, ((Container)this).insets().top + 96, 108, 32);
  44.       ((Container)this).add(this.install);
  45.       this.cancel = new Button("xxxxxCxxx");
  46.       this.cancel.reshape(((Container)this).insets().left + 132, ((Container)this).insets().top + 96, 108, 32);
  47.       ((Container)this).add(this.cancel);
  48.       this.info = new Button("xxxxxMxxxxx");
  49.       this.info.reshape(((Container)this).insets().left + 376, ((Container)this).insets().top + 96, 108, 32);
  50.       ((Container)this).add(this.info);
  51.       ((Frame)this).setTitle("Untitled");
  52.    }
  53.  
  54.    public boolean handleEvent(Event var1) {
  55.       if (var1.target == this.install && var1.id == 1001) {
  56.          this.install_Clicked(var1);
  57.          return true;
  58.       } else if (var1.target == this.cancel && var1.id == 1001) {
  59.          this.cancel_Clicked(var1);
  60.          return true;
  61.       } else if (var1.target == this.info && var1.id == 1001) {
  62.          this.info_Clicked(var1);
  63.          return true;
  64.       } else {
  65.          return super.handleEvent(var1);
  66.       }
  67.    }
  68. }
  69.