diff --git a/DEV3.1/Transitions/Galerie/Makefile b/DEV3.1/Transitions/Galerie/Makefile new file mode 100644 index 0000000..58d5151 --- /dev/null +++ b/DEV3.1/Transitions/Galerie/Makefile @@ -0,0 +1,5 @@ +make : + javac -d build -cp build -sourcepath src src/fr/iutfbleau/but2/projet/galerie.java src/fr/iutfbleau//but +2/projet/fenetre.java + + diff --git a/DEV3.1/Transitions/Galerie/build/fr/iutfbleau/but2/projet/fenetre.class b/DEV3.1/Transitions/Galerie/build/fr/iutfbleau/but2/projet/fenetre.class new file mode 100644 index 0000000..f10bbf9 Binary files /dev/null and b/DEV3.1/Transitions/Galerie/build/fr/iutfbleau/but2/projet/fenetre.class differ diff --git a/DEV3.1/Transitions/Galerie/build/fr/iutfbleau/but2/projet/galerie.class b/DEV3.1/Transitions/Galerie/build/fr/iutfbleau/but2/projet/galerie.class new file mode 100644 index 0000000..37adce9 Binary files /dev/null and b/DEV3.1/Transitions/Galerie/build/fr/iutfbleau/but2/projet/galerie.class differ diff --git a/DEV3.1/Transitions/0495Snivy.png b/DEV3.1/Transitions/Galerie/res/0495Snivy.png similarity index 100% rename from DEV3.1/Transitions/0495Snivy.png rename to DEV3.1/Transitions/Galerie/res/0495Snivy.png diff --git a/DEV3.1/Transitions/0498Tepig.png b/DEV3.1/Transitions/Galerie/res/0498Tepig.png similarity index 100% rename from DEV3.1/Transitions/0498Tepig.png rename to DEV3.1/Transitions/Galerie/res/0498Tepig.png diff --git a/DEV3.1/Transitions/0501Oshawott.png b/DEV3.1/Transitions/Galerie/res/0501Oshawott.png similarity index 100% rename from DEV3.1/Transitions/0501Oshawott.png rename to DEV3.1/Transitions/Galerie/res/0501Oshawott.png diff --git a/DEV3.1/Transitions/fenetre.java b/DEV3.1/Transitions/Galerie/src/fr/iutfbleau/but2/projet/fenetre.java similarity index 86% rename from DEV3.1/Transitions/fenetre.java rename to DEV3.1/Transitions/Galerie/src/fr/iutfbleau/but2/projet/fenetre.java index 2cc7bb9..2fc4af0 100644 --- a/DEV3.1/Transitions/fenetre.java +++ b/DEV3.1/Transitions/Galerie/src/fr/iutfbleau/but2/projet/fenetre.java @@ -1,14 +1,16 @@ +package fr.iutfbleau.but2.projet; +import java.net.URL; import java.awt.CardLayout; import java.awt.BorderLayout; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; - import javax.swing.*; public class fenetre extends JFrame implements MouseListener{ int imgN = 0; - String[] imgs = {"DEV3.1/Transitions/0495Snivy.png","DEV3.1/Transitions/0498Tepig.png","DEV3.1/Transitions/0501Oshawott.png"}; + ClassLoader loader = Thread.currentThread().getContextClassLoader(); + URL[] imgs = {loader.getResource("res/0495Snivy.png"),loader.getResource("res/0498Tepig.png"),loader.getResource("res/0501Oshawott.png")}; public fenetre() { diff --git a/DEV3.1/Transitions/galerie.java b/DEV3.1/Transitions/Galerie/src/fr/iutfbleau/but2/projet/galerie.java similarity index 80% rename from DEV3.1/Transitions/galerie.java rename to DEV3.1/Transitions/Galerie/src/fr/iutfbleau/but2/projet/galerie.java index 0dd0ed5..592547b 100644 --- a/DEV3.1/Transitions/galerie.java +++ b/DEV3.1/Transitions/Galerie/src/fr/iutfbleau/but2/projet/galerie.java @@ -1,3 +1,5 @@ +package fr.iutfbleau.but2.projet; + public class galerie { public static void main(String[] args) { fenetre boum = new fenetre(); diff --git a/projet.jar b/projet.jar new file mode 100644 index 0000000..b4481ee Binary files /dev/null and b/projet.jar differ