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ecf..f5b9b95 100644
--- a/src/baseEvaluations/recupeNodeBaseEvaluations.java
+++ b/src/baseEvaluations/recupeNodeBaseEvaluations.java
@@ -16,7 +16,7 @@ import cXML.node;
public class recupeNodeBaseEvaluations {
/**
- * Récupère la base des évaluation qui se trouve indiqué par commandes.PathBaseEvaluationDefaut ou commandes.PathBaseEvaluations.
+ * Récupère la base des évaluations qui se trouve indiqué par commandes.PathBaseEvaluationDefaut ou commandes.PathBaseEvaluations.
*/
public recupeNodeBaseEvaluations() {
String directoryName = "";
diff --git a/src/fenetres/create.java b/src/fenetres/create.java
index 87c889a..6d8580e 100644
--- a/src/fenetres/create.java
+++ b/src/fenetres/create.java
@@ -25,6 +25,7 @@ import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JSplitPane;
+import javax.swing.JTable;
import javax.swing.JToolBar;
import javax.swing.JTree;
import javax.swing.KeyStroke;
@@ -91,6 +92,7 @@ public final class create extends JFrame {
private static create instance;
public static boolean isDispose = true;
private static JLabel lblInfo = new JLabel("Fichier d'analyse");
+ private static JTable table = new JTable();
/**
* Création de la fenêtre.
*/
@@ -149,6 +151,8 @@ public final class create extends JFrame {
// Construction et injection de la barre de menu
setJMenuBar( this.createMenuBar() );
+
+ // coloration et nombre de ligne de l'arbre
tree.setBackground(new Color(255, 255, 255));
tree.setVisibleRowCount(30);
@@ -187,10 +191,17 @@ public final class create extends JFrame {
JScrollPane rightScrollPane = new JScrollPane( );
-// JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, leftScrollPane, rightScrollPane );
- JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, panelLeft, rightScrollPane );
- splitPane.setBounds(10, 10, 1364, 783); //10, 10, 1364, 783
- splitPane.setDividerLocation(0.25);
+
+ JSplitPane splitPane2 = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, rightScrollPane, table );
+ splitPane2.setBounds(10, 10, 1364, 783);
+ splitPane2.setDividerLocation(0.5);
+
+
+// JSplitPane splitPane1 = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, panelLeft, rightScrollPane );
+ JSplitPane splitPane1 = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, panelLeft, splitPane2 );
+ splitPane1.setBounds(10, 10, 1364, 783); //10, 10, 1364, 783
+ splitPane1.setDividerLocation(0.25);
+
textNodeSelect.setBackground(new Color(255, 242, 155));
rightScrollPane.setViewportView(textNodeSelect);
@@ -199,15 +210,18 @@ public final class create extends JFrame {
leftScrollPane.setViewportView(tree);
tree.setFont(new Font("Tahoma", Font.PLAIN, 16));
- getContentPane().add(splitPane, BorderLayout.CENTER);
+ getContentPane().add(splitPane1, BorderLayout.CENTER);
panelPrincipal.setLayout(new GridLayout(1, 1, 0, 0));
panelPrincipal.add(toolBarPrincipal);
if(commandes.fichierAnalyseValide) {
tree.setVisible(true);
+ table.setModel(new myTableModel(commandes.sujet.retourneFirstEnfantsByName("structurepage")));
+ table.setVisible(true);
constructionTree();
}else {
tree.setVisible(false);
+ table.setVisible(false);
}
this.setExtendedState(MAXIMIZED_BOTH);
@@ -617,11 +631,9 @@ public final class create extends JFrame {
root = new DefaultMutableTreeNode(commandes.sujet,true);
root = addNodeMutable(commandes.sujet, root);
-
commandes.tree = new JTree(root);
-
tree.setCellRenderer(new MyTreeCellRenderer());
// tree.setCellRenderer(new MyCellRenderer());
@@ -678,9 +690,12 @@ public final class create extends JFrame {
fenetres.create.getTextNodeSelect().afficheChargementFichierAnalyse();
// fenetres.create.getTglbtnTousLesNodes().setSelected(false);
fenetres.create.getButtonEvaluate().setEnabled(true);
- fenetres.create.getTextNodeSelect().afficheChargementFichierAnalyse();
- }else {
+ fenetres.create.getTextNodeSelect().afficheChargementFichierAnalyse();
+ table.setModel(new myTableModel(commandes.sujet.retourneFirstEnfantsByName("structurepage")));
+ table.setVisible(true);
+ }else {
fenetres.create.getTextNodeSelect().setContentType("text/plain");
+ table.setVisible(false);
}
}
diff --git a/src/fenetres/myTableModel.java b/src/fenetres/myTableModel.java
new file mode 100644
index 0000000..eb09f3d
--- /dev/null
+++ b/src/fenetres/myTableModel.java
@@ -0,0 +1,45 @@
+package fenetres;
+
+import java.util.List;
+
+import javax.swing.table.AbstractTableModel;
+
+import cXML.node;
+
+
+
+public class myTableModel extends AbstractTableModel{
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = 1L;
+ Integer ColumnCount = 1;
+ Integer RowCount = 0;
+ node structure;
+ List ListParagraph;
+
+
+ public myTableModel(node structurepage) {
+ this.structure = structurepage;
+ ListParagraph = structure.getNodeText();
+ RowCount = ListParagraph.size();
+ }
+
+
+ @Override
+ public int getRowCount() {
+ return RowCount;
+ }
+
+ @Override
+ public int getColumnCount() {
+ return 1;
+ }
+
+ @Override
+ public Object getValueAt(int rowIndex, int columnIndex) {
+ return ListParagraph.get(rowIndex);
+ }
+
+}