17 lines
438 B
Java
17 lines
438 B
Java
|
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();
|
||
|
}
|
||
|
}
|