gridBagConstraints.weightx = 0.8;
gridBagConstraints.weightx = 1.0;
    private void initComponents() {//GEN-BEGIN:initComponents        java.awt.GridBagConstraints gridBagConstraints;        locationButtonGroup = new javax.swing.ButtonGroup();        mainTabbedPane = new javax.swing.JTabbedPane();        collectionPanel = new javax.swing.JPanel();        specPanel = new javax.swing.JPanel();        cookieRadioButton = new javax.swing.JRadioButton();        bodyRadioButton = new javax.swing.JRadioButton();        jLabel1 = new javax.swing.JLabel();        nameTextField = new javax.swing.JTextField();        jLabel2 = new javax.swing.JLabel();        regexTextField = new javax.swing.JTextField();        jLabel6 = new javax.swing.JLabel();        jLabel9 = new javax.swing.JLabel();        requestComboBox = new javax.swing.JComboBox();        conversationPanel = new javax.swing.JPanel();        conversationSplitPane = new javax.swing.JSplitPane();        actionPanel = new javax.swing.JPanel();        jLabel3 = new javax.swing.JLabel();        sampleSpinner = new javax.swing.JSpinner();        fetchButton = new javax.swing.JButton();        resultPanel = new javax.swing.JPanel();        jLabel4 = new javax.swing.JLabel();        dateTextField = new javax.swing.JTextField();        jLabel5 = new javax.swing.JLabel();        valueTextField = new javax.swing.JTextField();        jLabel7 = new javax.swing.JLabel();        testButton = new javax.swing.JButton();        analysisPanel = new javax.swing.JPanel();        nameComboBox = new javax.swing.JComboBox();        jLabel8 = new javax.swing.JLabel();        jScrollPane1 = new javax.swing.JScrollPane();        idTable = new javax.swing.JTable();        calculateButton = new javax.swing.JButton();        visualisationPanel = new javax.swing.JPanel();        setLayout(new java.awt.BorderLayout());        collectionPanel.setLayout(new java.awt.GridBagLayout());        specPanel.setLayout(new java.awt.GridBagLayout());        cookieRadioButton.setSelected(true);        cookieRadioButton.setText("Cookie");        locationButtonGroup.add(cookieRadioButton);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 2;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;        specPanel.add(cookieRadioButton, gridBagConstraints);        bodyRadioButton.setText("Body");        locationButtonGroup.add(bodyRadioButton);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 3;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;        specPanel.add(bodyRadioButton, gridBagConstraints);        jLabel1.setText("Name");        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 1;        gridBagConstraints.gridy = 2;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4);        specPanel.add(jLabel1, gridBagConstraints);        nameTextField.setText("localhost/ JSESSIONID");        nameTextField.setToolTipText("use 'host.domain/path name' for cookies");        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 2;        gridBagConstraints.gridy = 2;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        gridBagConstraints.weightx = 1.0;        specPanel.add(nameTextField, gridBagConstraints);        jLabel2.setText("Regex");        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 1;        gridBagConstraints.gridy = 3;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4);        specPanel.add(jLabel2, gridBagConstraints);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 2;        gridBagConstraints.gridy = 3;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        gridBagConstraints.weightx = 1.0;        specPanel.add(regexTextField, gridBagConstraints);        jLabel6.setText("Session ID Location");        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 1;        specPanel.add(jLabel6, gridBagConstraints);        jLabel9.setText("Previous Requests :");        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 0;        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4);        specPanel.add(jLabel9, gridBagConstraints);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 1;        gridBagConstraints.gridy = 0;        gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        specPanel.add(requestComboBox, gridBagConstraints);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 0;        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;        gridBagConstraints.weightx = 0.8;        collectionPanel.add(specPanel, gridBagConstraints);        conversationPanel.setLayout(new java.awt.BorderLayout());        conversationSplitPane.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);        conversationSplitPane.setResizeWeight(0.5);        conversationPanel.add(conversationSplitPane, java.awt.BorderLayout.CENTER);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 1;        gridBagConstraints.gridwidth = 2;        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;        gridBagConstraints.weightx = 1.0;        gridBagConstraints.weighty = 1.0;        collectionPanel.add(conversationPanel, gridBagConstraints);        jLabel3.setText("Samples");        actionPanel.add(jLabel3);        sampleSpinner.setMinimumSize(new java.awt.Dimension(61, 24));        sampleSpinner.setPreferredSize(new java.awt.Dimension(61, 24));        actionPanel.add(sampleSpinner);        fetchButton.setText("Fetch");        fetchButton.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                fetchButtonActionPerformed(evt);            }        });        actionPanel.add(fetchButton);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 2;        gridBagConstraints.gridwidth = 2;        gridBagConstraints.weightx = 0.5;        collectionPanel.add(actionPanel, gridBagConstraints);        resultPanel.setLayout(new java.awt.GridBagLayout());        jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);        jLabel4.setText("Date");        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 1;        gridBagConstraints.gridy = 1;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4);        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;        resultPanel.add(jLabel4, gridBagConstraints);        dateTextField.setEditable(false);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 2;        gridBagConstraints.gridy = 1;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        gridBagConstraints.insets = new java.awt.Insets(0, 4, 0, 4);        gridBagConstraints.weightx = 1.0;        resultPanel.add(dateTextField, gridBagConstraints);        jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);        jLabel5.setText("Value");        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 1;        gridBagConstraints.gridy = 2;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4);        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;        resultPanel.add(jLabel5, gridBagConstraints);        valueTextField.setEditable(false);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 2;        gridBagConstraints.gridy = 2;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        gridBagConstraints.insets = new java.awt.Insets(0, 4, 0, 4);        gridBagConstraints.weightx = 1.0;        resultPanel.add(valueTextField, gridBagConstraints);        jLabel7.setText("Test Results");        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 1;        gridBagConstraints.gridy = 0;        gridBagConstraints.gridwidth = 2;        resultPanel.add(jLabel7, gridBagConstraints);        testButton.setText("Test");        testButton.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                testButtonActionPerformed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 0;        gridBagConstraints.gridheight = 3;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4);        resultPanel.add(testButton, gridBagConstraints);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 1;        gridBagConstraints.gridy = 0;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        gridBagConstraints.anchor = java.awt.GridBagConstraints.SOUTHWEST;        gridBagConstraints.weightx = 1.0;        collectionPanel.add(resultPanel, gridBagConstraints);        mainTabbedPane.addTab("Collection", collectionPanel);        analysisPanel.setLayout(new java.awt.GridBagLayout());        nameComboBox.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                nameComboBoxActionPerformed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 1;        gridBagConstraints.gridy = 0;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        gridBagConstraints.weightx = 1.0;        analysisPanel.add(nameComboBox, gridBagConstraints);        jLabel8.setText("Session Identifier");        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 0;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4);        analysisPanel.add(jLabel8, gridBagConstraints);        idTable.setModel(new javax.swing.table.DefaultTableModel(            new Object [][] {            },            new String [] {            }        ));        jScrollPane1.setViewportView(idTable);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 1;        gridBagConstraints.gridwidth = 2;        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;        gridBagConstraints.weightx = 1.0;        gridBagConstraints.weighty = 1.0;        analysisPanel.add(jScrollPane1, gridBagConstraints);        calculateButton.setText("Calculate");        calculateButton.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                calculateButtonActionPerformed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 2;        gridBagConstraints.gridwidth = 2;        analysisPanel.add(calculateButton, gridBagConstraints);        mainTabbedPane.addTab("Analysis", analysisPanel);        mainTabbedPane.addTab("Visualisation", visualisationPanel);        add(mainTabbedPane, java.awt.BorderLayout.CENTER);    }//GEN-END:initComponents