reagencement du code

This commit is contained in:
2025-10-25 20:47:01 +02:00
parent 86b133562e
commit 178580d4f1
2 changed files with 1 additions and 5 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ public class CouleurList extends DefaultListCellRenderer {
/** renvoie la couleur correspondant au nom affiché dans le menu */
public static Color couleurDe(String nom) {
public Color couleurDe(String nom) {
switch (nom) {
case "Bleu": return Color.CYAN;
case "Rouge": return Color.RED;
@@ -104,9 +104,5 @@ public class FenetreAjout extends JFrame {
add(bas, BorderLayout.SOUTH);
}
public Color getCouleurChoix() {
String nom = (String) comboTheme.getSelectedItem();
return CouleurList.couleurDe(nom);
}
}