APL/APL2.1/TP9/Volume/Fenetre.java
Vieira Enzo c9760eec09 Me voy por la mañana,
Entregando el buen ron de Binks.
Las olas bailan y yo cabalgo,
Las olas en el viento.
2022-04-05 16:06:30 +02:00

17 lines
490 B
Java

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);
panneau.setBackground (Color.BLACK);
this.add(panneau, BorderLayout.CENTER);
this.pack();
}
}