gridBagConstraints.weightx = 1.0;
gridBagConstraints.weightx = 0.5;
    private void initComponents() {//GEN-BEGIN:initComponents        java.awt.GridBagConstraints gridBagConstraints;        mainTabbedPane = new javax.swing.JTabbedPane();        jSplitPane1 = new javax.swing.JSplitPane();        jPanel1 = new javax.swing.JPanel();        jPanel2 = new javax.swing.JPanel();        stopButton = new javax.swing.JButton();        startButton = new javax.swing.JButton();        jScrollPane1 = new javax.swing.JScrollPane();        listenerTable = new javax.swing.JTable();        jLabel1 = new javax.swing.JLabel();        jLabel2 = new javax.swing.JLabel();        jLabel3 = new javax.swing.JLabel();        jLabel4 = new javax.swing.JLabel();        addressTextField = new javax.swing.JTextField();        portTextField = new javax.swing.JTextField();        baseTextField = new javax.swing.JTextField();        pluginsCheckBox = new javax.swing.JCheckBox();        jLabel5 = new javax.swing.JLabel();        networkComboBox = new javax.swing.JComboBox();        jPanel3 = new javax.swing.JPanel();        jScrollPane2 = new javax.swing.JScrollPane();        messageTable = new javax.swing.JTable();        setLayout(new java.awt.GridBagLayout());        jSplitPane1.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);        jSplitPane1.setResizeWeight(0.9);        jPanel1.setLayout(new java.awt.GridBagLayout());        jPanel2.setLayout(new java.awt.GridBagLayout());        stopButton.setText("Stop");        stopButton.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                stopButtonActionPerformed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 1;        gridBagConstraints.gridy = 0;        gridBagConstraints.anchor = java.awt.GridBagConstraints.SOUTH;        gridBagConstraints.weighty = 1.0;        jPanel2.add(stopButton, gridBagConstraints);        startButton.setText("Start");        startButton.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                startButtonActionPerformed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 1;        gridBagConstraints.gridy = 1;        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;        gridBagConstraints.weighty = 1.0;        jPanel2.add(startButton, gridBagConstraints);        listenerTable.setModel(new javax.swing.table.DefaultTableModel(            new Object [][] {            },            new String [] {            }        ));        jScrollPane1.setViewportView(listenerTable);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 0;        gridBagConstraints.gridheight = 2;        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;        gridBagConstraints.weightx = 1.0;        gridBagConstraints.weighty = 1.0;        jPanel2.add(jScrollPane1, gridBagConstraints);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 0;        gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;        gridBagConstraints.weightx = 1.0;        gridBagConstraints.weighty = 1.0;        jPanel1.add(jPanel2, gridBagConstraints);        jLabel1.setFont(new java.awt.Font("Dialog", 0, 12));        jLabel1.setText("Address");        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 1;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        jPanel1.add(jLabel1, gridBagConstraints);        jLabel2.setFont(new java.awt.Font("Dialog", 0, 12));        jLabel2.setText("Port");        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 1;        gridBagConstraints.gridy = 1;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        jPanel1.add(jLabel2, gridBagConstraints);        jLabel3.setFont(new java.awt.Font("Dialog", 0, 12));        jLabel3.setText("Base URL");        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 2;        gridBagConstraints.gridy = 1;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        jPanel1.add(jLabel3, gridBagConstraints);        jLabel4.setFont(new java.awt.Font("Dialog", 0, 12));        jLabel4.setText("Use Plugins?");        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 4;        gridBagConstraints.gridy = 1;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        jPanel1.add(jLabel4, gridBagConstraints);        addressTextField.setToolTipText("Blank or \"*\" means all interfaces");        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 2;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        gridBagConstraints.weightx = 1.0;        jPanel1.add(addressTextField, gridBagConstraints);        portTextField.setToolTipText("integer between 0 and 65536");        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 1;        gridBagConstraints.gridy = 2;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        gridBagConstraints.weightx = 1.0;        jPanel1.add(portTextField, gridBagConstraints);        baseTextField.setToolTipText("Blank for a conventional proxy, or http://host:port for a reverse proxy.");        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 2;        gridBagConstraints.gridy = 2;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        gridBagConstraints.weightx = 1.0;        jPanel1.add(baseTextField, gridBagConstraints);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 4;        gridBagConstraints.gridy = 2;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        jPanel1.add(pluginsCheckBox, gridBagConstraints);        jLabel5.setFont(new java.awt.Font("Dialog", 0, 12));        jLabel5.setText("Speed");        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 3;        gridBagConstraints.gridy = 1;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        jPanel1.add(jLabel5, gridBagConstraints);        networkComboBox.setFont(new java.awt.Font("Dialog", 0, 12));        networkComboBox.setMinimumSize(new java.awt.Dimension(32, 19));        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 3;        gridBagConstraints.gridy = 2;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        gridBagConstraints.weightx = 1.0;        jPanel1.add(networkComboBox, gridBagConstraints);        jSplitPane1.setLeftComponent(jPanel1);        jPanel3.setLayout(new java.awt.BorderLayout());        messageTable.setBackground(new java.awt.Color(204, 204, 204));        messageTable.setModel(new javax.swing.table.DefaultTableModel(            new Object [][] {            },            new String [] {                "Time", "ID", "Method", "URL", "Status"            }        ));        messageTable.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_LAST_COLUMN);        messageTable.setShowHorizontalLines(false);        messageTable.setShowVerticalLines(false);        jScrollPane2.setViewportView(messageTable);        jPanel3.add(jScrollPane2, java.awt.BorderLayout.CENTER);        jSplitPane1.setRightComponent(jPanel3);        mainTabbedPane.addTab("Listeners", jSplitPane1);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 1;        gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;        gridBagConstraints.weightx = 1.0;        gridBagConstraints.weighty = 1.0;        add(mainTabbedPane, gridBagConstraints);    }//GEN-END:initComponents