private void jMenu1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenu1ActionPerformed
        // TODO add your handling code here:
        int index = -1;
        if (tblArticle.getSelectedRow() != -1) {
            if (tblArticle.getSelectedRow() < article.size()) {
                try {
                    for (Article_fabrication a : lesArticle) {
                        if (a.getId_article_fabrication() == article.get(tblArticle.getSelectedRow()).getId_article_fabrication()) {
                            index = lesArticle.indexOf(a);
                        }
                    }
                    if (article.get(tblArticle.getSelectedRow()).getId_article_fabrication() > 0) {
                        DialogueBdd.delete(DELETEARTICLE, article.get(tblArticle.getSelectedRow()).getId_article_fabrication());
                        lesArticle.remove(index);
                    }
                    article.remove(tblArticle.getSelectedRow());
                } catch (Exception ex) {
                    Logger.getLogger(SuivieCommande.class.getName()).log(Level.SEVERE, null, ex);
                }
            } else {
                try {
                    for (Article_fabrication a : lesArticleLoiseau) {
                        if (a.getId_article_fabrication() == articleLoiseau.get(tblArticle.getSelectedRow() - article.size()).getId_article_fabrication()) {
                            index = lesArticleLoiseau.indexOf(a);
                        }
                    }
                    if (articleLoiseau.get(tblArticle.getSelectedRow() - article.size()).getId_article_fabrication() > 0) {
                        DialogueBdd.delete(DELETEARTICLE, articleLoiseau.get(tblArticle.getSelectedRow() - article.size()).getId_article_fabrication());
                        lesArticleLoiseau.remove(index);
                    }
                    articleLoiseau.remove(tblArticle.getSelectedRow() - article.size());
                } catch (Exception ex) {
                    Logger.getLogger(SuivieCommande.class.getName()).log(Level.SEVERE, null, ex);
                }
            }
            afficherArticle();
        } else {
            JOptionPane.showMessageDialog(this, "selectionner une ligne");
        }
    }//GEN-LAST:event_jMenu1ActionPerformed