private void saveJButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_saveJButtonActionPerformed
        System.out.println(titleNameJTextField.getText());
        if(titleNameJTextField.getText().equals("") || itemNoJTextField.getText().equals("")
                || authorJTextField.getText().equals("") || ((JTextField)yearJTextField.getDateEditor().getUiComponent()).getText().equals("")
                || kindJTextField.getText().equals("") || isbnJTextField.getText().equals("")
                ||pagesJTextField.getText().equals(""))
        {
            JOptionPane.showMessageDialog(null,"Retry insert the record by filling all the fields","Something went wrong",JOptionPane.WARNING_MESSAGE);
                    
        }
        else
        {
            insert();
        }
    }//GEN-LAST:event_saveJButtonActionPerformed