Example #1
0
    //UPGRADE_TODO: Class 'java.awt.Frame' was converted to 'System.Windows.Forms.Form' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtFrame'"
    public AboutDialog(System.Windows.Forms.Form parent, bool modal)
        : base()
    {
        //UPGRADE_TODO: Constructor 'java.awt.Dialog.Dialog' was converted to 'SupportClass.DialogSupport.SetDialog' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtDialogDialog_javaawtFrame_boolean'"
        SupportClass.DialogSupport.SetDialog(this, parent);

        // This code is automatically generated by Visual Cafe when you add
        // components to the visual environment. It instantiates and initializes
        // the components. To modify the code, only use code syntax that matches
        // what Visual Cafe can generate, or Visual Cafe may be unable to back
        // parse your Java file into its visual environment.

        //{{INIT_CONTROLS
        //UPGRADE_ISSUE: Method 'java.awt.Container.setLayout' was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1000_javaawtContainersetLayout_javaawtLayoutManager'"
        /*
        setLayout(null);*/
        //UPGRADE_TODO: Method 'java.awt.Component.setSize' was converted to 'System.Windows.Forms.Control.Size' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtComponentsetSize_int_int'"
        Size = new System.Drawing.Size(249, 150);
        System.Windows.Forms.Label temp_Label;
        temp_Label = new System.Windows.Forms.Label();
        temp_Label.Text = "A Basic Java  Application";
        label1 = temp_Label;
        label1.SetBounds(40, 35, 166, 21);
        //UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
        Controls.Add(label1);
        System.Windows.Forms.Button temp_Button;
        temp_Button = new System.Windows.Forms.Button();
        temp_Button.Text = "OK";
        okButton = temp_Button;
        okButton.SetBounds(95, 85, 66, 27);
        //UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
        Controls.Add(okButton);
        Text = "About";
        FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
        //}}

        //{{REGISTER_LISTENERS
        SymWindow aSymWindow = new SymWindow(this);
        //UPGRADE_NOTE: Some methods of the 'java.awt.event.WindowListener' class are not used in the .NET Framework. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1308'"
        this.Closing += new System.ComponentModel.CancelEventHandler(aSymWindow.windowClosing);
        SymAction lSymAction = new SymAction(this);
        okButton.Click += new System.EventHandler(lSymAction.actionPerformed);
        SupportClass.CommandManager.CheckCommand(okButton);
        //}}
    }
Example #2
0
    //UPGRADE_TODO: Class 'java.awt.Frame' was converted to 'System.Windows.Forms.Form' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtFrame'"
    public QuitDialog(System.Windows.Forms.Form parent, bool modal)
        : base()
    {
        //UPGRADE_TODO: Constructor 'java.awt.Dialog.Dialog' was converted to 'SupportClass.DialogSupport.SetDialog' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtDialogDialog_javaawtFrame_boolean'"
        SupportClass.DialogSupport.SetDialog(this, parent);

        // This code is automatically generated by Visual Cafe when you add
        // components to the visual environment. It instantiates and initializes
        // the components. To modify the code, only use code syntax that matches
        // what Visual Cafe can generate, or Visual Cafe may be unable to back
        // parse your Java file into its visual environment.
        //{{INIT_CONTROLS
        //UPGRADE_ISSUE: Method 'java.awt.Container.setLayout' was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1000_javaawtContainersetLayout_javaawtLayoutManager'"
        /*
        setLayout(null);*/
        //UPGRADE_TODO: Method 'java.awt.Component.setSize' was converted to 'System.Windows.Forms.Control.Size' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtComponentsetSize_int_int'"
        Size = new System.Drawing.Size(SupportClass.GetInsets(this)[1] + SupportClass.GetInsets(this)[2] + 337, SupportClass.GetInsets(this)[0] + SupportClass.GetInsets(this)[3] + 135);
        System.Windows.Forms.Button temp_Button;
        temp_Button = new System.Windows.Forms.Button();
        temp_Button.Text = " Yes ";
        yesButton = temp_Button;
        yesButton.SetBounds(SupportClass.GetInsets(this)[1] + 72, SupportClass.GetInsets(this)[0] + 80, 79, 22);
        //UPGRADE_NOTE: If the given Font Name does not exist, a default Font instance is created. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1075'"
        yesButton.Font = new System.Drawing.Font("Dialog", 12, System.Drawing.FontStyle.Bold);
        //UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
        Controls.Add(yesButton);
        System.Windows.Forms.Button temp_Button2;
        temp_Button2 = new System.Windows.Forms.Button();
        temp_Button2.Text = "  No  ";
        noButton = temp_Button2;
        noButton.SetBounds(SupportClass.GetInsets(this)[1] + 185, SupportClass.GetInsets(this)[0] + 80, 79, 22);
        //UPGRADE_NOTE: If the given Font Name does not exist, a default Font instance is created. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1075'"
        noButton.Font = new System.Drawing.Font("Dialog", 12, System.Drawing.FontStyle.Bold);
        //UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
        Controls.Add(noButton);
        System.Windows.Forms.Label temp_Label;
        //UPGRADE_TODO: The equivalent in .NET for field 'java.awt.Label.CENTER' may return a different value. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1043'"
        temp_Label = new System.Windows.Forms.Label();
        temp_Label.Text = "Do you really want to quit?";
        temp_Label.TextAlign = (System.Drawing.ContentAlignment) System.Drawing.ContentAlignment.MiddleCenter;
        label1 = temp_Label;
        label1.SetBounds(78, 33, 180, 23);
        //UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
        Controls.Add(label1);
        Text = "A Basic Application - Quit";
        FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
        //}}

        //{{REGISTER_LISTENERS
        SymWindow aSymWindow = new SymWindow(this);
        //UPGRADE_NOTE: Some methods of the 'java.awt.event.WindowListener' class are not used in the .NET Framework. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1308'"
        this.Closing += new System.ComponentModel.CancelEventHandler(aSymWindow.windowClosing);
        SymAction lSymAction = new SymAction(this);
        noButton.Click += new System.EventHandler(lSymAction.actionPerformed);
        SupportClass.CommandManager.CheckCommand(noButton);
        yesButton.Click += new System.EventHandler(lSymAction.actionPerformed);
        SupportClass.CommandManager.CheckCommand(yesButton);
        //}}
    }
Example #3
0
    public Frame1()
    {
        // This code is automatically generated by Visual Cafe when you add
        // components to the visual environment. It instantiates and initializes
        // the components. To modify the code, only use code syntax that matches
        // what Visual Cafe can generate, or Visual Cafe may be unable to back
        // parse your Java file into its visual environment.

        //{{INIT_CONTROLS
        //UPGRADE_ISSUE: Method 'java.awt.Container.setLayout' was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1000_javaawtContainersetLayout_javaawtLayoutManager'"
        /*
        setLayout(null);*/
        //UPGRADE_TODO: Method 'java.awt.Component.setVisible' was converted to 'System.Windows.Forms.Control.Visible' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtComponentsetVisible_boolean'"
        //UPGRADE_TODO: 'System.Windows.Forms.Application.Run' must be called to start a main form. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1135'"
        Visible = false;
        //UPGRADE_TODO: Method 'java.awt.Component.setSize' was converted to 'System.Windows.Forms.Control.Size' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtComponentsetSize_int_int'"
        Size = new System.Drawing.Size(SupportClass.GetInsets(this)[1] + SupportClass.GetInsets(this)[2] + 755, SupportClass.GetInsets(this)[0] + SupportClass.GetInsets(this)[3] + 589);
        //UPGRADE_TODO: Constructor 'java.awt.Color.Color' was converted to 'System.Drawing.Color.FromArgb' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtColorColor_int'"
        ForeColor = System.Drawing.Color.FromArgb(0);
        openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
        //UPGRADE_ISSUE: Method 'java.awt.FileDialog.setMode' was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1000_javaawtFileDialogsetMode_int'"
        openFileDialog1.setMode(0);
        openFileDialog1.Title = "Open";
        //$$ openFileDialog1.move(40,277);
        button1 = new System.Windows.Forms.Button();
        SupportClass.CommandManager.SetCommand(button1, "button");
        button1.Text = "Insert";
        button1.SetBounds(SupportClass.GetInsets(this)[1] + 696, SupportClass.GetInsets(this)[0] + 408, 50, 26);
        //UPGRADE_TODO: Constructor 'java.awt.Color.Color' was converted to 'System.Drawing.Color.FromArgb' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtColorColor_int'"
        button1.BackColor = System.Drawing.Color.FromArgb(12632256);
        //UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
        Controls.Add(button1);
        button2 = new System.Windows.Forms.Button();
        SupportClass.CommandManager.SetCommand(button2, "button");
        button2.Text = "Delete";
        button2.SetBounds(SupportClass.GetInsets(this)[1] + 696, SupportClass.GetInsets(this)[0] + 444, 50, 25);
        //UPGRADE_TODO: Constructor 'java.awt.Color.Color' was converted to 'System.Drawing.Color.FromArgb' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtColorColor_int'"
        button2.BackColor = System.Drawing.Color.FromArgb(12632256);
        //UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
        Controls.Add(button2);
        button3 = new System.Windows.Forms.Button();
        SupportClass.CommandManager.SetCommand(button3, "button");
        button3.Text = "Search";
        button3.SetBounds(SupportClass.GetInsets(this)[1] + 696, SupportClass.GetInsets(this)[0] + 480, 49, 25);
        //UPGRADE_TODO: Constructor 'java.awt.Color.Color' was converted to 'System.Drawing.Color.FromArgb' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtColorColor_int'"
        button3.BackColor = System.Drawing.Color.FromArgb(12632256);
        //UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
        Controls.Add(button3);
        button4 = new System.Windows.Forms.Button();
        SupportClass.CommandManager.SetCommand(button4, "button");
        button4.Text = "Pack";
        button4.SetBounds(SupportClass.GetInsets(this)[1] + 696, SupportClass.GetInsets(this)[0] + 516, 49, 26);
        //UPGRADE_TODO: Constructor 'java.awt.Color.Color' was converted to 'System.Drawing.Color.FromArgb' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtColorColor_int'"
        button4.BackColor = System.Drawing.Color.FromArgb(12632256);
        //UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
        Controls.Add(button4);
        button5 = new System.Windows.Forms.Button();
        SupportClass.CommandManager.SetCommand(button5, "button");
        button5.Text = "Exit";
        button5.SetBounds(SupportClass.GetInsets(this)[1] + 696, SupportClass.GetInsets(this)[0] + 552, 49, 26);
        //UPGRADE_TODO: Constructor 'java.awt.Color.Color' was converted to 'System.Drawing.Color.FromArgb' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtColorColor_int'"
        button5.BackColor = System.Drawing.Color.FromArgb(12632256);
        //UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
        Controls.Add(button5);
        textField1 = new System.Windows.Forms.TextBox();
        textField1.SetBounds(SupportClass.GetInsets(this)[1] + 612, SupportClass.GetInsets(this)[0] + 408, 74, 26);
        //UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
        Controls.Add(textField1);
        textField2 = new System.Windows.Forms.TextBox();
        textField2.SetBounds(SupportClass.GetInsets(this)[1] + 612, SupportClass.GetInsets(this)[0] + 444, 73, 25);
        //UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
        Controls.Add(textField2);
        textField3 = new System.Windows.Forms.TextBox();
        textField3.SetBounds(SupportClass.GetInsets(this)[1] + 612, SupportClass.GetInsets(this)[0] + 480, 74, 25);
        //UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
        Controls.Add(textField3);
        textField4 = new System.Windows.Forms.TextBox();
        textField4.SetBounds(SupportClass.GetInsets(this)[1] + 612, SupportClass.GetInsets(this)[0] + 516, 73, 25);
        //UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
        Controls.Add(textField4);
        textField5 = new System.Windows.Forms.TextBox();
        textField5.SetBounds(SupportClass.GetInsets(this)[1] + 612, SupportClass.GetInsets(this)[0] + 552, 72, 25);
        //UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
        Controls.Add(textField5);
        System.Windows.Forms.Label temp_Label;
        temp_Label = new System.Windows.Forms.Label();
        temp_Label.Text = "Low X";
        label1 = temp_Label;
        label1.SetBounds(SupportClass.GetInsets(this)[1] + 564, SupportClass.GetInsets(this)[0] + 408, 38, 25);
        //UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
        Controls.Add(label1);
        System.Windows.Forms.Label temp_Label2;
        temp_Label2 = new System.Windows.Forms.Label();
        temp_Label2.Text = "Low Y";
        label2 = temp_Label2;
        label2.SetBounds(SupportClass.GetInsets(this)[1] + 564, SupportClass.GetInsets(this)[0] + 444, 36, 23);
        //UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
        Controls.Add(label2);
        System.Windows.Forms.Label temp_Label3;
        temp_Label3 = new System.Windows.Forms.Label();
        temp_Label3.Text = "High X";
        label3 = temp_Label3;
        label3.SetBounds(SupportClass.GetInsets(this)[1] + 564, SupportClass.GetInsets(this)[0] + 480, 39, 25);
        //UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
        Controls.Add(label3);
        System.Windows.Forms.Label temp_Label4;
        temp_Label4 = new System.Windows.Forms.Label();
        temp_Label4.Text = "High Y";
        label4 = temp_Label4;
        label4.SetBounds(SupportClass.GetInsets(this)[1] + 564, SupportClass.GetInsets(this)[0] + 516, 37, 27);
        //UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
        Controls.Add(label4);
        System.Windows.Forms.Label temp_Label5;
        temp_Label5 = new System.Windows.Forms.Label();
        temp_Label5.Text = "OID";
        label5 = temp_Label5;
        label5.SetBounds(SupportClass.GetInsets(this)[1] + 564, SupportClass.GetInsets(this)[0] + 552, 38, 25);
        //UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
        Controls.Add(label5);
        System.Windows.Forms.TextBox temp_TextBox;
        //UPGRADE_TODO: The equivalent in .NET for field 'java.awt.TextArea.SCROLLBARS_VERTICAL_ONLY' may return a different value. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1043'";;
        temp_TextBox = new System.Windows.Forms.TextBox();
        temp_TextBox.Text = "";
        temp_TextBox.WordWrap = false;
        temp_TextBox.ScrollBars = (System.Windows.Forms.ScrollBars) System.Windows.Forms.ScrollBars.Vertical;
        temp_TextBox.Multiline = true;
        textArea1 = temp_TextBox;
        textArea1.ReadOnly = !false;
        textArea1.SetBounds(SupportClass.GetInsets(this)[1] + 552, SupportClass.GetInsets(this)[0] + 0, 204, 398);
        //UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
        Controls.Add(textArea1);
        //UPGRADE_ISSUE: Class hierarchy differences between 'java.awt.Panel' and 'System.Windows.Forms.Panel' may cause compilation errors. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1186'"
        panel1 = new System.Windows.Forms.Panel();
        //UPGRADE_ISSUE: Method 'java.awt.Container.setLayout' was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1000_javaawtContainersetLayout_javaawtLayoutManager'"
        /*
        panel1.setLayout(null);*/
        panel1.SetBounds(SupportClass.GetInsets(this)[1] + 0, SupportClass.GetInsets(this)[0] + 0, 553, 589);
        //UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
        Controls.Add(panel1);
        Text = "A Basic Application";
        //}}

        //{{INIT_MENUS
        mainMenuBar = new System.Windows.Forms.MainMenu();
        menu1 = new System.Windows.Forms.MenuItem("File");
        miNew = new System.Windows.Forms.MenuItem("New");
        menu1.MenuItems.Add(miNew);
        miOpen = new System.Windows.Forms.MenuItem("Open...");
        menu1.MenuItems.Add(miOpen);
        miSave = new System.Windows.Forms.MenuItem("Save");
        menu1.MenuItems.Add(miSave);
        miSaveAs = new System.Windows.Forms.MenuItem("Save As...");
        menu1.MenuItems.Add(miSaveAs);
        menu1.MenuItems.Add(new System.Windows.Forms.MenuItem("-"));
        miExit = new System.Windows.Forms.MenuItem("Exit");
        menu1.MenuItems.Add(miExit);
        //mainMenuBar.add(menu1);
        menu2 = new System.Windows.Forms.MenuItem("Edit");
        miCut = new System.Windows.Forms.MenuItem("Cut");
        menu2.MenuItems.Add(miCut);
        miCopy = new System.Windows.Forms.MenuItem("Copy");
        menu2.MenuItems.Add(miCopy);
        miPaste = new System.Windows.Forms.MenuItem("Paste");
        menu2.MenuItems.Add(miPaste);
        //mainMenuBar.add(menu2);
        menu3 = new System.Windows.Forms.MenuItem("Help");
        //UPGRADE_ISSUE: Method 'java.awt.MenuBar.setHelpMenu' was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1000_javaawtMenuBarsetHelpMenu_javaawtMenu'"
        mainMenuBar.setHelpMenu(menu3);
        miAbout = new System.Windows.Forms.MenuItem("About..");
        menu3.MenuItems.Add(miAbout);
        //mainMenuBar.add(menu3);
        Menu = mainMenuBar;
        //$$ mainMenuBar.move(4,277);
        //}}

        //{{REGISTER_LISTENERS
        SymWindow aSymWindow = new SymWindow(this);
        //UPGRADE_NOTE: Some methods of the 'java.awt.event.WindowListener' class are not used in the .NET Framework. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1308'"
        this.Closing += new System.ComponentModel.CancelEventHandler(aSymWindow.windowClosing);
        SymAction lSymAction = new SymAction(this);
        miOpen.Click += new System.EventHandler(lSymAction.actionPerformed);
        SupportClass.CommandManager.CheckCommand(miOpen);
        miAbout.Click += new System.EventHandler(lSymAction.actionPerformed);
        SupportClass.CommandManager.CheckCommand(miAbout);
        miExit.Click += new System.EventHandler(lSymAction.actionPerformed);
        SupportClass.CommandManager.CheckCommand(miExit);
        SymMouse aSymMouse = new SymMouse(this);
        button4.MouseDown += new System.Windows.Forms.MouseEventHandler(Frame1.mouseDown);
        button4.MouseDown += new System.Windows.Forms.MouseEventHandler(aSymMouse.mousePressed);
        button5.MouseDown += new System.Windows.Forms.MouseEventHandler(Frame1.mouseDown);
        button5.MouseDown += new System.Windows.Forms.MouseEventHandler(aSymMouse.mousePressed);
        button1.MouseDown += new System.Windows.Forms.MouseEventHandler(Frame1.mouseDown);
        button1.MouseDown += new System.Windows.Forms.MouseEventHandler(aSymMouse.mousePressed);
        button2.MouseDown += new System.Windows.Forms.MouseEventHandler(Frame1.mouseDown);
        button2.MouseDown += new System.Windows.Forms.MouseEventHandler(aSymMouse.mousePressed);
        button3.MouseDown += new System.Windows.Forms.MouseEventHandler(Frame1.mouseDown);
        button3.MouseDown += new System.Windows.Forms.MouseEventHandler(aSymMouse.mousePressed);
        //}}
    }