From a7f30467ed598188f3e4a046b23c75ef03a356ad Mon Sep 17 00:00:00 2001 From: Loris BALOCCHI Date: Wed, 5 Jun 2024 18:25:43 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Mise=20=C3=A0=20jour=20du=20gitigno?= =?UTF-8?q?re=20pour=20exclure=20le=20dossier=20"bin/"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 ++- ScriptCompilation.ps1 | 2 +- .../dorfjavatik/main/DorfJavaTik.java | 14 -------------- .../dorfjavatik/view/AffichageTuile.java | 2 +- .../dorfjavatik/view/FenetreDemarrage.java | 2 +- 5 files changed, 5 insertions(+), 18 deletions(-) delete mode 100644 src/com/charpentierbalocchi/dorfjavatik/main/DorfJavaTik.java diff --git a/.gitignore b/.gitignore index fdaccd7..2863447 100644 --- a/.gitignore +++ b/.gitignore @@ -149,4 +149,5 @@ tags ### Java *.class -.jar \ No newline at end of file +.jar +bin/ \ No newline at end of file diff --git a/ScriptCompilation.ps1 b/ScriptCompilation.ps1 index aa1352f..667caa6 100644 --- a/ScriptCompilation.ps1 +++ b/ScriptCompilation.ps1 @@ -15,7 +15,7 @@ if (-not (Test-Path $outputDir)) { Set-Location $projectPath # Compiler tous les fichiers Java en spécifiant le dossier de sortie pour les fichiers .class et en utilisant UTF-8 pour l'encodage -javac -d $outputDir -encoding UTF-8 (Get-ChildItem -Path $projectPath -Recurse -Filter *.java).FullName +# javac -d $outputDir -encoding UTF-8 (Get-ChildItem -Path $projectPath -Recurse -Filter *.java).FullName # Copier les ressources dans le répertoire de sortie if (-not (Test-Path $resourcesOutputDir)) { diff --git a/src/com/charpentierbalocchi/dorfjavatik/main/DorfJavaTik.java b/src/com/charpentierbalocchi/dorfjavatik/main/DorfJavaTik.java deleted file mode 100644 index 0d8da9b..0000000 --- a/src/com/charpentierbalocchi/dorfjavatik/main/DorfJavaTik.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.charpentierbalocchi.dorfjavatik.main; - -import com.charpentierbalocchi.dorfjavatik.view.FenetreDemarrage; - -public class DorfJavaTik { - public static void main(String[] args) { - // Lancer la fenêtre de démarrage - javax.swing.SwingUtilities.invokeLater(new Runnable() { - public void run() { - new FenetreDemarrage(); - } - }); - } -} diff --git a/src/com/charpentierbalocchi/dorfjavatik/view/AffichageTuile.java b/src/com/charpentierbalocchi/dorfjavatik/view/AffichageTuile.java index 0702142..f18e2bb 100644 --- a/src/com/charpentierbalocchi/dorfjavatik/view/AffichageTuile.java +++ b/src/com/charpentierbalocchi/dorfjavatik/view/AffichageTuile.java @@ -13,7 +13,7 @@ public class AffichageTuile extends JPanel { public AffichageTuile(Tuile tuile) { this.tuile = tuile; - setPreferredSize(new Dimension(100, 100)); // Taille préférée du panel pour afficher la tuile + setPreferredSize(new Dimension(125, 125)); // Taille préférée du panel pour afficher la tuile } @Override diff --git a/src/com/charpentierbalocchi/dorfjavatik/view/FenetreDemarrage.java b/src/com/charpentierbalocchi/dorfjavatik/view/FenetreDemarrage.java index ac1e391..0018df9 100644 --- a/src/com/charpentierbalocchi/dorfjavatik/view/FenetreDemarrage.java +++ b/src/com/charpentierbalocchi/dorfjavatik/view/FenetreDemarrage.java @@ -38,7 +38,7 @@ public class FenetreDemarrage extends JFrame { try { int taille = Integer.parseInt(textField.getText()); if (taille == 1) { - String gifPath = "src/com/charpentierbalocchi/dorfjavatik/resources/image.gif"; + String gifPath = "/com/charpentierbalocchi/dorfjavatik/resources/image.gif"; ImageIcon gifIcon = new ImageIcon(gifPath);