From f445f9dbca47c9c25cd6c1da0db219bc02f0c02c Mon Sep 17 00:00:00 2001 From: yolou Date: Sun, 19 Oct 2025 00:34:58 +0200 Subject: [PATCH 1/2] =?UTF-8?q?=20Voici=20la=20base=20de=20donn=C3=A9e=20-?= =?UTF-8?q?-=20Papillon?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- papillon.sql | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 papillon.sql diff --git a/papillon.sql b/papillon.sql new file mode 100644 index 0000000..24e1229 --- /dev/null +++ b/papillon.sql @@ -0,0 +1,9 @@ +-- Table principale : les rappels + +CREATE TABLE rappel ( + id INT AUTO_INCREMENT PRIMARY KEY, + titre VARCHAR(50) NOT NULL, + contenu TEXT, + theme VARCHAR(30), + rang INT +); \ No newline at end of file From cc1eb3200f0429c366d603057f4b35dfd65c62c6 Mon Sep 17 00:00:00 2001 From: sehl Date: Sun, 19 Oct 2025 02:23:00 +0200 Subject: [PATCH 2/2] Crud ajout --- src/fr/iutfbleau/papillon/Crud.java | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/fr/iutfbleau/papillon/Crud.java diff --git a/src/fr/iutfbleau/papillon/Crud.java b/src/fr/iutfbleau/papillon/Crud.java new file mode 100644 index 0000000..a79900a --- /dev/null +++ b/src/fr/iutfbleau/papillon/Crud.java @@ -0,0 +1,29 @@ +// package fr.iutfbleau.papillon; + +import java.util.ArrayList; +import java.util.List; +import javax.swing.*; +import java.awt.*; +import java.awt.event.*; + +public class Crud extends ArrayList implements ActionListener{ + + private JButton btnAdd = new JButton("Ajouter"); + private JButton btnDel = new JButton("Supprimer"); + + public Crud(){ + btnAdd.addActionListener(this); + btnDel.addActionListener(this); + add(btnAdd); + add(btnDel); + } + + public void actionPerformed(ActionEvent e){ + if(e.getSource()==btnAdd){ + System.out.println("test ajouter"); + } + if(e.getSource()==btnDel){ + System.out.println("test supprimer"); + } + } +} \ No newline at end of file