diff --git a/Cours.java b/Cours.java
index 88a637e..fd2e010 100644
--- a/Cours.java
+++ b/Cours.java
@@ -34,6 +34,7 @@ void createPan(JLabel border,JPanel panel) {
case 1 : createPan(border,panel);
JLabel cour = new JLabel(" * On distingue deux genres de types de données sur Java :\n" +
"
-Types primitifs : byte, short, int, long, float, double,boolean et char.\n" +
+<<<<<<< Updated upstream
"
-Types non-primitifs : String, Arrays, Classes …\n" +
"
"+
"
"+
@@ -43,16 +44,36 @@ void createPan(JLabel border,JPanel panel) {
"
-int : stocke les entiers jusqu’à 10 digits.\n" +
"
-double & float : pour stocker les nombres à virgule flottante.\n" +
"
-char: stocke les caractères (lettres, signes ou nombres).\n" +
+=======
+ "
-Types non-primitifs : String, Arrays, Classes …\n" +
+ "
"+
+ "
"+
+ "
* Types de données primitifs de base:\n" +
+ "
"+
+ "
-byte : stocke les nombres entre -128 Ã 127.\n" +
+ "
-int : stocke les entiers jusqu'à 10 digits.\n" +
+ "
-double & float : pour stocker les nombres à virgule flottante.\n" +
+ "
-char: stocke les caractères (lettres, signes ou nombres).\n" +
+>>>>>>> Stashed changes
"
-boolean : type logique qui prend les valeurs true et false.\n" +
"
"+
"
"+
"
* Strings\n" +
+<<<<<<< Updated upstream
"
Les chaînes de caractères sur Java sont de type string.\n" +
"
"+
"
Exemples :\n" +
"
String sequence = “ This is a string” ;\n" +
"
String concat = “ This” + “string” \n" +
" + “is” + “concatenated” ;\n" +
+=======
+ "
Les chaînes de caractères sur Java sont de type string.\n" +
+ "
"+
+ "
Exemples :\n" +
+ "
String sequence = “ This is a string� ;\n" +
+ "
String concat = “ This� + “string� \n" +
+ " + “is� + “concatenated� ;\n" +
+>>>>>>> Stashed changes
"\n" +
"\n" +
"");
diff --git a/Jouer.java b/Jouer.java
index 1785536..e864bbe 100644
--- a/Jouer.java
+++ b/Jouer.java
@@ -2,14 +2,22 @@
import java.util.Arrays;
import javax.swing.*;
+<<<<<<< Updated upstream
import java.awt.* ;
import javax.swing.border.LineBorder;
import javax.swing.border.SoftBevelBorder;
+=======
+import java.awt.*;
+import javax.swing.border.LineBorder;
+import javax.swing.border.SoftBevelBorder;
+
+>>>>>>> Stashed changes
/**
* @author Salahdine Ouhmmiali
*/
/* La classe main */
public class Jouer {
+<<<<<<< Updated upstream
public static void main(String[] args) throws InterruptedException {
JFrame window = new JFrame ("Jeu Java") ;
@@ -73,4 +81,88 @@ public static void main(String[] args) throws InterruptedException {
}
}
+=======
+ JFrame window;
+ public static void main(String[] args) throws InterruptedException {
+ Jouer jeu = new Jouer();
+ }
+
+ public Jouer() {
+ initialize();
+ }
+
+ private void initialize() {
+ window = new JFrame("Jeu Java");
+ window.setSize(800, 500);
+ window.setLocationRelativeTo(null);
+ window.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
+ window.setResizable(false);
+ while (true) {
+ // nbr1, nbr2 : numéro de la question dans qcm ou qrc
+ // score1, score2 : les scores dans qcm et qrc
+ int nbr1 = 0, nbr2 = 0, score1 = 0, m = 0, s = 0, score2 = 0;
+ int time = 60; // sec
+ PremierePage premierepage = new PremierePage(window);
+ premierepage.choose();
+ Themes themes = new Themes(window);
+ themes.choose();
+ // numero du theme choisi par l'utilisateur
+ int numero = Themes.numero;
+ SupportCours pagePrincipale = new SupportCours(window);
+ pagePrincipale.choose();
+ boolean isCour = SupportCours.cour;
+ Quizs quizs = new Quizs();
+ // Tous les qcm du jeu .
+ Qcm[] quiz_All = quizs.quizQcm();
+ // les qcm du thème choisi par l'utilisateur
+ Qcm[] quiz_theme = Arrays.copyOfRange(quiz_All, (numero - 1) * 4, numero * 4);
+ // tous les qrc du jeu
+ Qrc[] qrcs = quizs.quizQrc();
+ Qrc[] qrcs_theme = Arrays.copyOfRange(qrcs, numero - 1, numero);
+
+ // Qcm
+ while (nbr1 != quiz_theme.length) {
+ QcmFrame quiz = new QcmFrame(quiz_theme[nbr1], window);
+ try {
+ quiz.getAnswer(time);
+ } catch (InterruptedException i) {
+ System.out.println(i.getMessage());
+ }
+ m = quiz.getTime().M;
+ s = quiz.getTime().S;
+ score1 = quiz.getScore();
+ if (nbr1 == quiz_theme.length - 1 || (s == time)) {
+ quiz.Reset();
+ }
+ nbr1++;
+ }
+
+ // Qrc
+ while (nbr2 != qrcs_theme.length) {
+ QrcFrame quiz = new QrcFrame(qrcs_theme[nbr2], window);
+ try {
+ quiz.getAnswer(time);
+ } catch (InterruptedException i) {
+ System.out.println(i.getMessage());
+ }
+ m = quiz.getTime().M;
+ s = quiz.getTime().S;
+ score2 = quiz.getScore();
+ if (nbr2 == qrcs_theme.length - 1 || (s == time)) {
+ quiz.Reset();
+ }
+ nbr2++;
+ }
+ // nb total du question du test passé
+ int nbrQ = qrcs_theme.length + quiz_theme.length;
+ // score total du test passé
+ int score = score1 + score2;
+ // Afficahe du score sur l'interface graphique
+ Score scorePage = new Score(window, score, nbrQ);
+ // Obtenir le choix de l'utilisateur ( Quitter ou Recommencer )
+ scorePage.choose();
+
+ }
+ }
+>>>>>>> Stashed changes
}
diff --git a/LoginGUI.java b/LoginGUI.java
index c3ef929..d6b37d0 100644
--- a/LoginGUI.java
+++ b/LoginGUI.java
@@ -1,5 +1,11 @@
import java.awt.EventQueue;
+/**
+ *
+ * @author Houssem Radhouane
+ *
+ */
+
import javax.swing.JFrame;
import javax.swing.JPanel;
import java.awt.BorderLayout;
@@ -26,16 +32,15 @@ public class LoginGUI {
* Launch the application.
*/
public static void main(String[] args) {
- EventQueue.invokeLater(new Runnable() {
- public void run() {
- try {
+// EventQueue.invokeLater(new Runnable() {
+// public void run() {
+// try {
LoginGUI window = new LoginGUI();
- window.frame.setVisible(true);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
- });
+// } catch (Exception e) {
+// e.printStackTrace();
+// }
+// }
+// });
}
/**
@@ -53,7 +58,7 @@ private void initialize() {
frame.setResizable(false);
frame.setBounds(100, 100, 835, 570);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
-
+ frame.setVisible(true);
JPanel panel = new JPanel();
panel.setBackground(new Color(105, 105, 105));
frame.getContentPane().add(panel, BorderLayout.CENTER);
@@ -83,6 +88,7 @@ private void initialize() {
btnNewButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
SignInGUI login = new SignInGUI();
+ frame.dispose();
}
});
btnNewButton.setFont(new Font("Tahoma", Font.PLAIN, 22));
@@ -101,12 +107,17 @@ public void actionPerformed(ActionEvent e) {
panel_1.add(btnCrerUnCompte);
JButton btnQuitter = new JButton("Quitter");
+ btnQuitter.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ System.exit(0);
+ }
+ });
btnQuitter.setBackground(Color.LIGHT_GRAY);
btnQuitter.setFont(new Font("Tahoma", Font.PLAIN, 22));
btnQuitter.setBounds(91, 209, 210, 38);
panel_1.add(btnQuitter);
- JLabel lblNewLabel = new JLabel("JLP");
+ JLabel lblNewLabel = new JLabel("J7");
lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
lblNewLabel.setBounds(247, 68, 309, 63);
layeredPane.add(lblNewLabel);
diff --git a/PremierePage.java b/PremierePage.java
index 55512c9..207811d 100644
--- a/PremierePage.java
+++ b/PremierePage.java
@@ -19,10 +19,13 @@ public class PremierePage extends JPanel {
themes.setBounds(300,150,200,50);
add(themes);
+<<<<<<< Updated upstream
quitter = new JButton ("Quiter");
quitter.setBackground(new Color(255,255,255)) ;
quitter.setBounds(300,250,200,50);
add(quitter);
+=======
+>>>>>>> Stashed changes
window.setVisible(true);
@@ -34,10 +37,13 @@ void choose () {
go = true ;
setVisible(false);
});
+<<<<<<< Updated upstream
quitter.addActionListener((ActionEvent e) -> {
System.exit(0);
});
+=======
+>>>>>>> Stashed changes
while (!go) {
try {
diff --git a/QcmFrame.java b/QcmFrame.java
index 8b35445..faacac4 100644
--- a/QcmFrame.java
+++ b/QcmFrame.java
@@ -41,7 +41,11 @@ public class QcmFrame extends JPanel {
pan.setBackground(Color.DARK_GRAY);
window.setContentPane(pan);
setLayout(null);
+<<<<<<< Updated upstream
setBackground(Color.getHSBColor(154, 254, 25));
+=======
+ setBackground(Color.LIGHT_GRAY);
+>>>>>>> Stashed changes
setBounds(100,90,600,300);
setBorder(BorderFactory.createLineBorder(Color.black));
pan.add(this);
@@ -49,7 +53,11 @@ public class QcmFrame extends JPanel {
add(Q); add(option1); add(option2); add(option3); add(option4);
Q.setBounds(40,8,520,150);
+<<<<<<< Updated upstream
Q.setBorder(new LineBorder(Color.blue, 2, true));
+=======
+ Q.setBorder(new LineBorder(Color.white, 2, true));
+>>>>>>> Stashed changes
Q.setHorizontalAlignment(JLabel.CENTER);
option1.setBounds(80,180,200,40); option1.setBackground(new Color(255,255,255)) ;
option2.setBounds(80,240,200,40); option2.setBackground(new Color(255,255,255)) ;
diff --git a/QrcFrame.java b/QrcFrame.java
index 70df4b1..d06ee86 100644
--- a/QrcFrame.java
+++ b/QrcFrame.java
@@ -38,14 +38,22 @@ public class QrcFrame extends JPanel {
pan.setBackground(Color.DARK_GRAY);
window.setContentPane(pan);
setLayout(null);
+<<<<<<< Updated upstream
setBackground(Color.getHSBColor(154, 254, 25));
+=======
+ setBackground(Color.LIGHT_GRAY);
+>>>>>>> Stashed changes
setBounds(100,90,600,300);
setBorder(BorderFactory.createLineBorder(Color.black));
pan.add(this);
add(questionLabel); add(answer); add(yourAnswer); add(valider);
questionLabel.setBounds(40,8,520,150);
+<<<<<<< Updated upstream
questionLabel.setBorder(new LineBorder(Color.blue, 2, true));
+=======
+ questionLabel.setBorder(new LineBorder(Color.white, 2, true));
+>>>>>>> Stashed changes
questionLabel.setHorizontalAlignment(JLabel.CENTER);
yourAnswer.setBounds(80,180,100,40);
yourAnswer.setBorder(new SoftBevelBorder(SoftBevelBorder.RAISED));
diff --git a/QrcGUI.java b/QrcGUI.java
new file mode 100644
index 0000000..61e223c
--- /dev/null
+++ b/QrcGUI.java
@@ -0,0 +1,41 @@
+import java.awt.EventQueue;
+
+import javax.swing.JFrame;
+
+public class QrcGUI {
+
+ private JFrame frame;
+
+ /**
+ * Launch the application.
+ */
+ public static void main(String[] args) {
+ EventQueue.invokeLater(new Runnable() {
+ public void run() {
+ try {
+ QrcGUI window = new QrcGUI();
+ window.frame.setVisible(true);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ });
+ }
+
+ /**
+ * Create the application.
+ */
+ public QrcGUI() {
+ initialize();
+ }
+
+ /**
+ * Initialize the contents of the frame.
+ */
+ private void initialize() {
+ frame = new JFrame();
+ frame.setBounds(100, 100, 450, 300);
+ frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+ }
+
+}
diff --git a/Quizs.java b/Quizs.java
index dff5cbb..ec0923b 100644
--- a/Quizs.java
+++ b/Quizs.java
@@ -4,7 +4,12 @@ public class Quizs {
/* Construire les Qcm du jeu */
public Qcm[] quizQcm() {
Qcm [] quiz_All = {
+<<<<<<< Updated upstream
new Qcm("Quel le type par défaut de 3.75 ","int","double","float","short","double"),
+=======
+
+ new Qcm("Quel le type par dfaut de 3.75 ","int","double","float","short","double"),
+>>>>>>> Stashed changes
new Qcm("Que renvoie le code suivant
class Main { \n" +
"
public static void main(String args[]) { \n" +
"
int t; \n" +
@@ -12,6 +17,11 @@ public Qcm[] quizQcm() {
"
} \n" +
"
}","0","garbage error","runtime error","compiler error","compiler error"),
new Qcm("Quelle est la taille en bits d'une
variable int","64","32","4","16","32"),
+<<<<<<< Updated upstream
+=======
+ new Qcm("Quel est le type du codage
de carctres utilis en Java","UNICODE","ASCII","ISO-LATIN-1","Autre","UNICODE"),
+
+>>>>>>> Stashed changes
new Qcm("Que renvoie le code suivant ?\r\n"+
"
String s = \"Java String Quiz\";" +
"
System.out.println(s.substring(5,3));","Str","Runtime Exception",
@@ -20,9 +30,22 @@ public Qcm[] quizQcm() {
"
String s1 = \"abc\";\n" +
"
String s2 = \"def\";\n" +
"
System.out.println(s1.compareTo(s2)); ","0","true","-3","false","-3"),
+<<<<<<< Updated upstream
new Qcm(" Combien de string crées dans le code suivant ?" +
"
String s = \"abc\";\n" +
"
String s1 = new String(\"abcd\")","1","2","3","4","3"),
+=======
+ new Qcm(" Combien de string cres dans le code suivant ?" +
+ "
String s = \"abc\";\n" +
+ "
String s1 = new String(\"abcd\")","1","2","3","4","3"),
+ new Qcm("String s1 = \"Cat\";\n" +
+ "
String s2 = \"Cat\";\n" +
+ "
String s3 = new String(\"Cat\");\n" +
+ "
System.out.print(s1 == s2);\n" +
+ "
System.out.print(s1 == s3);","truetrue","falsetrue","truefalse","falsefalse","truefalse"),
+
+
+>>>>>>> Stashed changes
new Qcm("Que renvoie le code suivant ?\r\n"+
"
int [ ] a = new int [5];\n" +
"
a[0] = 5; a[1] = 4; a[2] = 3;\n" +
@@ -36,22 +59,61 @@ public Qcm[] quizQcm() {
"
System.out.print(name[i] + \" \");","Joe Sue Tom Jill Patty","Patty Jill Tom Sue Joe",
"Joe Tom Patty","Sue Jill","Joe Tom Patty"),
+<<<<<<< Updated upstream
new Qcm("La méthode qui affiche la liste des" +
"
des méthode appellées avant la levée d'une exception ?","printErrors()","traceStack()","getMessage()","printStackTrace","printStackTrace"),
new Qcm("De quel classe la méthode toString est héritée ?","Objet","Comparable","throwable","Iterable","Objet"),
new Qcm("Which of the following declares an array of
integers named number?
","int number ;","int [ ] number ;","int new number [ ] ;","int number = int [ ] ;","int [ ] number ;"),
+=======
+ new Qcm(" int [ ] dedo = { 1, 3, 6, 9, 2, 5, 7};\n" +
+ "
int que = dedo[0];\n" +
+ "
for (int k = 0; k < dedo.length; k++)\n" +
+ "
{\n" +
+ "
if (dedo[k] < que)\n" +
+ "
que = dedo[k];\n" +
+ " br> }\n" +
+ "
System.out.print(que);","1","2","1 3 6 9 2 5 7","7","1 3 6 9 2 5 7"),
+
+
+
+ new Qcm("La mthode qui affiche la liste des" +
+ "
des mthode appelles avant la leve d'une exception ?","printErrors()","traceStack()","getMessage()","printStackTrace","printStackTrace"),
+ new Qcm("Quelle est la classe mre des exceptions ?","Objet","Comparable","Throwable","Iterable","Throwable"),
+ new Qcm("Quel est le handler qui
rcupre l'exception quand y'a pas
"
+ + "de catch ?","default handler","finally","throw handler","Java run time system","default handler"),
+ new Qcm("Quelle est la mthode des exceptions
qui retourne un message string ?","printMessage()","getMessage()","getError()","traceMessage()","getMessage()"),
+
+ new Qcm("De quel classe la mthode toString est hrite ?","Objet","Comparable","throwable","Iterable","Objet"),
+ new Qcm("Which of the following declares an array of
integers named number?
","int number ;","int [ ] number ;","int new number [ ] ;","int number = int [ ] ;","int [ ] number ;"),
+ new Qcm("Quel est le type de donnes utilis
par les Sets pour stoquer les lements ?","Array","Map","ArrayList","Object","Map"),
+ new Qcm("Quelle type de donnes il faut utiliser"
+ + "
pour que l'itrateur affiche"
+ + "
les lments dans leurs ordre"
+ + "
d'insertion ?","LinkedHashSet","TreeSet","HashSet","HashMap","LinkedHashSet")
+>>>>>>> Stashed changes
};
return quiz_All;
}
/* Construire les Qrc du jeu */
public Qrc[] quizQrc() {
+<<<<<<< Updated upstream
Qrc [] qrcs= { new Qrc("Classe parente de toute les classe ?","Objet"),
new Qrc(" Que renvoie le code suivant :"+
"
String s = \"Java\"+1+2+\"Quiz\"+\"\"+(3+4);\n" +
"
System.out.println(s); ","Java12Quiz7"),
new Qrc("varible final ?","constante")
+=======
+ Qrc [] qrcs= { new Qrc("La taille d'une variable float ?","32"),
+ new Qrc("Que renvoie (char)65 ?","A"),
+ new Qrc("Classe parente de toute les classe ?","Objet"),
+ new Qrc(" Que renvoie le code suivant :"+
+ "
String s = \"Java\"+1+2+\"Quiz\"+\"\"+(3+4);\n" +
+ "
System.out.println(s); ","Java12Quiz7"),
+ new Qrc("varible final ?","constante"),
+ new Qrc("La capacit par dfaut de type ArrayList?","10")
+>>>>>>> Stashed changes
};
return qrcs;
}
diff --git a/RemplirCode.java b/RemplirCode.java
index 346dd2c..780665c 100644
--- a/RemplirCode.java
+++ b/RemplirCode.java
@@ -1,3 +1,4 @@
+<<<<<<< Updated upstream
/**
*
* @author Youssef MINYARI et Othmane MOKRANE
@@ -21,3 +22,28 @@ public Object getReponse() {
return this.reponse;
}
}
+=======
+/**
+ *
+ * @author Youssef MINYARI et Othmane MOKRANE
+ *
+ */
+public class RemplirCode {
+
+ private String question;
+ private Object reponse;
+
+ public RemplirCode(String q, Object r) {
+ this.question = q;
+ this.reponse = r;
+ }
+
+ public String getQuestion() {
+ return this.question;
+ }
+
+ public Object getReponse() {
+ return this.reponse;
+ }
+}
+>>>>>>> Stashed changes
diff --git a/RemplirCodeFrame.java b/RemplirCodeFrame.java
index 471e9f8..26037d5 100644
--- a/RemplirCodeFrame.java
+++ b/RemplirCodeFrame.java
@@ -1,3 +1,4 @@
+<<<<<<< Updated upstream
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Font;
@@ -256,3 +257,263 @@ void Reset() {
score = 0 ;
}
}
+=======
+import java.awt.BorderLayout;
+import java.awt.Color;
+import java.awt.Font;
+import java.awt.event.ActionEvent;
+import java.io.BufferedWriter;
+import java.io.File;
+import java.io.FileWriter;
+import java.io.IOException;
+
+
+import javax.swing.BorderFactory;
+import javax.swing.JButton;
+import javax.swing.JFrame;
+import javax.swing.JLabel;
+import javax.swing.JPanel;
+import javax.swing.JScrollPane;
+import javax.swing.JTextArea;
+import javax.swing.border.LineBorder;
+import javax.swing.border.SoftBevelBorder;
+import javax.swing.JComponent.*;
+import javax.swing.JFileChooser;
+
+import javax.tools.*;
+import java.io.ByteArrayOutputStream;
+import java.io.OutputStream;
+import java.lang.reflect.InvocationTargetException;
+import java.lang.reflect.Method;
+import java.net.URI;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Iterator;
+import java.util.List;
+
+
+/**
+ *
+ * @author Youssef MINYARI et Othmane MOKRANE
+ *
+ */
+public class RemplirCodeFrame extends JPanel{
+ Object reponse;
+ JLabel exerciceLabel, codeSaisi;
+ JTextArea zoneCode;
+ JButton soumettre;
+
+ static boolean next = false;
+ static int score = 0;
+
+ static JLabel timer = new JLabel ("00 : 00 : 000") ;
+ static Compteur count = new Compteur ();
+
+ RemplirCodeFrame(RemplirCode exercice, JFrame fenetre) {
+ exerciceLabel = new JLabel(exercice.getQuestion());
+ reponse = exercice.getReponse();
+ soumettre = new JButton("Soumettre");
+ codeSaisi = new JLabel("Code:");
+ zoneCode = new JTextArea();
+ JScrollPane scrollPane = new JScrollPane(zoneCode);
+ fenetre.add(scrollPane);
+ JPanel panel = new JPanel();
+ panel.setLayout(null);
+ panel.setBorder(BorderFactory.createLineBorder(Color.gray));
+ panel.setBackground(Color.DARK_GRAY);
+ fenetre.setContentPane(panel);
+ setLayout(null);
+ setBackground(Color.getHSBColor(154, 254, 25));
+ setBounds(100,90,600,300);
+ //setBorder(BorderFactory.createLineBorder(Color.black));
+ panel.add(this);
+ add(exerciceLabel); add(zoneCode); add(codeSaisi); add(soumettre);
+ exerciceLabel.setBounds(40,8,520,50);
+ exerciceLabel.setBorder(new LineBorder(Color.blue, 2, true));
+ exerciceLabel.setHorizontalAlignment(JLabel.CENTER);
+ codeSaisi.setBounds(50,80,100,30);
+ codeSaisi.setBorder(new SoftBevelBorder(SoftBevelBorder.RAISED));
+ zoneCode.setBounds(200,80,300,150);
+ zoneCode.setBorder(new SoftBevelBorder(SoftBevelBorder.RAISED));
+ soumettre.setBounds(160,240,100,40);
+ soumettre.setBorder(new SoftBevelBorder(SoftBevelBorder.RAISED));
+ timer.setBounds(250,420,300,30);
+ timer.setFont(new Font("Verdana", Font.BOLD, 40));
+ timer.setHorizontalAlignment(JLabel.CENTER);
+ timer.setBorder(BorderFactory.createLineBorder(Color.white));
+ timer.setForeground(Color.white);
+ panel.add(timer);
+ fenetre.setVisible(true);
+ System.out.println(zoneCode.getText());
+ }
+
+
+ void getCode (int time) throws InterruptedException {
+ class StringJavaFileObject extends SimpleJavaFileObject {
+ private final String code;
+
+ public StringJavaFileObject(String name, String code) {
+ super(URI.create("string:///" + name.replace('.', '/') + Kind.SOURCE.extension),
+ Kind.SOURCE);
+ this.code = code;
+ }
+
+ @Override
+ public CharSequence getCharContent(boolean ignoreEncodingErrors) throws IOException {
+ return code;
+ }
+ }
+
+ class ClassJavaFileObject extends SimpleJavaFileObject {
+ private final ByteArrayOutputStream outputStream;
+ private final String className;
+
+ protected ClassJavaFileObject(String className, Kind kind) {
+ super(URI.create("mem:///" + className.replace('.', '/') + kind.extension), kind);
+ this.className = className;
+ outputStream = new ByteArrayOutputStream();
+ }
+
+ @Override
+ public OutputStream openOutputStream() throws IOException {
+ return outputStream;
+ }
+
+ public byte[] getBytes() {
+ return outputStream.toByteArray();
+ }
+
+ public String getClassName() {
+ return className;
+ }
+ }
+
+ @SuppressWarnings("rawtypes")
+ class SimpleJavaFileManager extends ForwardingJavaFileManager {
+ private final List outputFiles;
+
+ @SuppressWarnings("unchecked")
+ protected SimpleJavaFileManager(JavaFileManager fileManager) {
+ super(fileManager);
+ outputFiles = new ArrayList();
+ }
+
+ @Override
+ public JavaFileObject getJavaFileForOutput(Location location, String className, JavaFileObject.Kind kind, FileObject sibling) throws IOException {
+ ClassJavaFileObject file = new ClassJavaFileObject(className, kind);
+ outputFiles.add(file);
+ return file;
+ }
+
+ public List getGeneratedOutputFiles() {
+ return outputFiles;
+ }
+ }
+
+ class CompiledClassLoader extends ClassLoader {
+ private final List files;
+
+ private CompiledClassLoader(List files) {
+ this.files = files;
+ }
+
+ @Override
+ protected Class> findClass(String name) throws ClassNotFoundException {
+ Iterator itr = files.iterator();
+ while (itr.hasNext()) {
+ ClassJavaFileObject file = itr.next();
+ if (file.getClassName().equals(name)) {
+ itr.remove();
+ byte[] bytes = file.getBytes();
+ return super.defineClass(name, bytes, 0, bytes.length);
+ }
+ }
+ return super.findClass(name);
+ }
+ }
+
+ soumettre.addActionListener((ActionEvent e) -> {
+ /*File codeFile = new File("code.txt");
+ BufferedWriter outFile;
+ try {
+ outFile = new BufferedWriter(new FileWriter(codeFile));
+ outFile.write(zoneCode.getText());
+ outFile.close();
+ } catch (IOException e1) {
+ e1.printStackTrace();
+ }*/
+ String codeString = zoneCode.getText();
+ //System.out.println(codeString);
+ JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
+
+ JavaFileObject compilationUnit =
+ new StringJavaFileObject("CodeGenTest", codeString);
+
+ SimpleJavaFileManager fileManager =
+ new SimpleJavaFileManager(compiler.getStandardFileManager(null, null, null));
+
+ JavaCompiler.CompilationTask compilationTask = compiler.getTask(
+ null, fileManager, null, null, null, Arrays.asList(compilationUnit));
+
+ compilationTask.call();
+
+ CompiledClassLoader classLoader =
+ new CompiledClassLoader(fileManager.getGeneratedOutputFiles());
+
+ Class> codeGenTest;
+ try {
+ codeGenTest = classLoader.loadClass("CodeGenTest");
+ //Method main = codeGenTest.getMethod("main", String[].class);
+ Method somme = codeGenTest.getMethod("somme", int.class, int.class);
+ Object resultat = somme.invoke(null, new Object[]{null});
+ if (resultat.equals(reponse)) {
+ System.out.println("Success");
+ }
+
+ } catch (NoSuchMethodException | SecurityException | IllegalAccessException | IllegalArgumentException | InvocationTargetException | ClassNotFoundException e1) {
+ e1.printStackTrace();
+ }
+
+ //if (resultat.equals(reponse)) score++ ;
+ //next = true ;
+ });
+
+
+ while (next == false ) {
+
+ timer.setText(String.format("%02d", count.M)+" : "+String.format("%02d", count.S)+" : "+String.format("%03d", count.Ms));
+ count.Ms++ ;
+ Thread.sleep(1);
+ if (count.Ms==999){
+ count.S++ ;
+ count.Ms=0 ;
+ }
+ if (count.S==59){
+ count.M++ ;
+ count.S=0;
+ }
+
+ if ((count.S + count.M*60) > time-3 ) {
+
+ timer.setForeground(Color.red);
+
+ if ((count.S + count.M*60)==time) {
+ return ;
+ }
+ }
+
+ }
+ next = false ;
+
+ }
+
+ int getScore() {return score ;}
+ Compteur getTime() {return count ;}
+ void Reset() {
+ count.M=0 ;
+ count.Ms=0 ;
+ count.S=0;
+ score = 0 ;
+ }
+}
+>>>>>>> Stashed changes
diff --git a/RemplirCodeTest.java b/RemplirCodeTest.java
index fd9944d..8b93649 100644
--- a/RemplirCodeTest.java
+++ b/RemplirCodeTest.java
@@ -1,3 +1,4 @@
+<<<<<<< Updated upstream
import java.io.IOException;
import javax.swing.JFrame;
@@ -18,3 +19,25 @@ public static void main(String[] args) throws InterruptedException {
}
}
+=======
+import java.io.IOException;
+
+import javax.swing.JFrame;
+/**
+ *
+ * @author Youssef MINYARI et Othmane MOKRANE
+ *
+ */
+public class RemplirCodeTest {
+
+ public static void main(String[] args) throws InterruptedException {
+ RemplirCode exercice = new RemplirCode("Ecrire un programme qui retourne le caractere c!",'c');
+ JFrame fenetre = new JFrame ("RemplirCode Test") ;
+ fenetre.setSize(800,500);
+ RemplirCodeFrame rcf = new RemplirCodeFrame(exercice, fenetre);
+ int time = 60;
+ rcf.getCode(time);
+ }
+
+}
+>>>>>>> Stashed changes
diff --git a/Score.java b/Score.java
index f5d44ee..5cc8a3c 100644
--- a/Score.java
+++ b/Score.java
@@ -29,10 +29,13 @@ public class Score extends JPanel {
recommencer .setBounds(300,250,200,50);
add(recommencer);
+<<<<<<< Updated upstream
quitter = new JButton ("Exit");
quitter.setBackground(new Color(255,255,255)) ;
quitter.setBounds(300,350,200,50);
add(quitter);
+=======
+>>>>>>> Stashed changes
scoreLabel = new JLabel ("You Got : "+score+"/"+nbrQ);
scoreLabel.setHorizontalAlignment(JLabel.CENTER);
@@ -52,9 +55,12 @@ void choose () {
again= true ;
});
+<<<<<<< Updated upstream
quitter.addActionListener((ActionEvent e) -> {
System.exit(0);
});
+=======
+>>>>>>> Stashed changes
while (!again) {
try {
diff --git a/SignInGUI.java b/SignInGUI.java
index be90e3d..cd6258c 100644
--- a/SignInGUI.java
+++ b/SignInGUI.java
@@ -26,6 +26,7 @@ public class SignInGUI {
private BaseUtilisateurs base = new BaseUtilisateurs();
private JLabel message;
+ boolean siginsucessful = false;
/**
* Launch the application.
*/
@@ -97,6 +98,7 @@ private void initialize() {
btnNewButton = new JButton("Retour au menu principal");
btnNewButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
+ LoginGUI login = new LoginGUI();
frmSignin.dispose();
}
});
@@ -117,6 +119,9 @@ public void actionPerformed(ActionEvent e) {
String password = passwordField.getText();
if (base.authentifier(userName, password)) {
message.setText(" Hello " + userName + "");
+ siginsucessful = true;
+ WorkBenchGUI workbench = new WorkBenchGUI();
+ frmSignin.dispose();
} else {
message.setText(" Invalid user.. ");
}
diff --git a/SignUPSuccessfulGUI.java b/SignUPSuccessfulGUI.java
index a994369..f658c0a 100644
--- a/SignUPSuccessfulGUI.java
+++ b/SignUPSuccessfulGUI.java
@@ -12,6 +12,12 @@
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
+/**
+ *
+ * @author Houssem Radhouane
+ *
+ */
+
public class SignUPSuccessfulGUI {
private JFrame frame;
diff --git a/SignUpGUI.java b/SignUpGUI.java
index 37eb9da..946fb4f 100644
--- a/SignUpGUI.java
+++ b/SignUpGUI.java
@@ -17,6 +17,12 @@
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
+/**
+ *
+ * @author Houssem Radhouane
+ *
+ */
+
public class SignUpGUI {
private JFrame frmSignUp;
diff --git a/Start.java b/Start.java
new file mode 100644
index 0000000..9c58142
--- /dev/null
+++ b/Start.java
@@ -0,0 +1,9 @@
+
+public class Start {
+
+ public static void main(String[] args) {
+ LoginGUI login = new LoginGUI();
+ }
+ }
+
+
diff --git a/SupportCours.java b/SupportCours.java
index ed5c9b3..f37732a 100644
--- a/SupportCours.java
+++ b/SupportCours.java
@@ -23,6 +23,7 @@ public class SupportCours extends JPanel {
tests.setBackground(new Color(255,255,255)) ;
tests.setBounds(300,100,200,50);
add(tests);
+<<<<<<< Updated upstream
/* Bouton pour aller vers le cours */
cours = new JButton ("Cours");
cours.setBackground(new Color(255,255,255)) ;
@@ -33,6 +34,8 @@ public class SupportCours extends JPanel {
quitter.setBackground(new Color(255,255,255)) ;
quitter.setBounds(300,300,200,50);
add(quitter);
+=======
+>>>>>>> Stashed changes
window.setVisible(true);
@@ -45,6 +48,7 @@ void choose () {
setVisible(false);
cour=false;
});
+<<<<<<< Updated upstream
cours.addActionListener((ActionEvent e) -> {
cour = true;
new Cours(numero);
@@ -53,6 +57,9 @@ void choose () {
System.exit(0);
});
+=======
+
+>>>>>>> Stashed changes
while (!go) {
try {
Thread.sleep(0);
diff --git a/Themes.java b/Themes.java
index 933228b..b08edca 100644
--- a/Themes.java
+++ b/Themes.java
@@ -8,10 +8,17 @@
* @author Salahdine Ouhmmiali v 1.0
*
*/
+<<<<<<< Updated upstream
/* Afficher les thèmes sur l'interface graphique */
public class Themes extends JPanel {
JButton th1,th2,th3,th4,th5,th6;
static int numero; // pour désigner le theme choisi par l'utilisateur
+=======
+/* Afficher les thmes sur l'interface graphique */
+public class Themes extends JPanel {
+ JButton th1,th2,th3,th4,th5,th6;
+ static int numero; // pour dsigner le theme choisi par l'utilisateur
+>>>>>>> Stashed changes
static boolean go = false ;
/* Constructeur de la frame Themes */
Themes(JFrame window){
@@ -19,6 +26,7 @@ public class Themes extends JPanel {
setLayout(null);
setBackground(Color.DARK_GRAY);
window.setContentPane(this);
+<<<<<<< Updated upstream
th1 = new JButton ("Types de données");
th1.setBackground(new Color(255,255,255)) ;
th1.setBounds(300,50,200,50);
@@ -43,6 +51,29 @@ public class Themes extends JPanel {
th6.setBackground(new Color(255,255,255)) ;
th6.setBounds(300,300,200,50);
add(th6);
+=======
+ th1 = new JButton ("Types de donnes");
+ th1.setBackground(new Color(255,255,255)) ;
+ th1.setBounds(300,50,200,50);
+ add(th1);
+ th2 = new JButton ("Chaines de caractre : String");
+ th2.setBackground(new Color(255,255,255)) ;
+ th2.setBounds(300,110,200,50);
+ add(th2);
+ th3 = new JButton ("Tableaux");
+ th3.setBackground(new Color(255,255,255)) ;
+ th3.setBounds(300,170,200,50);
+ add(th3);
+ th4 = new JButton ("Exception");
+ th4.setBackground(new Color(255,255,255)) ;
+ th4.setBounds(300,230,200,50);
+ add(th4);
+ th5 = new JButton ("Collections");
+ th5.setBackground(new Color(255,255,255)) ;
+ th5.setBounds(300,290,200,50);
+ add(th5);
+
+>>>>>>> Stashed changes
}
/* Ajouter les actions pour chaque boutton */
@@ -87,4 +118,8 @@ void choose () {
public int getNumero() {
return numero;
}
+<<<<<<< Updated upstream
+}
+=======
}
+>>>>>>> Stashed changes
diff --git a/WorkBenchGUI.java b/WorkBenchGUI.java
new file mode 100644
index 0000000..df59172
--- /dev/null
+++ b/WorkBenchGUI.java
@@ -0,0 +1,242 @@
+import java.awt.EventQueue;
+
+import javax.swing.JFrame;
+import java.awt.SystemColor;
+import javax.swing.BoxLayout;
+import javax.swing.JPanel;
+import javax.swing.border.EtchedBorder;
+import javax.swing.JTree;
+import java.awt.Font;
+import javax.swing.tree.DefaultTreeModel;
+import javax.swing.tree.DefaultMutableTreeNode;
+import java.awt.event.MouseAdapter;
+import java.awt.event.MouseEvent;
+import java.util.Arrays;
+
+import javax.swing.JButton;
+import java.awt.Color;
+import javax.swing.JLabel;
+import javax.swing.SwingConstants;
+import javax.swing.JTextField;
+import java.awt.event.ActionListener;
+import java.awt.event.ActionEvent;
+
+/**
+ *
+ * @author Houssem Radhouane
+ *
+ */
+
+public class WorkBenchGUI {
+
+ static int numero = 0;
+
+ private JFrame frame;
+
+ static boolean invokeJouer = false;
+
+ /**
+ * Launch the application.
+ */
+ public static void main(String[] args) {
+ WorkBenchGUI window = new WorkBenchGUI();
+
+ }
+
+ /**
+ * Create the application.
+ */
+ public WorkBenchGUI() {
+ initialize();
+ }
+
+ /**
+ * Initialize the contents of the frame.
+ */
+ private void initialize() {
+ Quizs quizs = new Quizs();
+ // Tous les qcm du jeu .
+ Qcm[] quiz_All = quizs.quizQcm();
+ // tous les qrc du jeu
+ Qrc[] qrcs = quizs.quizQrc();
+ frame = new JFrame();
+ frame.setResizable(false);
+ frame.setVisible(true);
+ frame.getContentPane().setBackground(SystemColor.controlDkShadow);
+ frame.getContentPane().setLayout(null);
+
+ JPanel panel = new JPanel();
+ panel.setBorder(new EtchedBorder(EtchedBorder.LOWERED, SystemColor.controlHighlight, null));
+ panel.setBackground(SystemColor.controlDkShadow);
+ panel.setBounds(10, 10, 213, 635);
+ frame.getContentPane().add(panel);
+ panel.setLayout(null);
+
+ JButton btnNewButton_1 = new JButton("< D\u00E9butant >");
+ btnNewButton_1.setBackground(SystemColor.textText);
+ btnNewButton_1.setForeground(SystemColor.window);
+ btnNewButton_1.setFont(new Font("Consolas", Font.PLAIN, 16));
+ btnNewButton_1.setOpaque(true);
+ btnNewButton_1.setContentAreaFilled(true);
+ btnNewButton_1.setBorderPainted(false);
+ btnNewButton_1.setBounds(2, 110, 209, 21);
+ panel.add(btnNewButton_1);
+ JButton btnNewButton_1_1 = new JButton("./TypesDeDonn\u00E9es");
+ btnNewButton_1_1.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ numero = 1;
+ }
+ });
+ btnNewButton_1_1.setBackground(SystemColor.controlShadow);
+ btnNewButton_1_1.setOpaque(true);
+ btnNewButton_1_1.setForeground(Color.WHITE);
+ btnNewButton_1_1.setFont(new Font("Consolas", Font.PLAIN, 16));
+ btnNewButton_1_1.setContentAreaFilled(true);
+ btnNewButton_1_1.setBorderPainted(false);
+ btnNewButton_1_1.setBounds(2, 141, 209, 21);
+ panel.add(btnNewButton_1_1);
+
+ JButton btnNewButton_1_2 = new JButton("./String");
+ btnNewButton_1_2.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ numero = 2;
+ }
+ });
+ btnNewButton_1_2.setBackground(SystemColor.controlShadow);
+ btnNewButton_1_2.setOpaque(true);
+ btnNewButton_1_2.setForeground(Color.WHITE);
+ btnNewButton_1_2.setFont(new Font("Consolas", Font.PLAIN, 16));
+ btnNewButton_1_2.setContentAreaFilled(true);
+ btnNewButton_1_2.setBorderPainted(false);
+ btnNewButton_1_2.setBounds(2, 162, 209, 21);
+ panel.add(btnNewButton_1_2);
+
+ JButton btnNewButton_1_3 = new JButton("./Tableaux");
+ btnNewButton_1_3.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ numero = 3;
+ }
+ });
+ btnNewButton_1_3.setBackground(SystemColor.controlShadow);
+ btnNewButton_1_3.setOpaque(true);
+ btnNewButton_1_3.setForeground(Color.WHITE);
+ btnNewButton_1_3.setFont(new Font("Consolas", Font.PLAIN, 16));
+ btnNewButton_1_3.setContentAreaFilled(true);
+ btnNewButton_1_3.setBorderPainted(false);
+ btnNewButton_1_3.setBounds(2, 183, 209, 21);
+ panel.add(btnNewButton_1_3);
+
+ JButton btnNewButton_1_4 = new JButton("< Interm\u00E9diaire >");
+ btnNewButton_1_4.setOpaque(true);
+ btnNewButton_1_4.setForeground(Color.WHITE);
+ btnNewButton_1_4.setFont(new Font("Consolas", Font.PLAIN, 16));
+ btnNewButton_1_4.setContentAreaFilled(true);
+ btnNewButton_1_4.setBorderPainted(false);
+ btnNewButton_1_4.setBackground(Color.BLACK);
+ btnNewButton_1_4.setBounds(2, 251, 209, 21);
+ panel.add(btnNewButton_1_4);
+
+ JButton btnNewButton_1_1_1 = new JButton("./Exceptions");
+ btnNewButton_1_1_1.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ numero = 4;
+ }
+ });
+ btnNewButton_1_1_1.setOpaque(true);
+ btnNewButton_1_1_1.setForeground(Color.WHITE);
+ btnNewButton_1_1_1.setFont(new Font("Consolas", Font.PLAIN, 16));
+ btnNewButton_1_1_1.setContentAreaFilled(true);
+ btnNewButton_1_1_1.setBorderPainted(false);
+ btnNewButton_1_1_1.setBackground(SystemColor.controlShadow);
+ btnNewButton_1_1_1.setBounds(2, 282, 209, 21);
+ panel.add(btnNewButton_1_1_1);
+
+ JButton btnNewButton_1_4_1 = new JButton("< Avanc\u00E9>");
+ btnNewButton_1_4_1.setOpaque(true);
+ btnNewButton_1_4_1.setForeground(Color.WHITE);
+ btnNewButton_1_4_1.setFont(new Font("Consolas", Font.PLAIN, 16));
+ btnNewButton_1_4_1.setContentAreaFilled(true);
+ btnNewButton_1_4_1.setBorderPainted(false);
+ btnNewButton_1_4_1.setBackground(Color.BLACK);
+ btnNewButton_1_4_1.setBounds(2, 343, 209, 21);
+ panel.add(btnNewButton_1_4_1);
+
+ JButton btnNewButton_1_1_1_1 = new JButton("./Collections");
+ btnNewButton_1_1_1_1.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ numero = 5;
+ }
+ });
+ btnNewButton_1_1_1_1.setOpaque(true);
+ btnNewButton_1_1_1_1.setForeground(Color.WHITE);
+ btnNewButton_1_1_1_1.setFont(new Font("Consolas", Font.PLAIN, 16));
+ btnNewButton_1_1_1_1.setContentAreaFilled(true);
+ btnNewButton_1_1_1_1.setBorderPainted(false);
+ btnNewButton_1_1_1_1.setBackground(SystemColor.controlShadow);
+ btnNewButton_1_1_1_1.setBounds(2, 374, 209, 21);
+ panel.add(btnNewButton_1_1_1_1);
+
+ JLabel lblNewLabel = new JLabel("Th\u00E8mes");
+ lblNewLabel.setBackground(SystemColor.desktop);
+ lblNewLabel.setForeground(SystemColor.text);
+ lblNewLabel.setFont(new Font("Consolas", Font.BOLD, 24));
+ lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
+ lblNewLabel.setBounds(2, 2, 209, 51);
+ lblNewLabel.setOpaque(true);
+ panel.add(lblNewLabel);
+
+ JPanel panel_1 = new JPanel();
+ panel_1.setBorder(new EtchedBorder(EtchedBorder.LOWERED, SystemColor.controlHighlight, null));
+ panel_1.setBackground(SystemColor.controlDkShadow);
+ panel_1.setBounds(230, 60, 1086, 679);
+ frame.getContentPane().add(panel_1);
+ panel_1.setLayout(null);
+
+ JLabel lblNewLabel_1 = new JLabel("Bienvenue !");
+ lblNewLabel_1.setFont(new Font("Consolas", Font.BOLD | Font.ITALIC, 36));
+ lblNewLabel_1.setBounds(22, 23, 1054, 66);
+ panel_1.add(lblNewLabel_1);
+
+ JLabel lblNewLabel_2 = new JLabel(
+ "Pour afficher un cours :
\r\n1) Choisis le th\u00E8me de ton pr\u00E9f\u00E9rence \u00E0 gauche .\r\n
2) Un clic sur le bouton \" Il s'agit de quoi? \" en haut affichera le cours associ\u00E9.\r\n
3) Si t'as des remarques sur le contenu, le bouton feedback te permettra de contacter
ton prof si t'as choisi un, sinon tu peux choisir \"admin\" comme destinataire pour nous contacter directement.");
+ lblNewLabel_2.setFont(new Font("Consolas", Font.BOLD, 21));
+ lblNewLabel_2.setBounds(22, 99, 1054, 209);
+ panel_1.add(lblNewLabel_2);
+
+ JLabel lblNewLabel_2_1 = new JLabel(
+ "Pour s'auto-tester :
\r\n1) Une fen\u00EAtre est ouverte avec celle-ci, elle contient les tests
haut .\r\n
2) Les tests sont vari\u00E9s : QCM, QRC, Code \u00E0 \u00E9crire ...\r\n
3) Chaque question a un temps limite et \u00E0 la fin du test ton score sera affich\u00E9.\r\n
4) NE FERMES CETTE FENETRE QUE SI TU VAS QUITTER L'APPLICATION\r\n
( On est encore en version beta :) )");
+ lblNewLabel_2_1.setFont(new Font("Consolas", Font.BOLD, 21));
+ lblNewLabel_2_1.setBounds(22, 349, 1038, 180);
+ panel_1.add(lblNewLabel_2_1);
+
+ JButton btnSeDconnecter = new JButton("Se d\u00E9connecter");
+ btnSeDconnecter.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ SignInGUI signin = new SignInGUI();
+ frame.dispose();
+ }
+ });
+ btnSeDconnecter.setFont(new Font("Consolas", Font.BOLD, 16));
+ btnSeDconnecter.setBounds(10, 702, 213, 37);
+ frame.getContentPane().add(btnSeDconnecter);
+
+ JButton btnFeedback = new JButton("Feedback");
+ btnFeedback.setFont(new Font("Consolas", Font.BOLD, 16));
+ btnFeedback.setBounds(10, 655, 213, 37);
+ frame.getContentPane().add(btnFeedback);
+
+ JButton btnFeedback_1 = new JButton("Il s'agit de quoi?");
+ btnFeedback_1.setFont(new Font("Consolas", Font.BOLD, 16));
+ btnFeedback_1.setBounds(238, 13, 213, 37);
+ frame.getContentPane().add(btnFeedback_1);
+
+ JLabel btnFautChoisirUn = new JLabel("Faut choisir un th\u00E8me d'abord");
+ btnFautChoisirUn.setOpaque(false);
+ btnFautChoisirUn.setBounds(684, 20, 231, 21);
+ btnFautChoisirUn.setVisible(false);
+ frame.getContentPane().add(btnFautChoisirUn);
+ frame.setBounds(100, 100, 1340, 786);
+ frame.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
+ Jouer jeu = new Jouer();
+ }
+}