This commit is contained in:
Simon SAYE BABU 2023-09-27 17:28:01 +02:00
parent 0d553d9bfd
commit 4bbe6fa08a
9 changed files with 11 additions and 2 deletions

View File

@ -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

View File

Before

Width:  |  Height:  |  Size: 141 KiB

After

Width:  |  Height:  |  Size: 141 KiB

View File

Before

Width:  |  Height:  |  Size: 127 KiB

After

Width:  |  Height:  |  Size: 127 KiB

View File

Before

Width:  |  Height:  |  Size: 128 KiB

After

Width:  |  Height:  |  Size: 128 KiB

View File

@ -1,14 +1,16 @@
package fr.iutfbleau.but2.projet;
import java.net.URL;
import java.awt.CardLayout; import java.awt.CardLayout;
import java.awt.BorderLayout; import java.awt.BorderLayout;
import java.awt.event.MouseEvent; import java.awt.event.MouseEvent;
import java.awt.event.MouseListener; import java.awt.event.MouseListener;
import javax.swing.*; import javax.swing.*;
public class fenetre extends JFrame implements MouseListener{ public class fenetre extends JFrame implements MouseListener{
int imgN = 0; 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() public fenetre()
{ {

View File

@ -1,3 +1,5 @@
package fr.iutfbleau.but2.projet;
public class galerie { public class galerie {
public static void main(String[] args) { public static void main(String[] args) {
fenetre boum = new fenetre(); fenetre boum = new fenetre();

BIN
projet.jar Normal file

Binary file not shown.