diff --git a/analyseWriter.jar b/analyseWriter.jar
index cd9025a..a1ca7b2 100644
Binary files a/analyseWriter.jar and b/analyseWriter.jar differ
diff --git a/bin/.gitignore b/bin/.gitignore
index 62b80c5..4d1304e 100644
--- a/bin/.gitignore
+++ b/bin/.gitignore
@@ -1,3 +1,7 @@
+/MEPTL/
+/action/
+/calcul/
+/evaluer/
/fenetres/
/list/
/menucontextuel/
@@ -5,7 +9,3 @@
/sousmenuEvaluation/
/sousmenuRecherche/
/sousmenuRepresentation/
-/MEPTL/
-/action/
-/evaluer/
-/resources/
diff --git a/bin/MEPTL/commandes.class b/bin/MEPTL/commandes.class
index 0c7d69f..f830a4d 100644
Binary files a/bin/MEPTL/commandes.class and b/bin/MEPTL/commandes.class differ
diff --git a/bin/chargehistoriqueevaluation.png b/bin/chargehistoriqueevaluation.png
new file mode 100644
index 0000000..f577a8d
Binary files /dev/null and b/bin/chargehistoriqueevaluation.png differ
diff --git a/bin/chargehistoriqueevaluationmini.png b/bin/chargehistoriqueevaluationmini.png
new file mode 100644
index 0000000..d1b6542
Binary files /dev/null and b/bin/chargehistoriqueevaluationmini.png differ
diff --git a/bin/fenetres/attributs$10.class b/bin/fenetres/attributs$10.class
index 48c57ca..8554830 100644
Binary files a/bin/fenetres/attributs$10.class and b/bin/fenetres/attributs$10.class differ
diff --git a/bin/fenetres/attributs$11.class b/bin/fenetres/attributs$11.class
index 03eb6a9..f08fd04 100644
Binary files a/bin/fenetres/attributs$11.class and b/bin/fenetres/attributs$11.class differ
diff --git a/bin/fenetres/attributs$MyMouseListener.class b/bin/fenetres/attributs$MyMouseListener.class
index 276ca0b..8d3f988 100644
Binary files a/bin/fenetres/attributs$MyMouseListener.class and b/bin/fenetres/attributs$MyMouseListener.class differ
diff --git a/bin/fenetres/attributs.class b/bin/fenetres/attributs.class
index e1ffa54..b5ea41c 100644
Binary files a/bin/fenetres/attributs.class and b/bin/fenetres/attributs.class differ
diff --git a/bin/fenetres/evaluate$1.class b/bin/fenetres/evaluate$1.class
index 08cfa60..01d3fdf 100644
Binary files a/bin/fenetres/evaluate$1.class and b/bin/fenetres/evaluate$1.class differ
diff --git a/bin/fenetres/evaluate$10.class b/bin/fenetres/evaluate$10.class
index 2f1163a..5297add 100644
Binary files a/bin/fenetres/evaluate$10.class and b/bin/fenetres/evaluate$10.class differ
diff --git a/bin/fenetres/evaluate$11.class b/bin/fenetres/evaluate$11.class
index 60232fd..4e84d34 100644
Binary files a/bin/fenetres/evaluate$11.class and b/bin/fenetres/evaluate$11.class differ
diff --git a/bin/fenetres/evaluate$12.class b/bin/fenetres/evaluate$12.class
index 982a9b0..e9f2f22 100644
Binary files a/bin/fenetres/evaluate$12.class and b/bin/fenetres/evaluate$12.class differ
diff --git a/bin/fenetres/evaluate$13.class b/bin/fenetres/evaluate$13.class
index 4a506ae..fb46b65 100644
Binary files a/bin/fenetres/evaluate$13.class and b/bin/fenetres/evaluate$13.class differ
diff --git a/bin/fenetres/evaluate$14.class b/bin/fenetres/evaluate$14.class
index e4b8a5c..080382b 100644
Binary files a/bin/fenetres/evaluate$14.class and b/bin/fenetres/evaluate$14.class differ
diff --git a/bin/fenetres/evaluate$15.class b/bin/fenetres/evaluate$15.class
index 09875ed..e6c75da 100644
Binary files a/bin/fenetres/evaluate$15.class and b/bin/fenetres/evaluate$15.class differ
diff --git a/bin/fenetres/evaluate$2.class b/bin/fenetres/evaluate$2.class
index 7349da2..5320270 100644
Binary files a/bin/fenetres/evaluate$2.class and b/bin/fenetres/evaluate$2.class differ
diff --git a/bin/fenetres/evaluate$3.class b/bin/fenetres/evaluate$3.class
index f36d01a..b9d5262 100644
Binary files a/bin/fenetres/evaluate$3.class and b/bin/fenetres/evaluate$3.class differ
diff --git a/bin/fenetres/evaluate$4.class b/bin/fenetres/evaluate$4.class
index 54253f2..bb6f43f 100644
Binary files a/bin/fenetres/evaluate$4.class and b/bin/fenetres/evaluate$4.class differ
diff --git a/bin/fenetres/evaluate$5.class b/bin/fenetres/evaluate$5.class
index b7cfc7a..0a1d336 100644
Binary files a/bin/fenetres/evaluate$5.class and b/bin/fenetres/evaluate$5.class differ
diff --git a/bin/fenetres/evaluate$6.class b/bin/fenetres/evaluate$6.class
index 34cb524..28b35c3 100644
Binary files a/bin/fenetres/evaluate$6.class and b/bin/fenetres/evaluate$6.class differ
diff --git a/bin/fenetres/evaluate$7.class b/bin/fenetres/evaluate$7.class
index 9160350..99da6d4 100644
Binary files a/bin/fenetres/evaluate$7.class and b/bin/fenetres/evaluate$7.class differ
diff --git a/bin/fenetres/evaluate$8.class b/bin/fenetres/evaluate$8.class
index d848e96..a155753 100644
Binary files a/bin/fenetres/evaluate$8.class and b/bin/fenetres/evaluate$8.class differ
diff --git a/bin/fenetres/evaluate$9.class b/bin/fenetres/evaluate$9.class
index 59eb7c1..fc60d39 100644
Binary files a/bin/fenetres/evaluate$9.class and b/bin/fenetres/evaluate$9.class differ
diff --git a/bin/fenetres/evaluate.class b/bin/fenetres/evaluate.class
index 5440cb4..c6b6b49 100644
Binary files a/bin/fenetres/evaluate.class and b/bin/fenetres/evaluate.class differ
diff --git a/bin/newlogo.png b/bin/newlogo.png
new file mode 100644
index 0000000..1ef0a3a
Binary files /dev/null and b/bin/newlogo.png differ
diff --git a/bin/newlogo.svg b/bin/newlogo.svg
new file mode 100644
index 0000000..62b7587
--- /dev/null
+++ b/bin/newlogo.svg
@@ -0,0 +1,59 @@
+
+
+
+
diff --git a/bin/newlogomini.png b/bin/newlogomini.png
new file mode 100644
index 0000000..d447ab3
Binary files /dev/null and b/bin/newlogomini.png differ
diff --git a/bin/nonewlogo.png b/bin/nonewlogo.png
new file mode 100644
index 0000000..3b28faf
Binary files /dev/null and b/bin/nonewlogo.png differ
diff --git a/bin/nonewlogomini.png b/bin/nonewlogomini.png
new file mode 100644
index 0000000..e6599b4
Binary files /dev/null and b/bin/nonewlogomini.png differ
diff --git a/bin/resources/chargehistoriqueevaluation.png b/bin/resources/chargehistoriqueevaluation.png
new file mode 100644
index 0000000..f577a8d
Binary files /dev/null and b/bin/resources/chargehistoriqueevaluation.png differ
diff --git a/bin/resources/chargehistoriqueevaluationmini.png b/bin/resources/chargehistoriqueevaluationmini.png
new file mode 100644
index 0000000..d1b6542
Binary files /dev/null and b/bin/resources/chargehistoriqueevaluationmini.png differ
diff --git a/bin/resources/newlogo.png b/bin/resources/newlogo.png
new file mode 100644
index 0000000..1ef0a3a
Binary files /dev/null and b/bin/resources/newlogo.png differ
diff --git a/bin/resources/newlogomini.png b/bin/resources/newlogomini.png
new file mode 100644
index 0000000..d447ab3
Binary files /dev/null and b/bin/resources/newlogomini.png differ
diff --git a/bin/resources/nonewlogo.png b/bin/resources/nonewlogo.png
new file mode 100644
index 0000000..3b28faf
Binary files /dev/null and b/bin/resources/nonewlogo.png differ
diff --git a/bin/resources/nonewlogomini.png b/bin/resources/nonewlogomini.png
new file mode 100644
index 0000000..e6599b4
Binary files /dev/null and b/bin/resources/nonewlogomini.png differ
diff --git a/bin/resources/sauvegardehistoriqueevaluation.png b/bin/resources/sauvegardehistoriqueevaluation.png
new file mode 100644
index 0000000..f5559bc
Binary files /dev/null and b/bin/resources/sauvegardehistoriqueevaluation.png differ
diff --git a/bin/resources/sauvegardehistoriqueevaluationmini.png b/bin/resources/sauvegardehistoriqueevaluationmini.png
new file mode 100644
index 0000000..399e6ac
Binary files /dev/null and b/bin/resources/sauvegardehistoriqueevaluationmini.png differ
diff --git a/bin/sauvegardeHistoriqueEvaluation.svg b/bin/sauvegardeHistoriqueEvaluation.svg
new file mode 100644
index 0000000..66c3e7f
--- /dev/null
+++ b/bin/sauvegardeHistoriqueEvaluation.svg
@@ -0,0 +1,64 @@
+
+
+
+
diff --git a/bin/sauvegardehistoriqueevaluation.png b/bin/sauvegardehistoriqueevaluation.png
new file mode 100644
index 0000000..f5559bc
Binary files /dev/null and b/bin/sauvegardehistoriqueevaluation.png differ
diff --git a/bin/sauvegardehistoriqueevaluationmini.png b/bin/sauvegardehistoriqueevaluationmini.png
new file mode 100644
index 0000000..399e6ac
Binary files /dev/null and b/bin/sauvegardehistoriqueevaluationmini.png differ
diff --git a/icons/newlogo.png b/icons/newlogo.png
new file mode 100644
index 0000000..1ef0a3a
Binary files /dev/null and b/icons/newlogo.png differ
diff --git a/icons/newlogo.svg b/icons/newlogo.svg
new file mode 100644
index 0000000..62b7587
--- /dev/null
+++ b/icons/newlogo.svg
@@ -0,0 +1,59 @@
+
+
+
+
diff --git a/icons/newlogomini.png b/icons/newlogomini.png
new file mode 100644
index 0000000..d447ab3
Binary files /dev/null and b/icons/newlogomini.png differ
diff --git a/icons/nonewlogo.png b/icons/nonewlogo.png
new file mode 100644
index 0000000..3b28faf
Binary files /dev/null and b/icons/nonewlogo.png differ
diff --git a/icons/nonewlogomini.png b/icons/nonewlogomini.png
new file mode 100644
index 0000000..e6599b4
Binary files /dev/null and b/icons/nonewlogomini.png differ
diff --git a/src/MEPTL/commandes.java b/src/MEPTL/commandes.java
index 3ef8060..1c0f2df 100644
--- a/src/MEPTL/commandes.java
+++ b/src/MEPTL/commandes.java
@@ -21,10 +21,17 @@ public class commandes {
//** Le node du fichier d'analyse
public static node sujet = new node();
public static node sujetSauvegarde = new node();
+
+ //** Le node base de données des évaluations
+ public static node evaluationsBase = null;
+
+ //** L'arbre
public static JTree tree = new JTree();
+
+ //** Le node CSV - liste des étudiants
public static node nodeCSV = null;
- //**version
+ //** Version
public static String version ="V4.4.3"; // La version actuelle
public static String branch = "Origin";
public static String Annee ="2023";
diff --git a/src/action/actOpenHistoriqueEvaluation.java b/src/action/actOpenHistoriqueEvaluation.java
index 28a7345..e7edb5f 100644
--- a/src/action/actOpenHistoriqueEvaluation.java
+++ b/src/action/actOpenHistoriqueEvaluation.java
@@ -1,11 +1,19 @@
package action;
import java.awt.event.ActionEvent;
+import java.io.BufferedReader;
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.InputStreamReader;
import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
+import javax.swing.filechooser.FileSystemView;
+import MEPTL.commandes;
+import cXML.node;
+import fenetres.chargeEvaluations;
import fenetres.create;
public class actOpenHistoriqueEvaluation extends AbstractAction{
@@ -18,7 +26,46 @@ public class actOpenHistoriqueEvaluation extends AbstractAction{
@Override
public void actionPerformed(ActionEvent e) {
-
+ nodeEvaluations();
+ if(commandes.evaluationsBase!=null) {
+ chargeEvaluations.getInstance();
+ }
+ }
+
+ private void nodeEvaluations() {
+
+ File directory = new File(FileSystemView.getFileSystemView().getDefaultDirectory().getPath());
+ if (directory.exists()){
+ File file = null;
+ if(commandes.os.contains("Win")) {
+ file = new File(directory.getAbsolutePath() + "\\" + "base_evaluations_analyseWriter.xml");
+ }else {
+ file = new File(directory.getAbsolutePath() + "/" + "base_evaluations_analyseWriter.xml");
+ }
+ if(file!=null) {
+ BufferedReader br;
+ try {
+ br = new BufferedReader(
+ new InputStreamReader(
+ new FileInputStream(file.getAbsoluteFile()), "UTF-8"));
+ String line;
+ StringBuilder targetString = new StringBuilder();
+ while ((line = br.readLine()) != null) {
+ targetString.append(line);
+ }
+ node evaluations = new node(targetString.toString().replace("\t","").replace("\r", "").replace("\n", ""));
+ if(evaluations!=null) {
+ if(evaluations.getNodes().size()>0) {
+ if(evaluations.getNodes().get(0).getNomElt().equals("evaluation")) {
+ commandes.evaluationsBase = evaluations;
+ }
+ }
+ }
+ }catch (Exception e) {
+
+ }
+ }
+ }
}
}
diff --git a/src/action/actSaveHistoriqueEvaluation.java b/src/action/actSaveHistoriqueEvaluation.java
index 7e90eb1..599e928 100644
--- a/src/action/actSaveHistoriqueEvaluation.java
+++ b/src/action/actSaveHistoriqueEvaluation.java
@@ -5,7 +5,10 @@ import java.awt.event.KeyEvent;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
+import java.io.IOException;
import java.io.InputStreamReader;
+import java.text.ParseException;
+import java.util.Date;
import javax.swing.AbstractAction;
import javax.swing.Action;
@@ -14,6 +17,7 @@ import javax.swing.JOptionPane;
import javax.swing.filechooser.FileSystemView;
import MEPTL.commandes;
+import cXML.Run;
import cXML.node;
import fenetres.create;
@@ -36,11 +40,21 @@ public class actSaveHistoriqueEvaluation extends AbstractAction{
if(!name.isBlank()) {
node evaluations = nodeEvaluations();
if(!isEvaluationExist(evaluations, name)) {
- sauvegardeEvaluation(new node(), name);
+ evaluations.getNodes().add(creationNodeEvaluation(new node(), name));
}else {
- sauvegardeEvaluation(evaluations.retourneFirstNodeByNameAndAttributValueExactStrict("evaluation", "name", name), name);
+ evaluations.getNodes().add(creationNodeEvaluation(evaluations.retourneFirstNodeByNameAndAttributValueExactStrict("evaluation", "name", name), name));
}
+ //Mise à jour de la base de données
+ Date aujourdhui = new Date();
+ evaluations.getAttributs().put("version", commandes.version);
+ try {
+ evaluations.getAttributs().put("date", calcul.formatDateWriter.DateLibreOffice(aujourdhui));
+ ecritureBaseEvaluation(evaluations);
+ } catch (ParseException | IOException e1) {
+ e1.printStackTrace();
+ }
+
}
@@ -49,20 +63,23 @@ public class actSaveHistoriqueEvaluation extends AbstractAction{
}
private boolean isEvaluationExist(node evaluations, String nameEvaluation) {
- if(evaluations.retourneFirstNodeByNameAndAttributValueExactStrict("evaluation", "name", nameEvaluation)!=null) return true;
+ if(evaluations!=null) {
+ if(evaluations.retourneFirstNodeByNameAndAttributValueExactStrict("evaluation", "name", nameEvaluation)!=null) return true;
+ }
return false;
}
- @SuppressWarnings("unused")
+
private node nodeEvaluations() {
- node evaluations = null;
+ node evaluations = new node();
+ evaluations.setNomElt("evaluations");
File directory = new File(FileSystemView.getFileSystemView().getDefaultDirectory().getPath());
if (directory.exists()){
File file = null;
if(commandes.os.contains("Win")) {
- file = new File(directory.getAbsolutePath() + "\\" + "evaluations.xml");
+ file = new File(directory.getAbsolutePath() + "\\" + "base_evaluations_analyseWriter.xml");
}else {
- file = new File(directory.getAbsolutePath() + "/" + "evaluations.xml");
+ file = new File(directory.getAbsolutePath() + "/" + "base_evaluations_analyseWriter.xml");
}
if(file!=null) {
BufferedReader br;
@@ -75,24 +92,23 @@ public class actSaveHistoriqueEvaluation extends AbstractAction{
while ((line = br.readLine()) != null) {
targetString.append(line);
}
- evaluations = new node(targetString.toString());
+ evaluations = new node(targetString.toString().replace("\t","").replace("\r", "").replace("\n", ""));
}catch (Exception e) {
- // TODO: handle exception
+
}
- }else {
- evaluations = new node();
- evaluations.setNomElt("evaluations");
}
}
return evaluations;
}
- private void sauvegardeEvaluation(node evaluation, String name) {
+ private node creationNodeEvaluation(node evaluation, String name) {
evaluation.setNomElt("evaluation");
+ Date aujourdhui = new Date();
+ evaluation.getAttributs().put("version", commandes.version);
evaluation.getAttributs().put("name", name);
evaluation.getAttributs().put("PathFilenameAnalysis", commandes.PathFilenameAnalysis);
- evaluation.getAttributs().put("path", commandes.path );
- evaluation.getAttributs().put("fichierStudentMoodle", String.valueOf(commandes.fichierStudentMoodle) );
+ evaluation.getAttributs().put("path", commandes.path);
+ evaluation.getAttributs().put("fichierStudentMoodle", String.valueOf(commandes.fichierStudentMoodle));
evaluation.getAttributs().put("sansFeeback", String.valueOf(commandes.sansFeeback) );
evaluation.getAttributs().put("noDetail", String.valueOf(commandes.noDetail) );
evaluation.getAttributs().put("noNote", String.valueOf(commandes.noNote) );
@@ -111,6 +127,13 @@ public class actSaveHistoriqueEvaluation extends AbstractAction{
evaluation.getNodes().add(commandes.sujet);
evaluation.getNodes().add(commandes.nodeCSV);
+ try {
+ evaluation.getAttributs().put("date", calcul.formatDateWriter.DateLibreOffice(aujourdhui));
+ } catch (ParseException e) {
+ e.printStackTrace();
+ }
+
+
if(!commandes.nameSVG.isBlank() && !commandes.contenuFichierSVG.isBlank()) {
node SVG = new node();
SVG.setNomElt("nodSVG");
@@ -118,7 +141,12 @@ public class actSaveHistoriqueEvaluation extends AbstractAction{
evaluation.getNodes().add(SVG);
}
+ return evaluation;
}
-
+
+ private void ecritureBaseEvaluation(node evaluations) throws IOException {
+ File directory = new File(FileSystemView.getFileSystemView().getDefaultDirectory().getPath());
+ Run.ecritureNodeEnXML(evaluations, "base_evaluations_analyseWriter.xml", directory.getAbsolutePath(), Run.TypeFile.Evaluation);
+ }
}
diff --git a/src/fenetres/attributs.java b/src/fenetres/attributs.java
index 1410733..3d057be 100644
--- a/src/fenetres/attributs.java
+++ b/src/fenetres/attributs.java
@@ -212,7 +212,8 @@ public class attributs extends JFrame {
JPanel panelCentre = new JPanel();
scrollPaneCentre.setViewportView(panelCentre);
- panelCentre.setLayout(new MigLayout("", "[100px:n,grow][150px:n,grow 150][::80px][80px:n]", "[::20px][::20px][::20px][::20px][::20px][::20px][::20px][::20px][::20px][::20px][::20px][::20px][::20px][::20px][::20px][::20px][::20px][::20px][::20px][::20px][::20px][::20px][::20px][::20px][::20px]"));
+ panelCentre.setLayout(new MigLayout("gap rel 0", "[100px:n,grow][150px:n,grow 150][::80px][80px:n]",
+ "[::20px][::20px][::20px][::20px][::20px][::20px][::20px][::20px][::20px][::20px][::20px][::20px][::20px][::20px][::20px][::20px][::20px][::20px][::20px][::20px][::20px][::20px][::20px][::20px][::20px]"));
JLabel lblNewLabel = new JLabel("Nom attribut");
lblNewLabel.setFont(new Font("Tahoma", Font.BOLD, 11));
diff --git a/src/fenetres/chargeEvaluations.java b/src/fenetres/chargeEvaluations.java
new file mode 100644
index 0000000..bc90d1a
--- /dev/null
+++ b/src/fenetres/chargeEvaluations.java
@@ -0,0 +1,233 @@
+package fenetres;
+
+import java.awt.BorderLayout;
+import java.awt.Color;
+import java.awt.Component;
+import java.awt.FlowLayout;
+import java.awt.Font;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.awt.event.MouseAdapter;
+import java.awt.event.MouseEvent;
+import java.awt.event.MouseListener;
+import java.util.ArrayList;
+
+import javax.swing.FocusManager;
+import javax.swing.ImageIcon;
+import javax.swing.JButton;
+import javax.swing.JFrame;
+import javax.swing.JLabel;
+import javax.swing.JPanel;
+import javax.swing.JRadioButton;
+import javax.swing.JScrollPane;
+import javax.swing.border.EmptyBorder;
+
+import MEPTL.commandes;
+import cXML.node;
+import net.miginfocom.swing.MigLayout;
+
+public class chargeEvaluations extends JFrame {
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = 1L;
+ private static chargeEvaluations instance;
+ private JPanel contentPane;
+ ArrayList LeslabelsTitre = new ArrayList();
+ ArrayList LeslabelsMeta = new ArrayList();
+ ArrayList LeslabelsDate = new ArrayList();
+ ArrayList LesRadioButtons = new ArrayList();
+ int indexSelect=0;
+
+
+
+ /**
+ * Create the frame.
+ */
+ public static chargeEvaluations getInstance() {
+
+ if (instance == null) {
+ instance = new chargeEvaluations();
+ }
+// instance.actualise();
+// instance.setVisible(true);
+ return instance;
+ }
+
+
+ public chargeEvaluations() {
+ setBounds(100, 100, 870, 600);
+ setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
+
+ setBounds(100, 100, 806, 669);
+ int screenWidth = (int) java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds().getWidth();
+ int screenHeight = (int) java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds().getHeight();
+ setLocation(( (screenWidth) - getWidth()) / 2, (screenHeight - getHeight()) / 2);
+
+ ImageIcon img = new ImageIcon(getClass().getResource("/evalwriter.png") );
+ setIconImage(img.getImage());
+ setTitle(commandes.Titre + " - La base de données des évaluations");
+
+
+ contentPane = new JPanel();
+ contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
+ setContentPane(contentPane);
+ contentPane.setLayout(new BorderLayout(0, 0));
+
+ JPanel panelGauche = new JPanel();
+ contentPane.add(panelGauche, BorderLayout.WEST);
+
+ JPanel panelHaut = new JPanel();
+ contentPane.add(panelHaut, BorderLayout.NORTH);
+
+ JLabel lblInformationBaseEvluation = new JLabel("");
+ lblInformationBaseEvluation.setFont(new Font("Tahoma", Font.BOLD, 14));
+ panelHaut.add(lblInformationBaseEvluation);
+
+ JPanel panelBas = new JPanel();
+ contentPane.add(panelBas, BorderLayout.SOUTH);
+ panelBas.setLayout(new FlowLayout(FlowLayout.RIGHT, 5, 5));
+
+ JButton btnValide = new JButton("Charger l'évaluation");
+ btnValide.setFont(new Font("Tahoma", Font.BOLD, 12));
+ btnValide.setForeground(Color.RED);
+ panelBas.add(btnValide);
+
+ JScrollPane scrollPaneCentre = new JScrollPane();
+ contentPane.add(scrollPaneCentre, BorderLayout.CENTER);
+
+ JPanel panelCentre = new JPanel();
+ scrollPaneCentre.setViewportView(panelCentre);
+ panelCentre.setLayout(new MigLayout("gap rel 0", "[100px:n,grow][50px:n,grow][150px:n,grow 150][150px:n,grow 150]",
+ "[20px:20px:20px,shrinkprio 0,shrink 0][20px:20px:20px,shrinkprio 0,shrink 0][20px:20px:20px,shrinkprio 0,shrink 0][20px:20px:20px,shrinkprio 0,shrink 0][20px:20px:20px,shrinkprio 0,shrink 0][20px:20px:20px,shrinkprio 0,shrink 0][20px:20px:20px,shrinkprio 0,shrink 0][20px:20px:20px,shrinkprio 0,shrink 0][20px:20px:20px,shrinkprio 0,shrink 0][20px:20px:20px,shrinkprio 0,shrink 0][20px:20px:20px,shrinkprio 0,shrink 0][20px:20px:20px,shrinkprio 0,shrink 0][20px:20px:20px,shrinkprio 0,shrink 0][20px:20px:20px,shrinkprio 0,shrink 0][20px:20px:20px,shrinkprio 0,shrink 0][20px:20px:20px,shrinkprio 0,shrink 0][20px:20px:20px,shrinkprio 0,shrink 0][20px:20px:20px,shrinkprio 0,shrink 0][20px:20px:20px,shrinkprio 0,shrink 0][20px:20px:20px,shrinkprio 0,shrink 0][20px:20px:20px,shrinkprio 0,shrink 0][20px:20px:20px,shrinkprio 0,shrink 0][20px:20px:20px,shrinkprio 0,shrink 0][20px:20px:20px,shrinkprio 0,shrink 0][20px:20px:20px,shrinkprio 0,shrink 0]"));
+
+
+ String dateDernierEnregistrement = commandes.evaluationsBase.getAttributs().get("date");
+
+ String nombreEvluation = String.valueOf(commandes.evaluationsBase.getNodes().size());
+
+ lblInformationBaseEvluation.setText("Date dernier enregistrement : " + dateDernierEnregistrement + " -- Nombre d'évaluation : " + nombreEvluation);
+
+ for(int i = 0 ; iDossier de l'analyse :
" + commandes.path.substring(commandes.path.lastIndexOf("\\")+1,commandes.path.length()) + "");
- lblFileAnalyse.setText("Fichier de l'analyse :
" + commandes.analysis_filename + "");
- lblFichierSVG.setText("Fichier SVG :
" + commandes.nameSVG.substring(commandes.nameSVG.lastIndexOf("\\")+1,commandes.nameSVG.length()) + "");
- lblFichierCSV.setText("Fichier CSV :
" + commandes.nameCSV + "");
+ if(commandes.path!=null) lblPath.setText("Dossier de l'analyse :
" + commandes.path.substring(commandes.path.lastIndexOf("\\")+1,commandes.path.length()) + "");
+ if(commandes.analysis_filename!=null) lblFileAnalyse.setText("Fichier de l'analyse :
" + commandes.analysis_filename + "");
+ if(commandes.nameSVG!=null) lblFichierSVG.setText("Fichier SVG :
" + commandes.nameSVG.substring(commandes.nameSVG.lastIndexOf("\\")+1,commandes.nameSVG.length()) + "");
+ if(commandes.nameCSV!=null) lblFichierCSV.setText("Fichier CSV :
" + commandes.nameCSV + "");
}