update
This commit is contained in:
BIN
DEV.3.1/TP/TP4/ex1_test/build/Controlleur.class
Normal file
BIN
DEV.3.1/TP/TP4/ex1_test/build/Controlleur.class
Normal file
Binary file not shown.
BIN
DEV.3.1/TP/TP4/ex1_test/build/Fenetre.class
Normal file
BIN
DEV.3.1/TP/TP4/ex1_test/build/Fenetre.class
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 106 KiB After Width: | Height: | Size: 106 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
BIN
DEV.3.1/TP/TP4/ex1_test/res/img4.jpg
Normal file
BIN
DEV.3.1/TP/TP4/ex1_test/res/img4.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 105 KiB |
@@ -11,9 +11,9 @@ public class Fenetre extends JFrame {
|
|||||||
CardLayout layout = new CardLayout();
|
CardLayout layout = new CardLayout();
|
||||||
this.setLayout(layout);
|
this.setLayout(layout);
|
||||||
|
|
||||||
JLabel img1 = new JLabel(new ImageIcon("img1.jpg"));
|
JLabel img1 = new JLabel(new ImageIcon("../res/MICHEL.gif"));
|
||||||
JLabel img2 = new JLabel(new ImageIcon("img2.jpg"));
|
JLabel img2 = new JLabel(new ImageIcon("img2.jpeg"));
|
||||||
JLabel img3 = new JLabel(new ImageIcon("img3.jpg"));
|
JLabel img3 = new JLabel(new ImageIcon("img3.jpeg"));
|
||||||
JLabel img4 = new JLabel(new ImageIcon("img4.jpg"));
|
JLabel img4 = new JLabel(new ImageIcon("img4.jpg"));
|
||||||
|
|
||||||
JLabel[] tableau = {img1, img2, img3, img4};
|
JLabel[] tableau = {img1, img2, img3, img4};
|
||||||
|
5
DEV.3.1/TP/TP4/ex2Quiz/src/Main.java
Normal file
5
DEV.3.1/TP/TP4/ex2Quiz/src/Main.java
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
public class Main {
|
||||||
|
public static void main(String[] args) {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
14
DEV.3.1/TP/TP4/ex2Quiz/src/Modele/Question.java
Normal file
14
DEV.3.1/TP/TP4/ex2Quiz/src/Modele/Question.java
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
public class Question {
|
||||||
|
|
||||||
|
private String[] operation;
|
||||||
|
private int operand;
|
||||||
|
|
||||||
|
public Question() {
|
||||||
|
this.operation[] = {" + "," - "," x "," / "};
|
||||||
|
|
||||||
|
}
|
||||||
|
public int choixOperand() {
|
||||||
|
System.out.println("coucou manu");
|
||||||
|
return this.operand;
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user