private void EditInEditGUIButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_EditInEditGUIButtonActionPerformed
        String newName = editSupplierNameField.getText();
        String address = editSupplierAdressField.getText();
        String contact = editSupplierContactField.getText();
        String other = editSupplierOtherField.getText();
        try {
            int confirm = JOptionPane.showConfirmDialog(this, "Are you sure?");
            if (confirm == 0) {
                th.updateSupplier(supplierToEdit.getName(), newName, address, contact, other);
            }
            EditGUI.dispose();
            loadData();
        } catch (ClassNotFoundException | SQLException e) {
            Logger.getLogger(OfficeWorkerGUI.class.getName()).log(Level.SEVERE, null, e);
        }
    }//GEN-LAST:event_EditInEditGUIButtonActionPerformed