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 EnvironmentDialog extends Dialog {
- Button button1;
- Label osName;
- Label javaVendor;
- Label javaVersion;
- Label label1;
- Label label2;
- Label label3;
-
- void button1_Clicked(Event var1) {
- ((Component)this).hide();
- ((Component)this).getParent().requestFocus();
- }
-
- public EnvironmentDialog(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.button1 = new Button("OK");
- this.button1.reshape(((Container)this).insets().left + 96, ((Container)this).insets().top + 96, 66, 27);
- ((Container)this).add(this.button1);
- this.osName = new Label("text");
- this.osName.reshape(((Container)this).insets().left + 108, ((Container)this).insets().top + 12, 132, 17);
- ((Container)this).add(this.osName);
- this.javaVendor = new Label("text");
- this.javaVendor.reshape(((Container)this).insets().left + 108, ((Container)this).insets().top + 36, 132, 17);
- ((Container)this).add(this.javaVendor);
- this.javaVersion = new Label("text");
- this.javaVersion.reshape(((Container)this).insets().left + 108, ((Container)this).insets().top + 60, 132, 17);
- ((Container)this).add(this.javaVersion);
- this.label1 = new Label("OS Name:");
- this.label1.reshape(((Container)this).insets().left + 24, ((Container)this).insets().top + 12, 72, 17);
- ((Container)this).add(this.label1);
- this.label2 = new Label("Java Vendor:");
- this.label2.reshape(((Container)this).insets().left + 12, ((Container)this).insets().top + 36, 84, 17);
- ((Container)this).add(this.label2);
- this.label3 = new Label("Java Version:");
- this.label3.reshape(((Container)this).insets().left + 12, ((Container)this).insets().top + 60, 84, 17);
- ((Container)this).add(this.label3);
- ((Dialog)this).setTitle("Environment");
- ((Dialog)this).setResizable(false);
- this.osName.setText(System.getProperty("os.name"));
- this.javaVendor.setText(System.getProperty("java.vendor"));
- this.javaVersion.setText(System.getProperty("java.version"));
- }
-
- public EnvironmentDialog(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.button1 && var1.id == 1001) {
- this.button1_Clicked(var1);
- return true;
- } else {
- return super.handleEvent(var1);
- }
- }
- }
-