Files
DEV/DEV.2.1/TP/TP8-Evenements/1.Fond/MainFond.java

18 lines
344 B
Java
Raw Normal View History

2025-03-05 12:29:30 +01:00
import javax.swing.*;
import java.awt.*;
public class MainFond {
public static void main(String[] args) {
JFrame frame = new JFrame("Fond");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
2025-03-05 20:38:02 +01:00
Fond panel = new Fond();
2025-03-05 12:29:30 +01:00
2025-03-05 20:44:11 +01:00
frame.add(panel);
2025-03-05 12:29:30 +01:00
frame.setSize(500,500);
frame.setLocation(500,250);
frame.setVisible(true);
}
2025-03-05 20:38:02 +01:00
}