Developpement/23DEV1.1/TPS2/TP01/Evènements/AttTest.java

17 lines
397 B
Java
Raw Permalink Normal View History

2024-12-09 11:53:11 +01:00
import javax.swing.*;
import java.awt.*;
public class AttTest {
public static void main(String[] args)
{
JFrame fenetre = new JFrame();
fenetre.setSize(400, 400);
fenetre.setLocation(100, 100);
fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Attente att = new Attente();
fenetre.add(att);
fenetre.addWindowListener(att);
fenetre.setVisible(true);
}
}