mainSplitPane.setResizeWeight(0.5);
mainSplitPane.setResizeWeight(1.0);
    private void initComponents() {//GEN-BEGIN:initComponents        java.awt.GridBagConstraints gridBagConstraints;        mainSplitPane = new javax.swing.JSplitPane();        mainTabbedPane = new javax.swing.JTabbedPane();        jTabbedPane1 = new javax.swing.JTabbedPane();        jScrollPane1 = new javax.swing.JScrollPane();        stdoutTextArea = new javax.swing.JTextArea();        jScrollPane2 = new javax.swing.JScrollPane();        stderrTextArea = new javax.swing.JTextArea();        mainMenuBar = new javax.swing.JMenuBar();        fileMenu = new javax.swing.JMenu();        newMenuItem = new javax.swing.JMenuItem();        openMenuItem = new javax.swing.JMenuItem();        exitMenuItem = new javax.swing.JMenuItem();        toolsMenu = new javax.swing.JMenu();        proxyMenuItem = new javax.swing.JMenuItem();        optionsMenuItem = new javax.swing.JMenuItem();        cookieJarMenuItem = new javax.swing.JMenuItem();        saveConfigMenuItem = new javax.swing.JMenuItem();        transcoderMenuItem = new javax.swing.JMenuItem();        helpMenu = new javax.swing.JMenu();        aboutMenuItem = new javax.swing.JMenuItem();        debugMenu = new javax.swing.JMenu();        proxyDebugMenu = new javax.swing.JMenu();        proxyDebugRequestCheckBoxMenuItem = new javax.swing.JCheckBoxMenuItem();        proxyDebugResponseCheckBoxMenuItem = new javax.swing.JCheckBoxMenuItem();        manualDebugMenu = new javax.swing.JMenu();        manualDebugRequestCheckBoxMenuItem = new javax.swing.JCheckBoxMenuItem();        manualDebugResponseCheckBoxMenuItem = new javax.swing.JCheckBoxMenuItem();        getContentPane().setLayout(new java.awt.GridBagLayout());        setTitle("WebScarab");        addWindowListener(new java.awt.event.WindowAdapter() {            public void windowClosing(java.awt.event.WindowEvent evt) {                exitForm(evt);            }        });        mainSplitPane.setBorder(null);        mainSplitPane.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);        mainSplitPane.setResizeWeight(0.5);        mainSplitPane.setContinuousLayout(true);        mainSplitPane.setAutoscrolls(true);        mainTabbedPane.setMinimumSize(new java.awt.Dimension(300, 300));        mainTabbedPane.setPreferredSize(new java.awt.Dimension(400, 400));        mainSplitPane.setLeftComponent(mainTabbedPane);        jTabbedPane1.setTabPlacement(javax.swing.JTabbedPane.LEFT);        jTabbedPane1.setMinimumSize(new java.awt.Dimension(146, 40));        jTabbedPane1.setPreferredSize(new java.awt.Dimension(127, 60));        jScrollPane1.setMinimumSize(new java.awt.Dimension(22, 40));        jScrollPane1.setPreferredSize(new java.awt.Dimension(3, 40));        stdoutTextArea.setBackground(new java.awt.Color(204, 204, 204));        stdoutTextArea.setEditable(false);        jScrollPane1.setViewportView(stdoutTextArea);        jTabbedPane1.addTab("stdout", jScrollPane1);        jScrollPane2.setMinimumSize(new java.awt.Dimension(22, 40));        jScrollPane2.setPreferredSize(new java.awt.Dimension(3, 40));        stderrTextArea.setBackground(new java.awt.Color(204, 204, 204));        stderrTextArea.setEditable(false);        jScrollPane2.setViewportView(stderrTextArea);        jTabbedPane1.addTab("stderr", jScrollPane2);        mainSplitPane.setRightComponent(jTabbedPane1);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;        gridBagConstraints.weightx = 1.0;        gridBagConstraints.weighty = 1.0;        getContentPane().add(mainSplitPane, gridBagConstraints);        fileMenu.setMnemonic('F');        fileMenu.setText("File");        newMenuItem.setMnemonic('N');        newMenuItem.setText("New");        newMenuItem.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                newMenuItemActionPerformed(evt);            }        });        fileMenu.add(newMenuItem);        openMenuItem.setMnemonic('O');        openMenuItem.setText("Open");        openMenuItem.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                openMenuItemActionPerformed(evt);            }        });        fileMenu.add(openMenuItem);        exitMenuItem.setMnemonic('X');        exitMenuItem.setText("Exit");        exitMenuItem.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                exitMenuItemActionPerformed(evt);            }        });        fileMenu.add(exitMenuItem);        mainMenuBar.add(fileMenu);        toolsMenu.setMnemonic('T');        toolsMenu.setText("Tools");        proxyMenuItem.setText("Proxies");        proxyMenuItem.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                proxyMenuItemActionPerformed(evt);            }        });        toolsMenu.add(proxyMenuItem);        optionsMenuItem.setText("Options");        toolsMenu.add(optionsMenuItem);        cookieJarMenuItem.setText("Shared Cookies");        cookieJarMenuItem.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                cookieJarMenuItemActionPerformed(evt);            }        });        toolsMenu.add(cookieJarMenuItem);        saveConfigMenuItem.setText("Save Configuration");        saveConfigMenuItem.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                saveConfigMenuItemActionPerformed(evt);            }        });        toolsMenu.add(saveConfigMenuItem);        transcoderMenuItem.setText("Transcoder");        transcoderMenuItem.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                transcoderMenuItemActionPerformed(evt);            }        });        toolsMenu.add(transcoderMenuItem);        mainMenuBar.add(toolsMenu);        helpMenu.setMnemonic('H');        helpMenu.setText("Help");        aboutMenuItem.setMnemonic('A');        aboutMenuItem.setText("About");        aboutMenuItem.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                aboutMenuItemActionPerformed(evt);            }        });        helpMenu.add(aboutMenuItem);        debugMenu.setText("Debug");        proxyDebugMenu.setText("Proxy");        proxyDebugRequestCheckBoxMenuItem.setText("Requests");        proxyDebugRequestCheckBoxMenuItem.setToolTipText("Enable this to write a byte for byte copy to your system TEMP directory");        proxyDebugRequestCheckBoxMenuItem.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                proxyDebugRequestCheckBoxMenuItemActionPerformed(evt);            }        });        proxyDebugMenu.add(proxyDebugRequestCheckBoxMenuItem);        proxyDebugResponseCheckBoxMenuItem.setText("Responses");        proxyDebugResponseCheckBoxMenuItem.setToolTipText("Enable this to write a byte for byte copy to the system TEMP dir");        proxyDebugResponseCheckBoxMenuItem.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                proxyDebugResponseCheckBoxMenuItemActionPerformed(evt);            }        });        proxyDebugMenu.add(proxyDebugResponseCheckBoxMenuItem);        debugMenu.add(proxyDebugMenu);        manualDebugMenu.setText("ManualRequest");        manualDebugRequestCheckBoxMenuItem.setText("Requests");        manualDebugRequestCheckBoxMenuItem.setToolTipText("Enable this to write a byte for byte copy to your system TEMP directory");        manualDebugRequestCheckBoxMenuItem.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                manualDebugRequestCheckBoxMenuItemActionPerformed(evt);            }        });        manualDebugMenu.add(manualDebugRequestCheckBoxMenuItem);        manualDebugResponseCheckBoxMenuItem.setText("Responses");        manualDebugResponseCheckBoxMenuItem.setToolTipText("Enable this to write a byte for byte copy to the system TEMP dir");        manualDebugResponseCheckBoxMenuItem.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                manualDebugResponseCheckBoxMenuItemActionPerformed(evt);            }        });        manualDebugMenu.add(manualDebugResponseCheckBoxMenuItem);        debugMenu.add(manualDebugMenu);        helpMenu.add(debugMenu);        mainMenuBar.add(helpMenu);        setJMenuBar(mainMenuBar);        pack();        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();        setSize(new java.awt.Dimension(800, 600));        setLocation((screenSize.width-800)/2,(screenSize.height-600)/2);    }//GEN-END:initComponents