DEV/DEV2.1/TP7:Evenements/Mainattente.java

17 lines
399 B
Java
Raw Normal View History

2023-04-14 11:29:17 +02:00
import java.awt.*;
import javax.swing.*;
public class Mainattente{
public static void main(String[] args) {
JFrame fenetre = new JFrame();
Attente pan = new Attente();
fenetre.setSize(500, 500);
fenetre.setLocation(0, 0);
fenetre.addWindowListener(pan);
fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
fenetre.setContentPane(pan);
fenetre.setVisible(true);
}
}