implementation des theme
This commit is contained in:
@@ -4,15 +4,15 @@ import java.awt.event.*;
|
|||||||
|
|
||||||
public class FenetreModif extends JFrame implements ActionListener {
|
public class FenetreModif extends JFrame implements ActionListener {
|
||||||
|
|
||||||
private final Main parent; // fenêtre principal (peut être null si tu veux)
|
private final Main parent;
|
||||||
private final Rappel rappel; // rappel à modifier (peut être null si tu veux)
|
private final Rappel rappel;
|
||||||
private GestionRappel ges = new GestionRappel();
|
private GestionRappel ges = new GestionRappel();
|
||||||
|
|
||||||
private final JTextField champTitre;
|
private final JTextField champTitre;
|
||||||
private final JTextArea champContenu;
|
private final JTextArea champContenu;
|
||||||
private Integer[] nombres = {1, 2, 3, 4, 5};
|
private Integer[] nombres = {1, 2, 3, 4, 5};
|
||||||
private JComboBox<Integer> rang = new JComboBox<>(nombres);
|
private JComboBox<Integer> rang = new JComboBox<>(nombres);
|
||||||
// private final JTextField theme;
|
|
||||||
|
|
||||||
private final String[] nomsCouleurs = {"Bleu", "Rouge", "Vert", "Jaune", "Gris"};
|
private final String[] nomsCouleurs = {"Bleu", "Rouge", "Vert", "Jaune", "Gris"};
|
||||||
private final JComboBox<String> comboTheme = new JComboBox<>(nomsCouleurs);
|
private final JComboBox<String> comboTheme = new JComboBox<>(nomsCouleurs);
|
||||||
@@ -22,9 +22,9 @@ public class FenetreModif extends JFrame implements ActionListener {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param parent la fenêtre principale (utilisée pour revenir au même endroit)
|
* @param parent la fenêtre principale (utilisée pour revenir au même endroit)
|
||||||
* @param rappel le rappel à modifier (peut être null si tu veux juste récupérer des valeurs)
|
* @param rappel le rappel à modifier
|
||||||
* @param titre titre initial à afficher (utilisé si rappel==null ou si tu préfères passer la valeur)
|
* @param titre titre initial à afficher
|
||||||
* @param contenu contenu initial à afficher (idem)
|
* @param contenu contenu initial à afficher
|
||||||
*/
|
*/
|
||||||
public FenetreModif(Main parent, Rappel rappel, String titre, String contenu) {
|
public FenetreModif(Main parent, Rappel rappel, String titre, String contenu) {
|
||||||
super("Modifier un rappel");
|
super("Modifier un rappel");
|
||||||
|
|||||||
Reference in New Issue
Block a user