ajout des boutons non ergo au menu

This commit is contained in:
2024-11-13 16:48:43 +01:00
parent 5fc7b5f37d
commit 8a27da6bd1
7 changed files with 279 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
package Model;
import java.awt.Image;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
public class MenuModel {
private Image imageDeFond;
public MenuModel(String imagePath) {
// Charger l'image de fond
try {
imageDeFond = ImageIO.read(new File("../res/fond-ecran.jpg!d"));
} catch (IOException e) {
e.printStackTrace();
}
}
public Image getImageDeFond() {
return imageDeFond;
}
}