Files
DEV/DEV.2.1/TP/TP8-Evenements/2.Attente/MainAttente.java

17 lines
427 B
Java
Raw Normal View History

import javax.swing.*;
2025-03-05 21:21:31 +01:00
public class MainAttente {
public static void main(String[] args) {
JFrame frame = new JFrame("Attente");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
2025-03-05 21:21:31 +01:00
Attente panneau = new Attente();
frame.add(panneau);
frame.addWindowListener(panneau);
2025-03-05 21:21:31 +01:00
frame.setSize(500, 500);
frame.setLocation(500, 250);
frame.setVisible(true);
}
2025-03-05 21:21:31 +01:00
}