private void jToggleButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jToggleButton1ActionPerformed
        try {
            th.add(jtName.getText(), jtAddress.getText(), jtContact.getText(), jtOther.getText());
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(OfficeWorkerGUI.class.getName()).log(Level.SEVERE, null, ex);
        }

        DefaultTableModel model = (DefaultTableModel) SupplierTable.getModel();
        if (!jtName.getText().trim().equals("")) {
            model.addRow(new Object[]{jtName.getText(), jtAddress.getText(), jtContact.getText(), jtOther.getText()});
            jLashow.setText(model.getRowCount() + "");
             
            AddGUI.dispose();
            loadData();
        } else {
            JOptionPane.showMessageDialog(this, " Suppliers name should not be empty.");
        }
    }//GEN-LAST:event_jToggleButton1ActionPerformed