Test
This commit is contained in:
parent
9de7f66a8d
commit
52a96e0d6d
BIN
BUT1/CONTROLE/DEV2.1/Entrainement/SUJETA/EXO1/Sudoku/Menu.class
Normal file
BIN
BUT1/CONTROLE/DEV2.1/Entrainement/SUJETA/EXO1/Sudoku/Menu.class
Normal file
Binary file not shown.
@ -0,0 +1,9 @@
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
|
||||
public class Nuance {
|
||||
private JPanel[] tableauPanneauNuance;
|
||||
public Nuance(){
|
||||
}
|
||||
|
||||
}
|
BIN
BUT1/CONTROLE/DEV2.1/Entrainement/SUJETB/EXO1/Decapite.class
Normal file
BIN
BUT1/CONTROLE/DEV2.1/Entrainement/SUJETB/EXO1/Decapite.class
Normal file
Binary file not shown.
26
BUT1/CONTROLE/DEV2.1/Entrainement/SUJETB/EXO1/Decapite.java
Normal file
26
BUT1/CONTROLE/DEV2.1/Entrainement/SUJETB/EXO1/Decapite.java
Normal file
@ -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();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user