This commit is contained in:
Moncef STITI 2024-03-09 12:31:18 +01:00
parent 9de7f66a8d
commit 52a96e0d6d
4 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,9 @@
import javax.swing.*;
import java.awt.*;
public class Nuance {
private JPanel[] tableauPanneauNuance;
public Nuance(){
}
}

View 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();
}
}