2022-04-04 15:31:17 +02:00
|
|
|
import javax.swing.*;
|
|
|
|
import java.awt.*;
|
|
|
|
|
|
|
|
public class Fenetre extends JFrame {
|
|
|
|
public Fenetre (){
|
|
|
|
|
|
|
|
this.setLocation(100, 100);
|
|
|
|
this.setResizable(false);
|
|
|
|
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
|
|
|
Paintvolume draw = new Paintvolume();
|
|
|
|
JPanel panneau = new JPanel();
|
|
|
|
panneau.addMouseWheelListener(new Souris(draw));
|
|
|
|
panneau.add(draw);
|
2022-04-04 15:42:08 +02:00
|
|
|
panneau.setBackground (Color.BLACK);
|
2022-04-04 15:31:17 +02:00
|
|
|
this.add(panneau, BorderLayout.CENTER);
|
|
|
|
this.pack();
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|