17 lines
444 B
Java
17 lines
444 B
Java
|
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);
|
||
|
}
|
||
|
}
|