19 lines
433 B
Java
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);
|
|
}
|
|
} |