DEV/DEV3.1/TP3:MisesEnPage/Boutons/Main.java

20 lines
381 B
Java
Raw Normal View History

2023-09-20 16:08:25 +02:00
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.lang.*;
public class Main{
static JFrame fenetre = new JFrame();
public static void main(String[] args) {
Boutons pan = new Boutons();
fenetre.setSize(500, 500);
fenetre.setLocation(250, 250);
fenetre.addWindowListener(pan);
fenetre.add(pan);
fenetre.setVisible(true);
}
}