import javax.swing.*; import java.awt.*; import java.awt.event.*; public class Volume{ public static void main(String[] args) { Image logoAD=Toolkit.getDefaultToolkit().getImage("logoAD.png"); JFrame fenetre = new JFrame("Volume"); fenetre.setSize(1000,200); fenetre.setLocation(100,500); fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); fenetre.setIconImage(logoAD); Cercle dessinCercle = new Cercle(); volumeListener moletteList = new volumeListener(dessinCercle); fenetre.addMouseWheelListener(moletteList); fenetre.add(dessinCercle); fenetre.setVisible(true); } }