DEV/DEV2.1/TP4/formes.java
2023-03-27 11:21:24 +02:00

22 lines
439 B
Java

import javax.swing.*;
import java.awt.*;
public class formes extends JComponent{
public void horloge(Graphics pinceau)
{
}
public static void main(String[] args) {
DisplayGraphics m = new DisplayGraphics();
JFrame fenetre = new JFrame();
fenetre.add(m);
fenetre.setSize(1000, 1000);
fenetre.setLocation(0, 0);
fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
fenetre.setVisible(true);
}
}