diff --git a/BUT1/CONTROLE/DEV2.1/Entrainement/SUJETA/EXO1/Sudoku/Menu.class b/BUT1/CONTROLE/DEV2.1/Entrainement/SUJETA/EXO1/Sudoku/Menu.class new file mode 100644 index 0000000..5cdb358 Binary files /dev/null and b/BUT1/CONTROLE/DEV2.1/Entrainement/SUJETA/EXO1/Sudoku/Menu.class differ diff --git a/BUT1/CONTROLE/DEV2.1/Entrainement/SUJETA/EXO1/Sudoku/Nuance.java b/BUT1/CONTROLE/DEV2.1/Entrainement/SUJETA/EXO1/Sudoku/Nuance.java new file mode 100644 index 0000000..e6a0c6e --- /dev/null +++ b/BUT1/CONTROLE/DEV2.1/Entrainement/SUJETA/EXO1/Sudoku/Nuance.java @@ -0,0 +1,9 @@ +import javax.swing.*; +import java.awt.*; + +public class Nuance { + private JPanel[] tableauPanneauNuance; + public Nuance(){ + } + +} \ No newline at end of file diff --git a/BUT1/CONTROLE/DEV2.1/Entrainement/SUJETB/EXO1/Decapite.class b/BUT1/CONTROLE/DEV2.1/Entrainement/SUJETB/EXO1/Decapite.class new file mode 100644 index 0000000..0800153 Binary files /dev/null and b/BUT1/CONTROLE/DEV2.1/Entrainement/SUJETB/EXO1/Decapite.class differ diff --git a/BUT1/CONTROLE/DEV2.1/Entrainement/SUJETB/EXO1/Decapite.java b/BUT1/CONTROLE/DEV2.1/Entrainement/SUJETB/EXO1/Decapite.java new file mode 100644 index 0000000..6541b09 --- /dev/null +++ b/BUT1/CONTROLE/DEV2.1/Entrainement/SUJETB/EXO1/Decapite.java @@ -0,0 +1,26 @@ +import java.awt.GraphicsEnvironment; + +public class Decapite{ + private boolean isHeadless; + private boolean isHeadlessInstance; + private GraphicsEnvironment environnementGraphique; + + public Decapite(){ + this.environnementGraphique = GraphicsEnvironment.getLocalGraphicsEnvironment(); + this.isHeadless = environnementGraphique.isHeadless(); + this.isHeadlessInstance = environnementGraphique.isHeadlessInstance(); + } + + @Override + public String toString(){ + String isHeadlessString = this.isHeadless ? "oui" : "non"; + String isHeadlessInstanceString = this.isHeadlessInstance ? "oui" : "non"; + + return "isHeadless dit : " + isHeadlessString + "\nisHeadlessInstance dit :" + isHeadlessInstanceString; + } + + public static void main(String[] args){ + Decapite test = new Decapite(); + test.toString(); + } +} \ No newline at end of file