DEV/DEV2.1/TP7:Evenements/Mainfond.java

16 lines
353 B
Java
Raw Permalink Normal View History

2023-04-14 11:29:17 +02:00
import java.awt.*;
import javax.swing.*;
public class Mainfond{
public static void main(String[] args) {
JFrame fenetre = new JFrame();
Fond pan = new Fond();
fenetre.setSize(500, 500);
fenetre.setLocation(0, 0);
fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
fenetre.setContentPane(pan);
fenetre.setVisible(true);
}
}