DEV_BUT1/DEV2.1/CM1/Exercice4/Debut.java
2023-04-04 14:03:16 +02:00

19 lines
523 B
Java

//MELIANI SAMY (TP1)
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
public class Debut {
public static void main(String[] args) {
JFrame fenetre = new JFrame("");
fenetre.setSize(650,650);
fenetre.setLocation(0, 0);
fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Debut2 appel1 = new Debut2();
Debut3 appel2 = new Debut3(appel1);
fenetre.addMouseListener(appel2);
fenetre.add(appel1);
fenetre.setVisible(true);
}
}