This commit is contained in:
EmmanuelTiamzon
2025-09-30 09:43:41 +02:00
parent f7de13bc2a
commit 7019a3b7ea
176 changed files with 9458 additions and 149 deletions

View File

@@ -0,0 +1,8 @@
public class Fenetre extends JFrame {
public Fenetre() {
super("SameGame");
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setSize()
}
}

View File

@@ -0,0 +1,6 @@
public class Main {
public static void mmain(String[] args) {
Fenetre fenetre = new Fenetre();
fenetre.setVisible(true);
}
}

View File

@@ -0,0 +1,26 @@
import.javax.swing.*;
import java.awt.*;
public class PaintFenetre extends JPanel {
private Image MenuDebut;
public PaintFenetre() {
super();
this.MenuDebut = Toolkit.getDefaultToolkit().getImage("../image/MenuDebut.jpg");
}
@Override
public void paintComponent(Graphics pinceau) {
Graphics secondPinceau = pinceau.create();
if(this.isOpaque()) {
secondPinceau.setColor(this.getBackground());
secondPinceau.fillRect(0, 0, this.getWidth(), this.getHeight());
}
secondPinceau.clearRect(0, 0, this.getWidth(), this.getHeight());
secondPinceau.drawImage(this.Menu, this.getWidth(), this.getHeight(), this);
}
}