diff --git a/DEV3.1/TP1:BasesDeDonnees/Vote.java b/DEV3.1/TP1:BasesDeDonnees/Vote.java new file mode 100644 index 0000000..5704311 --- /dev/null +++ b/DEV3.1/TP1:BasesDeDonnees/Vote.java @@ -0,0 +1,45 @@ +import org.mariadb.jdbc.*; +import java.sql.*; + +public class Vote{ + public static void main(String[] args) { + int total = 0; + try{ + Class.forName("org.mariadb.jdbc.Driver"); + try{ + Connection cnx = DriverManager.getConnection( + "jdbc:mariadb://dwarves.iut-fbleau.fr/pourchot", + "pourchot", "supermotdepasseultrafort"); + try{ + PreparedStatement pst = cnx.prepareStatement( + "SELECT p1.nom, p2.nom, v.Points FROM Vote v " + +"LEFT JOIN Pays p1 ON v.Competiteur = p1.Id " + +"LEFT JOIN Pays p2 ON v.Votants = p2.Id " + +"WHERE p1.nom = (?);"); + pst.setString(1, args[0]); + ResultSet rs = pst.executeQuery(); + while(rs.next()) { + System.out.println(rs.getString(2)+" "+" "+rs.getInt(3)); + total+=rs.getInt(3); + } + System.out.println(" ---"); + System.out.println("Total "+total); + rs.close(); + pst.close(); + cnx.close(); + //System.out.println(rs.isClosed()); + //System.out.println(pst.isClosed()); + //System.out.println(cnx.isClosed()); + } catch (SQLException e){ + System.err.println("Requête échoué"); + cnx.close(); + //System.out.println(cnx.isClosed()); + } + } catch (SQLException e){ + System.err.println("Connexion à la base de donnée échouée"); + } + } catch (ClassNotFoundException e){ + System.err.println("Mauvais classpath"); + } + } +} \ No newline at end of file diff --git a/DEV3.1/TP2:Transitions/Changement.class b/DEV3.1/TP2:Transitions/Changement.class deleted file mode 100644 index 5c8e05d..0000000 Binary files a/DEV3.1/TP2:Transitions/Changement.class and /dev/null differ diff --git a/DEV3.1/TP2:Transitions/Confirmation/Changement.class b/DEV3.1/TP2:Transitions/Confirmation/Changement.class new file mode 100644 index 0000000..8169958 Binary files /dev/null and b/DEV3.1/TP2:Transitions/Confirmation/Changement.class differ diff --git a/DEV3.1/TP2:Transitions/Changement.java b/DEV3.1/TP2:Transitions/Confirmation/Changement.java similarity index 70% rename from DEV3.1/TP2:Transitions/Changement.java rename to DEV3.1/TP2:Transitions/Confirmation/Changement.java index f6accfa..2b4d580 100644 --- a/DEV3.1/TP2:Transitions/Changement.java +++ b/DEV3.1/TP2:Transitions/Confirmation/Changement.java @@ -9,8 +9,8 @@ public class Changement{ InputStream file = loader.getResourceAsStream("Main.java"); InputStream file2 = loader.getResourceAsStream("Listeimage.java"); static public void fenetreCliquer(int LR){ - Main.fenetre.remove(Main.pan); - Main.pan.remove(Listeimage.liste[Listeimage.index]); + Main.fenetre.remove(Main.fenetre.pan); + Main.fenetre.pan.remove(Listeimage.liste[Listeimage.index]); if (LR==1){ Listeimage.index=Listeimage.index+1; if(Listeimage.index>4){ @@ -22,8 +22,8 @@ public class Changement{ Listeimage.index=4; } } - Main.pan.add(Listeimage.liste[Listeimage.index]); - Main.fenetre.setContentPane(Main.pan); - Main.fenetre.repaint(); + Main.fenetre.pan.add(Listeimage.liste[Listeimage.index]); + Main.fenetre.setContentPane(Main.fenetre.pan); + Main.fenetre.revalidate(); } } \ No newline at end of file diff --git a/DEV3.1/TP2:Transitions/Confirmation/Fenetre$1.class b/DEV3.1/TP2:Transitions/Confirmation/Fenetre$1.class new file mode 100644 index 0000000..6bcd67a Binary files /dev/null and b/DEV3.1/TP2:Transitions/Confirmation/Fenetre$1.class differ diff --git a/DEV3.1/TP2:Transitions/Confirmation/Fenetre.class b/DEV3.1/TP2:Transitions/Confirmation/Fenetre.class new file mode 100644 index 0000000..490b616 Binary files /dev/null and b/DEV3.1/TP2:Transitions/Confirmation/Fenetre.class differ diff --git a/DEV3.1/TP2:Transitions/Confirmation/Fenetre.java b/DEV3.1/TP2:Transitions/Confirmation/Fenetre.java new file mode 100644 index 0000000..014c756 --- /dev/null +++ b/DEV3.1/TP2:Transitions/Confirmation/Fenetre.java @@ -0,0 +1,45 @@ +import java.awt.*; +import javax.swing.*; +import java.awt.event.*; +import java.util.*; +import java.io.*; + +public class Fenetre extends JFrame{ + + static Galerie pan = new Galerie(); + private ClassLoader loader = Thread.currentThread().getContextClassLoader(); + private InputStream file = loader.getResourceAsStream("Galerie.java"); + + public Fenetre(){ + pan.add(Listeimage.liste[Listeimage.index]); + this.setSize(250, 250); + this.setLocation(500, 500); + this.addMouseListener(pan); + this.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); + this.setContentPane(pan); + + addWindowListener(new WindowAdapter() + { + public void windowClosing(WindowEvent e) + { + if(fermerFenetre()==true){ + dispose(); + System.exit(0); + } + return; + } + }); + } + + private boolean fermerFenetre() { + JOptionPane option = new JOptionPane("Voulez-vous vraiment quitter ce programme ?", JOptionPane.QUESTION_MESSAGE, JOptionPane.YES_NO_OPTION); + JDialog confirmation = option.createDialog(this, "Confirmation de fermeture"); + + confirmation.setSize(400, 120); + confirmation.setLocation(450, 550); + confirmation.setVisible(true); + int result = (int) option.getValue(); + confirmation.dispose(); + return result == JOptionPane.YES_OPTION; + } +} diff --git a/DEV3.1/TP2:Transitions/Confirmation/Galerie.class b/DEV3.1/TP2:Transitions/Confirmation/Galerie.class new file mode 100644 index 0000000..0955b20 Binary files /dev/null and b/DEV3.1/TP2:Transitions/Confirmation/Galerie.class differ diff --git a/DEV3.1/TP2:Transitions/Galerie.java b/DEV3.1/TP2:Transitions/Confirmation/Galerie.java similarity index 100% rename from DEV3.1/TP2:Transitions/Galerie.java rename to DEV3.1/TP2:Transitions/Confirmation/Galerie.java diff --git a/DEV3.1/TP2:Transitions/Confirmation/Listeimage.class b/DEV3.1/TP2:Transitions/Confirmation/Listeimage.class new file mode 100644 index 0000000..2e7eef4 Binary files /dev/null and b/DEV3.1/TP2:Transitions/Confirmation/Listeimage.class differ diff --git a/DEV3.1/TP2:Transitions/Listeimage.java b/DEV3.1/TP2:Transitions/Confirmation/Listeimage.java similarity index 100% rename from DEV3.1/TP2:Transitions/Listeimage.java rename to DEV3.1/TP2:Transitions/Confirmation/Listeimage.java diff --git a/DEV3.1/TP2:Transitions/Confirmation/Main.class b/DEV3.1/TP2:Transitions/Confirmation/Main.class new file mode 100644 index 0000000..1d92664 Binary files /dev/null and b/DEV3.1/TP2:Transitions/Confirmation/Main.class differ diff --git a/DEV3.1/TP2:Transitions/Confirmation/Main.java b/DEV3.1/TP2:Transitions/Confirmation/Main.java new file mode 100644 index 0000000..ba87152 --- /dev/null +++ b/DEV3.1/TP2:Transitions/Confirmation/Main.java @@ -0,0 +1,14 @@ +import java.awt.*; +import javax.swing.*; +import java.util.*; +import java.io.*; + +public class Main{ + + static Fenetre fenetre = new Fenetre(); + + public static void main(String[] args) { + + fenetre.setVisible(true); + } +} \ No newline at end of file diff --git a/DEV3.1/TP2:Transitions/img/image1.jpg b/DEV3.1/TP2:Transitions/Confirmation/img/image1.jpg similarity index 100% rename from DEV3.1/TP2:Transitions/img/image1.jpg rename to DEV3.1/TP2:Transitions/Confirmation/img/image1.jpg diff --git a/DEV3.1/TP2:Transitions/img/image2.jpg b/DEV3.1/TP2:Transitions/Confirmation/img/image2.jpg similarity index 100% rename from DEV3.1/TP2:Transitions/img/image2.jpg rename to DEV3.1/TP2:Transitions/Confirmation/img/image2.jpg diff --git a/DEV3.1/TP2:Transitions/img/image3.jpg b/DEV3.1/TP2:Transitions/Confirmation/img/image3.jpg similarity index 100% rename from DEV3.1/TP2:Transitions/img/image3.jpg rename to DEV3.1/TP2:Transitions/Confirmation/img/image3.jpg diff --git a/DEV3.1/TP2:Transitions/img/image4.jpg b/DEV3.1/TP2:Transitions/Confirmation/img/image4.jpg similarity index 100% rename from DEV3.1/TP2:Transitions/img/image4.jpg rename to DEV3.1/TP2:Transitions/Confirmation/img/image4.jpg diff --git a/DEV3.1/TP2:Transitions/img/image5.jpg b/DEV3.1/TP2:Transitions/Confirmation/img/image5.jpg similarity index 100% rename from DEV3.1/TP2:Transitions/img/image5.jpg rename to DEV3.1/TP2:Transitions/Confirmation/img/image5.jpg diff --git a/DEV3.1/TP2:Transitions/Galerie.class b/DEV3.1/TP2:Transitions/Galerie.class deleted file mode 100644 index fb14a7f..0000000 Binary files a/DEV3.1/TP2:Transitions/Galerie.class and /dev/null differ diff --git a/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/Changement.class b/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/Changement.class new file mode 100644 index 0000000..c3b306d Binary files /dev/null and b/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/Changement.class differ diff --git a/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/Changement.java b/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/Changement.java new file mode 100644 index 0000000..8aeb448 --- /dev/null +++ b/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/Changement.java @@ -0,0 +1,19 @@ +import java.awt.*; +import javax.swing.*; +import java.util.*; +import java.io.*; + +public class Changement{ + + ClassLoader loader = Thread.currentThread().getContextClassLoader(); + InputStream file = loader.getResourceAsStream("Main.java"); + InputStream file2 = loader.getResourceAsStream("Listeimage.java"); + static public void fenetreCliquer(int LR){ + if (LR==1){ + Main.fenetre.pan.card.next(Main.fenetre.pan); + }else { + Main.fenetre.pan.card.previous(Main.fenetre.pan); + } + Main.fenetre.revalidate(); + } +} \ No newline at end of file diff --git a/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/Fenetre.class b/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/Fenetre.class new file mode 100644 index 0000000..71165ad Binary files /dev/null and b/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/Fenetre.class differ diff --git a/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/Fenetre.java b/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/Fenetre.java new file mode 100644 index 0000000..623d21e --- /dev/null +++ b/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/Fenetre.java @@ -0,0 +1,23 @@ +import java.awt.*; +import javax.swing.*; +import java.util.*; +import java.io.*; + +public class Fenetre extends JFrame{ + + static Galerie pan = new Galerie(); + private ClassLoader loader = Thread.currentThread().getContextClassLoader(); + private InputStream file = loader.getResourceAsStream("Galerie.java"); + static int x; + + public Fenetre(){ + for (x=0; x<=4; x++) { + pan.add(Listeimage.liste[x]); + } + this.setSize(250, 250); + this.setLocation(250, 250); + this.addMouseListener(pan); + this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); + this.setContentPane(pan); + } +} \ No newline at end of file diff --git a/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/Galerie.class b/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/Galerie.class new file mode 100644 index 0000000..5dc91d2 Binary files /dev/null and b/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/Galerie.class differ diff --git a/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/Galerie.java b/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/Galerie.java new file mode 100644 index 0000000..604d14d --- /dev/null +++ b/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/Galerie.java @@ -0,0 +1,39 @@ +import java.awt.*; +import javax.swing.*; +import java.awt.event.*; +import java.util.*; +import java.io.*; + +public class Galerie extends JPanel implements MouseListener{ + + ClassLoader loader = Thread.currentThread().getContextClassLoader(); + InputStream file = loader.getResourceAsStream("Changement.java"); + static CardLayout card = new CardLayout(); + + public Galerie(){ + super(); + this.setLayout(card); + + } + + public void mouseClicked(MouseEvent e){ + int x = e.getX(); + if (x <= this.getWidth()/5){ + Changement.fenetreCliquer(0); + }else if(x >= (this.getWidth()/5)*4){ + Changement.fenetreCliquer(1); + } + } + + public void mouseEntered(MouseEvent evenement){ + } + + public void mouseExited(MouseEvent evenement){ + } + + public void mousePressed(MouseEvent evenement){ + } + + public void mouseReleased(MouseEvent evenement){ + } +} diff --git a/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/Listeimage.class b/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/Listeimage.class new file mode 100644 index 0000000..2e7eef4 Binary files /dev/null and b/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/Listeimage.class differ diff --git a/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/Listeimage.java b/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/Listeimage.java new file mode 100644 index 0000000..1209bb6 --- /dev/null +++ b/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/Listeimage.java @@ -0,0 +1,18 @@ +import java.awt.*; +import javax.swing.*; +import java.awt.event.*; +import java.util.*; +import java.io.*; + +public class Listeimage{ + + ClassLoader loader = Thread.currentThread().getContextClassLoader(); + + static JLabel image1 = new JLabel(new ImageIcon("./img/image1.jpg")); + static JLabel image2 = new JLabel(new ImageIcon("./img/image2.jpg")); + static JLabel image3 = new JLabel(new ImageIcon("./img/image3.jpg")); + static JLabel image4 = new JLabel(new ImageIcon("./img/image4.jpg")); + static JLabel image5 = new JLabel(new ImageIcon("./img/image5.jpg")); + static JLabel[] liste = {image1, image2, image3, image4, image5}; + static int index=0; +} \ No newline at end of file diff --git a/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/Main.class b/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/Main.class new file mode 100644 index 0000000..1d92664 Binary files /dev/null and b/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/Main.class differ diff --git a/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/Main.java b/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/Main.java new file mode 100644 index 0000000..ba87152 --- /dev/null +++ b/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/Main.java @@ -0,0 +1,14 @@ +import java.awt.*; +import javax.swing.*; +import java.util.*; +import java.io.*; + +public class Main{ + + static Fenetre fenetre = new Fenetre(); + + public static void main(String[] args) { + + fenetre.setVisible(true); + } +} \ No newline at end of file diff --git a/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/img/image1.jpg b/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/img/image1.jpg new file mode 100644 index 0000000..d402162 Binary files /dev/null and b/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/img/image1.jpg differ diff --git a/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/img/image2.jpg b/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/img/image2.jpg new file mode 100644 index 0000000..f0b6b06 Binary files /dev/null and b/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/img/image2.jpg differ diff --git a/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/img/image3.jpg b/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/img/image3.jpg new file mode 100644 index 0000000..b823066 Binary files /dev/null and b/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/img/image3.jpg differ diff --git a/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/img/image4.jpg b/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/img/image4.jpg new file mode 100644 index 0000000..939d686 Binary files /dev/null and b/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/img/image4.jpg differ diff --git a/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/img/image5.jpg b/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/img/image5.jpg new file mode 100644 index 0000000..2f97128 Binary files /dev/null and b/DEV3.1/TP2:Transitions/GalerieVersionCardLayout/img/image5.jpg differ diff --git a/DEV3.1/TP2:Transitions/GalerieVersionTransition/Changement.class b/DEV3.1/TP2:Transitions/GalerieVersionTransition/Changement.class new file mode 100644 index 0000000..8169958 Binary files /dev/null and b/DEV3.1/TP2:Transitions/GalerieVersionTransition/Changement.class differ diff --git a/DEV3.1/TP2:Transitions/GalerieVersionTransition/Changement.java b/DEV3.1/TP2:Transitions/GalerieVersionTransition/Changement.java new file mode 100644 index 0000000..2b4d580 --- /dev/null +++ b/DEV3.1/TP2:Transitions/GalerieVersionTransition/Changement.java @@ -0,0 +1,29 @@ +import java.awt.*; +import javax.swing.*; +import java.util.*; +import java.io.*; + +public class Changement{ + + ClassLoader loader = Thread.currentThread().getContextClassLoader(); + InputStream file = loader.getResourceAsStream("Main.java"); + InputStream file2 = loader.getResourceAsStream("Listeimage.java"); + static public void fenetreCliquer(int LR){ + Main.fenetre.remove(Main.fenetre.pan); + Main.fenetre.pan.remove(Listeimage.liste[Listeimage.index]); + if (LR==1){ + Listeimage.index=Listeimage.index+1; + if(Listeimage.index>4){ + Listeimage.index=0; + } + }else { + Listeimage.index=Listeimage.index-1; + if(Listeimage.index<0){ + Listeimage.index=4; + } + } + Main.fenetre.pan.add(Listeimage.liste[Listeimage.index]); + Main.fenetre.setContentPane(Main.fenetre.pan); + Main.fenetre.revalidate(); + } +} \ No newline at end of file diff --git a/DEV3.1/TP2:Transitions/GalerieVersionTransition/Fenetre.class b/DEV3.1/TP2:Transitions/GalerieVersionTransition/Fenetre.class new file mode 100644 index 0000000..9c54021 Binary files /dev/null and b/DEV3.1/TP2:Transitions/GalerieVersionTransition/Fenetre.class differ diff --git a/DEV3.1/TP2:Transitions/GalerieVersionTransition/Fenetre.java b/DEV3.1/TP2:Transitions/GalerieVersionTransition/Fenetre.java new file mode 100644 index 0000000..5e3cc07 --- /dev/null +++ b/DEV3.1/TP2:Transitions/GalerieVersionTransition/Fenetre.java @@ -0,0 +1,20 @@ +import java.awt.*; +import javax.swing.*; +import java.util.*; +import java.io.*; + +public class Fenetre extends JFrame{ + + static Galerie pan = new Galerie(); + private ClassLoader loader = Thread.currentThread().getContextClassLoader(); + private InputStream file = loader.getResourceAsStream("Galerie.java"); + + public Fenetre(){ + pan.add(Listeimage.liste[Listeimage.index]); + this.setSize(250, 250); + this.setLocation(250, 250); + this.addMouseListener(pan); + this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); + this.setContentPane(pan); + } +} \ No newline at end of file diff --git a/DEV3.1/TP2:Transitions/GalerieVersionTransition/Galerie.class b/DEV3.1/TP2:Transitions/GalerieVersionTransition/Galerie.class new file mode 100644 index 0000000..0955b20 Binary files /dev/null and b/DEV3.1/TP2:Transitions/GalerieVersionTransition/Galerie.class differ diff --git a/DEV3.1/TP2:Transitions/GalerieVersionTransition/Galerie.java b/DEV3.1/TP2:Transitions/GalerieVersionTransition/Galerie.java new file mode 100644 index 0000000..9260e69 --- /dev/null +++ b/DEV3.1/TP2:Transitions/GalerieVersionTransition/Galerie.java @@ -0,0 +1,36 @@ +import java.awt.*; +import javax.swing.*; +import java.awt.event.*; +import java.util.*; +import java.io.*; + +public class Galerie extends JPanel implements MouseListener{ + + ClassLoader loader = Thread.currentThread().getContextClassLoader(); + InputStream file = loader.getResourceAsStream("Changement.java"); + + public Galerie(){ + super(); + } + + public void mouseClicked(MouseEvent e){ + int x = e.getX(); + if (x <= this.getWidth()/5){ + Changement.fenetreCliquer(0); + }else if(x >= (this.getWidth()/5)*4){ + Changement.fenetreCliquer(1); + } + } + + public void mouseEntered(MouseEvent evenement){ + } + + public void mouseExited(MouseEvent evenement){ + } + + public void mousePressed(MouseEvent evenement){ + } + + public void mouseReleased(MouseEvent evenement){ + } +} diff --git a/DEV3.1/TP2:Transitions/GalerieVersionTransition/Listeimage.class b/DEV3.1/TP2:Transitions/GalerieVersionTransition/Listeimage.class new file mode 100644 index 0000000..2e7eef4 Binary files /dev/null and b/DEV3.1/TP2:Transitions/GalerieVersionTransition/Listeimage.class differ diff --git a/DEV3.1/TP2:Transitions/GalerieVersionTransition/Listeimage.java b/DEV3.1/TP2:Transitions/GalerieVersionTransition/Listeimage.java new file mode 100644 index 0000000..1209bb6 --- /dev/null +++ b/DEV3.1/TP2:Transitions/GalerieVersionTransition/Listeimage.java @@ -0,0 +1,18 @@ +import java.awt.*; +import javax.swing.*; +import java.awt.event.*; +import java.util.*; +import java.io.*; + +public class Listeimage{ + + ClassLoader loader = Thread.currentThread().getContextClassLoader(); + + static JLabel image1 = new JLabel(new ImageIcon("./img/image1.jpg")); + static JLabel image2 = new JLabel(new ImageIcon("./img/image2.jpg")); + static JLabel image3 = new JLabel(new ImageIcon("./img/image3.jpg")); + static JLabel image4 = new JLabel(new ImageIcon("./img/image4.jpg")); + static JLabel image5 = new JLabel(new ImageIcon("./img/image5.jpg")); + static JLabel[] liste = {image1, image2, image3, image4, image5}; + static int index=0; +} \ No newline at end of file diff --git a/DEV3.1/TP2:Transitions/GalerieVersionTransition/Main.class b/DEV3.1/TP2:Transitions/GalerieVersionTransition/Main.class new file mode 100644 index 0000000..1d92664 Binary files /dev/null and b/DEV3.1/TP2:Transitions/GalerieVersionTransition/Main.class differ diff --git a/DEV3.1/TP2:Transitions/GalerieVersionTransition/Main.java b/DEV3.1/TP2:Transitions/GalerieVersionTransition/Main.java new file mode 100644 index 0000000..ba87152 --- /dev/null +++ b/DEV3.1/TP2:Transitions/GalerieVersionTransition/Main.java @@ -0,0 +1,14 @@ +import java.awt.*; +import javax.swing.*; +import java.util.*; +import java.io.*; + +public class Main{ + + static Fenetre fenetre = new Fenetre(); + + public static void main(String[] args) { + + fenetre.setVisible(true); + } +} \ No newline at end of file diff --git a/DEV3.1/TP2:Transitions/GalerieVersionTransition/img/image1.jpg b/DEV3.1/TP2:Transitions/GalerieVersionTransition/img/image1.jpg new file mode 100644 index 0000000..d402162 Binary files /dev/null and b/DEV3.1/TP2:Transitions/GalerieVersionTransition/img/image1.jpg differ diff --git a/DEV3.1/TP2:Transitions/GalerieVersionTransition/img/image2.jpg b/DEV3.1/TP2:Transitions/GalerieVersionTransition/img/image2.jpg new file mode 100644 index 0000000..f0b6b06 Binary files /dev/null and b/DEV3.1/TP2:Transitions/GalerieVersionTransition/img/image2.jpg differ diff --git a/DEV3.1/TP2:Transitions/GalerieVersionTransition/img/image3.jpg b/DEV3.1/TP2:Transitions/GalerieVersionTransition/img/image3.jpg new file mode 100644 index 0000000..b823066 Binary files /dev/null and b/DEV3.1/TP2:Transitions/GalerieVersionTransition/img/image3.jpg differ diff --git a/DEV3.1/TP2:Transitions/GalerieVersionTransition/img/image4.jpg b/DEV3.1/TP2:Transitions/GalerieVersionTransition/img/image4.jpg new file mode 100644 index 0000000..939d686 Binary files /dev/null and b/DEV3.1/TP2:Transitions/GalerieVersionTransition/img/image4.jpg differ diff --git a/DEV3.1/TP2:Transitions/GalerieVersionTransition/img/image5.jpg b/DEV3.1/TP2:Transitions/GalerieVersionTransition/img/image5.jpg new file mode 100644 index 0000000..2f97128 Binary files /dev/null and b/DEV3.1/TP2:Transitions/GalerieVersionTransition/img/image5.jpg differ diff --git a/DEV3.1/TP2:Transitions/Listeimage.class b/DEV3.1/TP2:Transitions/Listeimage.class deleted file mode 100644 index ad3f6c4..0000000 Binary files a/DEV3.1/TP2:Transitions/Listeimage.class and /dev/null differ diff --git a/DEV3.1/TP2:Transitions/Main.class b/DEV3.1/TP2:Transitions/Main.class deleted file mode 100644 index 5c4f015..0000000 Binary files a/DEV3.1/TP2:Transitions/Main.class and /dev/null differ diff --git a/DEV3.1/TP2:Transitions/Main.java b/DEV3.1/TP2:Transitions/Main.java deleted file mode 100644 index c7742f3..0000000 --- a/DEV3.1/TP2:Transitions/Main.java +++ /dev/null @@ -1,23 +0,0 @@ -import java.awt.*; -import javax.swing.*; -import java.util.*; -import java.io.*; - -public class Main{ - - static JFrame fenetre = new JFrame(); - static Galerie pan = new Galerie(); - ClassLoader loader = Thread.currentThread().getContextClassLoader(); - InputStream file = loader.getResourceAsStream("Galerie.java"); - - public static void main(String[] args) { - - pan.add(Listeimage.liste[Listeimage.index]); - fenetre.setSize(250, 250); - fenetre.setLocation(250, 250); - fenetre.addMouseListener(pan); - fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); - fenetre.setContentPane(pan); - fenetre.setVisible(true); - } -} \ No newline at end of file