DEV_BUT1/DEV2.1/TP09/Exo1/Volume.java

17 lines
444 B
Java
Raw Normal View History

2023-04-04 14:03:16 +02:00
import javax.swing.JFrame;
public class Volume {
public static void main(String[] args) {
JFrame fenetre=new JFrame();
fenetre.setSize(500,100);
fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Cercles test=new Cercles();
VolumeAct stiti=new VolumeAct(test);
fenetre.addMouseWheelListener(stiti);
fenetre.add(test);
fenetre.setVisible(true);
}
}