pack();
    private void initComponents() {//GEN-BEGIN:initComponents        java.awt.GridBagConstraints gridBagConstraints;        jPanel1 = new javax.swing.JPanel();        cancelButton = new javax.swing.JButton();        acceptButton = new javax.swing.JButton();        abortButton = new javax.swing.JButton();        getContentPane().setLayout(new java.awt.GridBagLayout());        setTitle("Intercept");        addWindowListener(new java.awt.event.WindowAdapter() {            public void windowClosing(java.awt.event.WindowEvent evt) {                exitForm(evt);            }        });        jPanel1.setLayout(new java.awt.GridBagLayout());        cancelButton.setText("Cancel edits");        cancelButton.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                cancelButtonActionPerformed(evt);            }        });        jPanel1.add(cancelButton, new java.awt.GridBagConstraints());        acceptButton.setText("Accept edits");        acceptButton.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                acceptButtonActionPerformed(evt);            }        });        jPanel1.add(acceptButton, new java.awt.GridBagConstraints());        abortButton.setText("Abort request");        abortButton.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                abortButtonActionPerformed(evt);            }        });        jPanel1.add(abortButton, new java.awt.GridBagConstraints());        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 2;        gridBagConstraints.anchor = java.awt.GridBagConstraints.SOUTH;        gridBagConstraints.weightx = 1.0;        getContentPane().add(jPanel1, gridBagConstraints);        pack();        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();        setSize(new java.awt.Dimension(400, 500));        setLocation((screenSize.width-400)/2,(screenSize.height-500)/2);    }//GEN-END:initComponents