add(messageSplitPane, java.awt.BorderLayout.CENTER);
gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; add(messageSplitPane, gridBagConstraints);
    private void initComponents() {//GEN-BEGIN:initComponents        java.awt.GridBagConstraints gridBagConstraints;        messageSplitPane = new javax.swing.JSplitPane();        jPanel1 = new javax.swing.JPanel();        jScrollPane1 = new javax.swing.JScrollPane();        headerTable = new javax.swing.JTable();        buttonPanel = new javax.swing.JPanel();        insertButton = new javax.swing.JButton();        deleteButton = new javax.swing.JButton();        setLayout(new java.awt.BorderLayout());        messageSplitPane.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);        messageSplitPane.setOneTouchExpandable(true);        jPanel1.setLayout(new java.awt.GridBagLayout());        jPanel1.setMinimumSize(new java.awt.Dimension(146, 50));        jPanel1.setPreferredSize(new java.awt.Dimension(577, 100));        headerTable.setModel(new javax.swing.table.DefaultTableModel(            new Object [][] {                {null, null},                {null, null},                {null, null},                {null, null}            },            new String [] {                "Name", "Value"            }        ) {            Class[] types = new Class [] {                java.lang.String.class, java.lang.String.class            };            public Class getColumnClass(int columnIndex) {                return types [columnIndex];            }        });        headerTable.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);        jScrollPane1.setViewportView(headerTable);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 0;        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;        gridBagConstraints.weightx = 1.0;        gridBagConstraints.weighty = 1.0;        jPanel1.add(jScrollPane1, gridBagConstraints);        buttonPanel.setLayout(new java.awt.GridBagLayout());        insertButton.setText("Insert");        insertButton.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                insertButtonActionPerformed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 0;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        gridBagConstraints.anchor = java.awt.GridBagConstraints.SOUTH;        buttonPanel.add(insertButton, gridBagConstraints);        deleteButton.setText("Delete");        deleteButton.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                deleteButtonActionPerformed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 1;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;        buttonPanel.add(deleteButton, gridBagConstraints);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 1;        gridBagConstraints.gridy = 0;        gridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL;        jPanel1.add(buttonPanel, gridBagConstraints);        messageSplitPane.setLeftComponent(jPanel1);        add(messageSplitPane, java.awt.BorderLayout.CENTER);    }//GEN-END:initComponents