home *** CD-ROM | disk | FTP | other *** search
- package symantec.descfileconverter;
-
- import java.awt.Button;
- import java.awt.Component;
- import java.awt.Container;
- import java.awt.Dialog;
- import java.awt.Event;
- import java.awt.Frame;
- import java.awt.Label;
- import java.awt.LayoutManager;
- import java.awt.Rectangle;
-
- public class AboutDialog extends Dialog {
- Label label1;
- Button okButton;
- Label label2;
-
- void okButton_Clicked(Event var1) {
- ((Component)this).hide();
- ((Component)this).getParent().requestFocus();
- }
-
- public AboutDialog(Frame var1, boolean var2) {
- super(var1, var2);
- ((Container)this).setLayout((LayoutManager)null);
- ((Dialog)this).addNotify();
- ((Component)this).resize(((Container)this).insets().left + ((Container)this).insets().right + 250, ((Container)this).insets().top + ((Container)this).insets().bottom + 135);
- this.label1 = new Label("Version 1.0");
- this.label1.reshape(((Container)this).insets().left + 96, ((Container)this).insets().top + 24, 62, 17);
- ((Container)this).add(this.label1);
- this.okButton = new Button("OK");
- this.okButton.reshape(((Container)this).insets().left + 96, ((Container)this).insets().top + 84, 66, 27);
- ((Container)this).add(this.okButton);
- this.label2 = new Label("Copyright (c) 1997 Symantec Corporation");
- this.label2.reshape(((Container)this).insets().left + 12, ((Container)this).insets().top + 48, 228, 17);
- ((Container)this).add(this.label2);
- ((Dialog)this).setTitle("About Description File Converter");
- ((Dialog)this).setResizable(false);
- }
-
- public AboutDialog(Frame var1, String var2, boolean var3) {
- this(var1, var3);
- ((Dialog)this).setTitle(var2);
- }
-
- public synchronized void show() {
- Rectangle var1 = ((Component)this).getParent().bounds();
- Rectangle var2 = ((Component)this).bounds();
- ((Component)this).move(var1.x + (var1.width - var2.width) / 2, var1.y + (var1.height - var2.height) / 2);
- super.show();
- }
-
- public boolean handleEvent(Event var1) {
- if (var1.id == 201) {
- ((Component)this).hide();
- return true;
- } else {
- if (var1.target == this.okButton && var1.id == 1001) {
- this.okButton_Clicked(var1);
- }
-
- return super.handleEvent(var1);
- }
- }
- }
-