APL/APL2.1/TP11/Volume/TestVolume.java

17 lines
404 B
Java
Raw Normal View History

2022-03-28 17:27:59 +02:00
import java.awt.*;
import javax.swing.*;
public class TestVolume {
public static void main(String[] args) {
JFrame f = new JFrame("Fond");
f.setSize(700, 200);
f.setLocation(100, 100);
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Volume v = new Volume();
v.addMouseWheelListener(v);
f.add(v);
f.setVisible(true);
}
}