BUT2/DEV/DEV3.1/TP02_Transitions/Q2Main.java

18 lines
445 B
Java
Raw Normal View History

2023-10-12 16:39:49 +02:00
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class Q2Main{
public static void main(String[] args) {
JFrame fenetre = new JFrame("Q2 Galerie");
fenetre.setSize(300, 200);
fenetre.setLocation(700, 300);
Q2Evenement evenementBouton = new Q2Evenement(fenetre);
fenetre.addMouseListener(evenementBouton);
fenetre.addWindowListener(new Q2ClosingEvent(fenetre));
fenetre.setVisible(true);
}
}