DEV/DEV2.1/TP7:Evenements/Mainvolume.java

17 lines
424 B
Java
Raw Normal View History

2023-06-07 15:43:38 +02:00
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
public class Mainvolume{
public static void main(String[] args) {
JFrame fenetre = new JFrame();
Volume pan = new Volume();
fenetre.setSize(1000, 150);
fenetre.setLocation(0, 0);
fenetre.addMouseWheelListener(pan);
fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
fenetre.setContentPane(pan);
fenetre.setVisible(true);
}
}