Files
DEV/DEV2.1/CM1/04_Illumination/Fenetre.java
2025-03-19 10:18:41 +01:00

19 lines
433 B
Java

import java.awt.*;
import javax.swing.*;
public class Fenetre extends JFrame {
public Fenetre() {
this.setSize(300, 400);
this.setLocation(100, 100);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setLayout(new GridLayout(1, 1));
JPanel fond = new JPanel();
fond.setBackground(Color.BLACK);
this.add(fond);
GestionMolette molette = new GestionMolette(fond);
this.addMouseWheelListener(molette);
}
}