SAE21_2022/Fenetre.java

17 lines
438 B
Java
Raw Normal View History

import javax.swing.*;
public class Fenetre extends JFrame{
protected JFrame fenetre;
public Fenetre() {
this.fenetre = new JFrame("Creation du programme");
this.fenetre.setSize(400, 500);
this.fenetre.setLocationRelativeTo(null); // centre la fenêtre sur l'écran
this.fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
protected void closeFrame() {
dispose();
}
}