APL/APL2.1/TP11/Rectangle/TestRectangle.java

12 lines
358 B
Java
Raw Normal View History

2022-04-12 17:16:22 +02:00
public class TestRectangle {
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);
Rectangle r = new Rectangle();
r.addMouseMotionListener(new Observer());
f.setVisible(true);
}
}