apl/APL2.1/TP9_Evenements(suite)/Volume.java
unknown d9949b5cb0 a
2022-01-14 06:54:18 +01:00

28 lines
614 B
Java

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);
}
}