BUT2/DEV/DEV2.1/CM1/Q4_Debut/Q4Main.java
2023-10-23 13:23:36 +02:00

23 lines
547 B
Java

//Wamster Alexis
import javax.swing.*;
import java.awt.*;
public class Q4Main{
public static void main(String[] args) {
JFrame fenetre = new JFrame("Directions");
fenetre.setSize(300, 200);
fenetre.setLocation(700, 300);
fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
fenetre.setBackground(new Color(115,194,251));
ActionSouris detectClic = new ActionSouris(fenetre, 60);
fenetre.addMouseListener(detectClic);
Soleil dessinSoleil = new Soleil(detectClic);
fenetre.add(dessinSoleil);
fenetre.setVisible(true);
}
}