ࡱ > 0 2 - . / [ 0 w bjbj 4 ΐ ΐ o \ ^# 0 h h h h h C C C # # # # # # # $ 0' R # C C C C C # h h # " " " C h h # " C # " " " h ) ! " " .# 0 ^# " ' c" " ' " ' " h C C " C C C C C # # " C C C ^# C C C C ' C C C C C C C C C : package MIVGC;
import MIVGC.toutclasse.Connexion;
import javax.swing.*;
import java.awt.event.*;
import java.awt.Component;
import javax.media.*;
import javax.media.control.FramePositioningControl;
import javax.media.control.FrameGrabbingControl;
import java.lang.String;
import java.awt.image.BufferedImage;
import com.sun.image.codec.jpeg.*;
import java.io.*;
import com.sun.xml.internal.bind.v2.TODO;
import org.jdom.*;
import java.awt.Component;
import java.lang.String;
import java.io.*;
import org.jdom.Element;
import java.util.Iterator;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.jdom.Document;
import java.awt.Component;
import java.awt.FileDialog;
import java.io.File;
import javax.swing.JFileChooser;
import javax.swing.JTree;
import javax.swing.SwingWorker;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeCellRenderer;
import javax.swing.tree.DefaultTreeModel;
import org.jdom.input.SAXBuilder;
import org.jdom.JDOMException;
import java.util.ListIterator;
import java.util.Vector;
import javax.swing.JOptionPane;
import org.jdom.output.XMLOutputter;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.Connection;
import java.sql.SQLException;
import oracle.jdbc.pool.OracleDataSource;
import javax.media.ControllerEvent;
import javax.media.ControllerListener;
import javax.media.EndOfMediaEvent;
import javax.media.Manager;
import javax.media.MediaLocator;
import javax.media.Player;
import javax.media.RealizeCompleteEvent;
import javax.swing.*;
import java.awt.event.*;
import java.awt.Component;
import javax.media.control.FramePositioningControl;
import javax.media.control.FrameGrabbingControl;
import javax.media.Time;
import javax.media.Buffer;
import java.lang.String;
import java.util.*;
import javax.media.format.VideoFormat;
import java.awt.image.BufferedImage;
import javax.media.util.BufferToImage;
import com.sun.image.codec.jpeg.JPEGImageEncoder;
import com.sun.image.codec.jpeg.JPEGCodec;
import com.sun.image.codec.jpeg.JPEGEncodeParam;
import com.sun.image.codec.jpeg.*;
import java.awt.GraphicsEnvironment;
import java.awt.Rectangle;
import java.io.*;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import javax.swing.table.AbstractTableModel;
import org.jdom.*;
import javax.media.control.FramePositioningControl;
import javax.media.control.FrameGrabbingControl;
import java.lang.String;
import java.io.*;
import java.awt.*;
import javax.swing.*;
import org.jdom.Element;
import com.sun.image.codec.jpeg.JPEGCodec;
import com.sun.image.codec.jpeg.JPEGEncodeParam;
import com.sun.image.codec.jpeg.JPEGImageEncoder;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.image.BufferedImage;
import java.io.FileOutputStream;
import java.sql.ResultSet;
import java.util.Iterator;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.media.ControllerEvent;
import javax.media.ControllerListener;
import javax.media.EndOfMediaEvent;
import javax.media.Manager;
import javax.media.MediaLocator;
import javax.media.Player;
import javax.media.RealizeCompleteEvent;
import org.jdom.Document;
import java.awt.Component;
import java.awt.event.ActionEvent;
import java.io.File;
import java.sql.SQLException;
import java.sql.Statement;
import javax.swing.JButton;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JTree;
import javax.swing.SwingWorker;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeCellRenderer;
import javax.swing.tree.DefaultTreeModel;
import javax.swing.tree.TreePath;
import org.jdom.input.SAXBuilder;
import org.jdom.JDOMException;
import org.jdom.output.XMLOutputter;
public class Accueil_Analyse extends javax.swing.JFrame {
public Component pc;
FramePositioningControl fpc;
FrameGrabbingControl fgc;
int totalFrames = FramePositioningControl.FRAME_UNKNOWN;
private JPanel vp;
private String audioFile;
public JTable table;
JFileChooser jf;
private Object tx;
public JTree ontologie;
public static Mot tablesp[] = new Mot[200];
public JTree S;
public Document xmlDoc;
public Player player;
public DefaultMutableTreeNode tn;
public String DDD;
public boolean test = false;
public org.jdom.Document doc1;
public org.jdom.Document docc;
public org.jdom.Document doca;
public org.jdom.Document doc2;
public org.jdom.Document doc3;
public org.jdom.Document doc4;
public org.jdom.Document doctsf;
public org.jdom.Element racine1;
public org.jdom.Element racine2;
public org.jdom.Element racinec;
public org.jdom.Document docb;
public org.jdom.Element docb1;
public org.jdom.Element racineb;
public org.jdom.Element racineb1;
public org.jdom.Element racinea;
public String CA;
public String CB;
public Fill fill = new Fill();
public String mot;
public String phrase;
public String phrase1;
public Document xmldoc;
public org.jdom.Element racine11;
public org.jdom.Element racine22;
public org.jdom.Element racine33;
public String ts;
int occm = 0;
int nbm;
int nbts = 0;
int b = 0;
int ntscf = 0;
boolean test1;
Mot mtsf[] = new Mot[300];
Mot mtsi[] = new Mot[300];
Mot mmi[] = new Mot[1000];
Mot mtscf[] = new Mot[300];
int ltsf = 0;
verb v[] = new verb[5];
public static int ntnf=0 ;// ntnf nombre des termes non frquents
public Accueil_Analyse() {
vp = new JPanel();
vp.setBounds(14, 14,570, 340);
vp.setVisible(false);
this.add(vp, "Center");
vp.setBackground(Color.gray);
Color transparent = new Color (0, 0, 0, 0);
GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment();
Rectangle bounds = env.getMaximumWindowBounds();
super.setBounds(bounds);
tree = new JTree(new DefaultTreeModel(new DefaultMutableTreeNode("Vide")));
tree.setCellRenderer(new FileTreeCellRenderer());
initComponents();
}
@SuppressWarnings("unchecked")
//
private void initComponents() {
jPanel1 = new javax.swing.JPanel();
panel1 = new javax.swing.JPanel();
jPanel4 = new javax.swing.JPanel();
jScrollPane9 = new javax.swing.JScrollPane();
tree = new javax.swing.JTree();
jPanel6 = new javax.swing.JPanel();
jScrollPane3 = new javax.swing.JScrollPane();
concept = new javax.swing.JTextArea();
jPanel13 = new javax.swing.JPanel();
jScrollPane5 = new javax.swing.JScrollPane();
defconcept = new javax.swing.JTextArea();
jPanel16 = new javax.swing.JPanel();
jScrollPane7 = new javax.swing.JScrollPane();
synconcept = new javax.swing.JTextArea();
jPanel8 = new javax.swing.JPanel();
jPanel9 = new javax.swing.JPanel();
jPanel15 = new javax.swing.JPanel();
jScrollPane1 = new javax.swing.JScrollPane();
jTextArea1 = new javax.swing.JTextArea();
jPanel11 = new javax.swing.JPanel();
jTabbedPane1 = new javax.swing.JTabbedPane();
jPanel10 = new javax.swing.JPanel();
jScrollPane12 = new javax.swing.JScrollPane();
jTable7 = new javax.swing.JTable();
jScrollPane13 = new javax.swing.JScrollPane();
jTable11 = new javax.swing.JTable();
jPanel12 = new javax.swing.JPanel();
jScrollPane6 = new javax.swing.JScrollPane();
jTable2 = new javax.swing.JTable();
jScrollPane14 = new javax.swing.JScrollPane();
jTable4 = new javax.swing.JTable();
jPanel14 = new javax.swing.JPanel();
jScrollPane8 = new javax.swing.JScrollPane();
jTable10 = new javax.swing.JTable();
jPanel2 = new javax.swing.JPanel();
Play = new javax.swing.JButton();
Stop = new javax.swing.JButton();
Pause = new javax.swing.JButton();
Play1 = new javax.swing.JButton();
Play2 = new javax.swing.JButton();
menuBar = new javax.swing.JMenuBar();
fileMenu = new javax.swing.JMenu();
jMenu1 = new javax.swing.JMenu();
jMenuItem5 = new javax.swing.JMenuItem();
jMenuItem6 = new javax.swing.JMenuItem();
exitMenuItem = new javax.swing.JMenuItem();
AnalyseMenu = new javax.swing.JMenu();
jMenuextractiontermes_simples = new javax.swing.JMenuItem();
jMenuExtractionterme_composes = new javax.swing.JMenuItem();
jMenuExtractionterme_specifique = new javax.swing.JMenuItem();
IndexationMenu = new javax.swing.JMenu();
RechercheMenu = new javax.swing.JMenu();
IndexGeneralMenu = new javax.swing.JMenu();
helpMenu = new javax.swing.JMenu();
contentsMenuItem = new javax.swing.JMenuItem();
jMenuItem8 = new javax.swing.JMenuItem();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("OSSVIRI");
setBackground(new java.awt.Color(255, 204, 0));
setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N
setForeground(new java.awt.Color(255, 204, 0));
jPanel1.setBackground(new java.awt.Color(32, 127, 217));
panel1.setBackground(new java.awt.Color(163, 203, 241));
panel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 51, 255), 2));
jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(new java.awt.Color(153, 0, 255), new java.awt.Color(153, 0, 255))), "Arbre de l'ontologie", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Times New Roman", 1, 16), new java.awt.Color(153, 0, 255))); // NOI18N
tree.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(51, 0, 255), 1, true));
tree.setFont(new java.awt.Font("Times New Roman", 1, 12));
tree.setForeground(new java.awt.Color(51, 0, 255));
javax.swing.tree.DefaultMutableTreeNode treeNode1 = new javax.swing.tree.DefaultMutableTreeNode("root");
tree.setModel(new javax.swing.tree.DefaultTreeModel(treeNode1));
tree.setName(""); // NOI18N
tree.addTreeSelectionListener(new javax.swing.event.TreeSelectionListener() {
public void valueChanged(javax.swing.event.TreeSelectionEvent evt) {
treeValueChanged(evt);
}
});
jScrollPane9.setViewportView(tree);
javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
jPanel4.setLayout(jPanel4Layout);
jPanel4Layout.setHorizontalGroup(
jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel4Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jScrollPane9, javax.swing.GroupLayout.DEFAULT_SIZE, 219, Short.MAX_VALUE)
.addContainerGap())
);
jPanel4Layout.setVerticalGroup(
jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel4Layout.createSequentialGroup()
.addComponent(jScrollPane9, javax.swing.GroupLayout.DEFAULT_SIZE, 226, Short.MAX_VALUE)
.addContainerGap())
);
jPanel6.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(new java.awt.Color(153, 0, 255), new java.awt.Color(153, 0, 255)), "Concept", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Times New Roman", 1, 16), new java.awt.Color(153, 0, 255)))); // NOI18N
concept.setColumns(20);
concept.setEditable(false);
concept.setForeground(new java.awt.Color(6, 6, 111));
concept.setRows(5);
concept.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(51, 51, 255), 1, true));
concept.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
concept.setDisabledTextColor(new java.awt.Color(6, 6, 111));
concept.setMaximumSize(new java.awt.Dimension(10, 10));
jScrollPane3.setViewportView(concept);
javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
jPanel6.setLayout(jPanel6Layout);
jPanel6Layout.setHorizontalGroup(
jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel6Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 431, Short.MAX_VALUE)
.addContainerGap())
);
jPanel6Layout.setVerticalGroup(
jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 38, Short.MAX_VALUE)
);
jPanel13.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(new java.awt.Color(153, 0, 255), new java.awt.Color(153, 0, 255)), "Dfinition du concept", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Times New Roman", 1, 16), new java.awt.Color(153, 0, 255)))); // NOI18N
defconcept.setColumns(20);
defconcept.setEditable(false);
defconcept.setForeground(new java.awt.Color(6, 6, 111));
defconcept.setRows(5);
defconcept.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(51, 51, 255), 1, true));
defconcept.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
defconcept.setDisabledTextColor(new java.awt.Color(6, 6, 111));
defconcept.setMaximumSize(new java.awt.Dimension(10, 10));
jScrollPane5.setViewportView(defconcept);
javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13);
jPanel13.setLayout(jPanel13Layout);
jPanel13Layout.setHorizontalGroup(
jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel13Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 431, Short.MAX_VALUE)
.addContainerGap())
);
jPanel13Layout.setVerticalGroup(
jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 38, Short.MAX_VALUE)
);
jPanel16.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(new java.awt.Color(153, 0, 255), new java.awt.Color(153, 0, 255)), "Synoymes du concept", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Times New Roman", 1, 16), new java.awt.Color(153, 0, 255)))); // NOI18N
synconcept.setColumns(20);
synconcept.setEditable(false);
synconcept.setForeground(new java.awt.Color(6, 6, 111));
synconcept.setRows(5);
synconcept.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(51, 51, 255), 1, true));
synconcept.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
synconcept.setDisabledTextColor(new java.awt.Color(6, 6, 111));
synconcept.setMaximumSize(new java.awt.Dimension(10, 10));
jScrollPane7.setViewportView(synconcept);
javax.swing.GroupLayout jPanel16Layout = new javax.swing.GroupLayout(jPanel16);
jPanel16.setLayout(jPanel16Layout);
jPanel16Layout.setHorizontalGroup(
jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel16Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jScrollPane7, javax.swing.GroupLayout.DEFAULT_SIZE, 431, Short.MAX_VALUE)
.addContainerGap())
);
jPanel16Layout.setVerticalGroup(
jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jScrollPane7, javax.swing.GroupLayout.DEFAULT_SIZE, 38, Short.MAX_VALUE)
);
javax.swing.GroupLayout panel1Layout = new javax.swing.GroupLayout(panel1);
panel1.setLayout(panel1Layout);
panel1Layout.setHorizontalGroup(
panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(27, Short.MAX_VALUE))
);
panel1Layout.setVerticalGroup(
panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panel1Layout.createSequentialGroup()
.addContainerGap()
.addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(panel1Layout.createSequentialGroup()
.addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jPanel8.setBackground(new java.awt.Color(163, 203, 241));
jPanel8.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 51, 255), 2));
jPanel9.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(new java.awt.Color(153, 0, 255), new java.awt.Color(153, 0, 255)), "Description", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Times New Roman", 1, 14), new java.awt.Color(153, 0, 255))); // NOI18N
jPanel15.setBackground(new java.awt.Color(163, 203, 241));
jTextArea1.setColumns(20);
jTextArea1.setEditable(false);
jTextArea1.setRows(5);
jTextArea1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(38, 145, 248), 2));
jScrollPane1.setViewportView(jTextArea1);
javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(jPanel15);
jPanel15.setLayout(jPanel15Layout);
jPanel15Layout.setHorizontalGroup(
jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel15Layout.createSequentialGroup()
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 516, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jPanel15Layout.setVerticalGroup(
jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel15Layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap())
);
javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
jPanel9.setLayout(jPanel9Layout);
jPanel9Layout.setHorizontalGroup(
jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel9Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jPanel15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jPanel9Layout.setVerticalGroup(
jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel9Layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jPanel15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap())
);
jPanel11.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(153, 0, 255), 2));
jTabbedPane1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Analyse", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.BELOW_TOP, new java.awt.Font("Times New Roman", 1, 18), new java.awt.Color(0, 51, 255))); // NOI18N
jTabbedPane1.setForeground(new java.awt.Color(6, 6, 111));
jTabbedPane1.setFont(new java.awt.Font("Times New Roman", 1, 16));
jPanel10.setBackground(new java.awt.Color(163, 203, 241));
jPanel10.setPreferredSize(new java.awt.Dimension(482, 383));
jTable7.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null},
{null},
{null},
{null},
{null},
{null},
{null},
{null},
{null},
{null}
},
new String [] {
"Liste des termes simples"
}
));
jTable7.setGridColor(new java.awt.Color(38, 145, 248));
jScrollPane12.setViewportView(jTable7);
jTable11.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null},
{null},
{null},
{null},
{null},
{null}
},
new String [] {
"Liste des termes simples frquents"
}
));
jTable11.setGridColor(new java.awt.Color(38, 145, 248));
jScrollPane13.setViewportView(jTable11);
javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);
jPanel10.setLayout(jPanel10Layout);
jPanel10Layout.setHorizontalGroup(
jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel10Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jScrollPane13, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 497, Short.MAX_VALUE)
.addComponent(jScrollPane12, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 497, Short.MAX_VALUE))
.addContainerGap())
);
jPanel10Layout.setVerticalGroup(
jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel10Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jScrollPane12, javax.swing.GroupLayout.PREFERRED_SIZE, 190, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jScrollPane13, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(16, Short.MAX_VALUE))
);
jTabbedPane1.addTab("Termes simples", jPanel10);
jPanel12.setBackground(new java.awt.Color(163, 203, 241));
jTable2.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null},
{null},
{null},
{null},
{null},
{null},
{null},
{null},
{null},
{null}
},
new String [] {
"Liste des termes composs"
}
));
jTable2.setGridColor(new java.awt.Color(38, 145, 248));
jScrollPane6.setViewportView(jTable2);
jTable4.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null},
{null},
{null},
{null},
{null},
{null}
},
new String [] {
"Liste des termes composs frquents"
}
));
jTable4.setGridColor(new java.awt.Color(38, 145, 248));
jScrollPane14.setViewportView(jTable4);
javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);
jPanel12.setLayout(jPanel12Layout);
jPanel12Layout.setHorizontalGroup(
jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel12Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jScrollPane14, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 497, Short.MAX_VALUE)
.addComponent(jScrollPane6, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 497, Short.MAX_VALUE))
.addContainerGap())
);
jPanel12Layout.setVerticalGroup(
jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel12Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 191, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jScrollPane14, javax.swing.GroupLayout.DEFAULT_SIZE, 164, Short.MAX_VALUE)
.addContainerGap())
);
jTabbedPane1.addTab("Termes composs", jPanel12);
jPanel14.setBackground(new java.awt.Color(163, 203, 241));
jPanel14.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(38, 145, 248)));
jScrollPane8.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
jTable10.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null},
{null},
{null},
{null}
},
new String [] {
"Liste des termes spcifiques"
}
));
jTable10.setGridColor(new java.awt.Color(42, 90, 235));
jScrollPane8.setViewportView(jTable10);
javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14);
jPanel14.setLayout(jPanel14Layout);
jPanel14Layout.setHorizontalGroup(
jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel14Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jScrollPane8, javax.swing.GroupLayout.DEFAULT_SIZE, 495, Short.MAX_VALUE)
.addContainerGap())
);
jPanel14Layout.setVerticalGroup(
jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel14Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jScrollPane8, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(262, Short.MAX_VALUE))
);
jTabbedPane1.addTab("Termes spcifiques", jPanel14);
javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);
jPanel11.setLayout(jPanel11Layout);
jPanel11Layout.setHorizontalGroup(
jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel11Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 534, Short.MAX_VALUE)
.addContainerGap())
);
jPanel11Layout.setVerticalGroup(
jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel11Layout.createSequentialGroup()
.addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
jPanel8.setLayout(jPanel8Layout);
jPanel8Layout.setHorizontalGroup(
jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel8Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addComponent(jPanel11, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jPanel9, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jPanel8Layout.setVerticalGroup(
jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel8Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jPanel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(17, 17, 17))
);
jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 51, 255), 2, true), "Vidsioconfrence", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Times New Roman", 1, 18), new java.awt.Color(153, 0, 255))); // NOI18N
Play.setBackground(new java.awt.Color(255, 255, 255));
Play.setIcon(new javax.swing.ImageIcon("D:\\Mes tudes\\Netbeans\\NetBeansProjects\\OSSVIRI\\MIVGC\\icons\\play.png")); // NOI18N
Play.setAlignmentY(0.0F);
Play.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
PlayActionPerformed(evt);
}
});
Stop.setBackground(new java.awt.Color(255, 255, 255));
Stop.setIcon(new javax.swing.ImageIcon("D:\\Mes tudes\\Netbeans\\NetBeansProjects\\OSSVIRI\\MIVGC\\icons\\stop.png")); // NOI18N
Stop.setAlignmentY(0.0F);
Stop.setMargin(new java.awt.Insets(0, 0, 0, 0));
Stop.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
StopActionPerformed(evt);
}
});
Pause.setBackground(new java.awt.Color(255, 255, 255));
Pause.setIcon(new javax.swing.ImageIcon("D:\\Mes tudes\\Netbeans\\NetBeansProjects\\OSSVIRI\\MIVGC\\icons\\pause.png")); // NOI18N
Pause.setMargin(new java.awt.Insets(0, 0, 0, 0));
Play1.setBackground(new java.awt.Color(255, 255, 255));
Play1.setIcon(new javax.swing.ImageIcon("D:\\Mes tudes\\Netbeans\\NetBeansProjects\\OSSVIRI\\MIVGC\\icons\\suivant.png")); // NOI18N
Play1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Play1ActionPerformed(evt);
}
});
Play2.setBackground(new java.awt.Color(255, 255, 255));
Play2.setIcon(new javax.swing.ImageIcon("D:\\Mes tudes\\Netbeans\\NetBeansProjects\\OSSVIRI\\MIVGC\\icons\\precedent.png")); // NOI18N
Play2.setAlignmentY(0.0F);
Play2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Play2ActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
jPanel2.setLayout(jPanel2Layout);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(169, 169, 169)
.addComponent(Play, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(Play2, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(Stop, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(Pause, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(Play1, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(411, Short.MAX_VALUE))
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
.addContainerGap(252, Short.MAX_VALUE)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(Play1, javax.swing.GroupLayout.Alignment.TRAILING, 0, 0, Short.MAX_VALUE)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(Pause, javax.swing.GroupLayout.Alignment.TRAILING, 0, 0, Short.MAX_VALUE)
.addComponent(Play, javax.swing.GroupLayout.Alignment.TRAILING, 0, 0, Short.MAX_VALUE)
.addComponent(Play2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 27, Short.MAX_VALUE)
.addComponent(Stop, 0, 0, Short.MAX_VALUE)))
.addContainerGap())
);
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(panel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap())
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jPanel8, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
.addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(panel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
menuBar.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(153, 51, 255), 3));
menuBar.setForeground(new java.awt.Color(204, 0, 204));
menuBar.setAlignmentX(5);
menuBar.setCursor(new java.awt.Cursor(java.awt.Cursor.CROSSHAIR_CURSOR));
fileMenu.setBackground(new java.awt.Color(255, 255, 102));
fileMenu.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Times New Roman", 0, 24))); // NOI18N
fileMenu.setForeground(new java.awt.Color(6, 6, 111));
fileMenu.setText("Fichier ");
fileMenu.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N
jMenu1.setForeground(new java.awt.Color(102, 0, 204));
jMenu1.setText("Importer");
jMenu1.setFont(new java.awt.Font("Times New Roman", 1, 16));
jMenu1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenu1ActionPerformed(evt);
}
});
jMenuItem5.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_V, java.awt.event.InputEvent.CTRL_MASK));
jMenuItem5.setFont(new java.awt.Font("Times New Roman", 3, 14));
jMenuItem5.setForeground(new java.awt.Color(153, 51, 255));
jMenuItem5.setText("visioconfrence");
jMenuItem5.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem5ActionPerformed(evt);
}
});
jMenu1.add(jMenuItem5);
jMenuItem6.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_O, java.awt.event.InputEvent.CTRL_MASK));
jMenuItem6.setFont(new java.awt.Font("Times New Roman", 3, 14));
jMenuItem6.setForeground(new java.awt.Color(153, 51, 255));
jMenuItem6.setText("Ontologie");
jMenuItem6.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem6ActionPerformed(evt);
}
});
jMenu1.add(jMenuItem6);
fileMenu.add(jMenu1);
exitMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_E, java.awt.event.InputEvent.CTRL_MASK));
exitMenuItem.setFont(new java.awt.Font("Times New Roman", 1, 16));
exitMenuItem.setForeground(new java.awt.Color(102, 0, 204));
exitMenuItem.setText("Quitter");
exitMenuItem.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
exitMenuItemActionPerformed(evt);
}
});
fileMenu.add(exitMenuItem);
menuBar.add(fileMenu);
AnalyseMenu.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 24), new java.awt.Color(255, 153, 153))); // NOI18N
AnalyseMenu.setForeground(new java.awt.Color(6, 6, 111));
AnalyseMenu.setText("Analyse");
AnalyseMenu.setFont(new java.awt.Font("Times New Roman", 1, 18));
jMenuextractiontermes_simples.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.CTRL_MASK));
jMenuextractiontermes_simples.setFont(new java.awt.Font("Times New Roman", 1, 16)); // NOI18N
jMenuextractiontermes_simples.setForeground(new java.awt.Color(102, 0, 204));
jMenuextractiontermes_simples.setText("Termes simples");
jMenuextractiontermes_simples.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuextractiontermes_simplesActionPerformed(evt);
}
});
AnalyseMenu.add(jMenuextractiontermes_simples);
jMenuExtractionterme_composes.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_T, java.awt.event.InputEvent.CTRL_MASK));
jMenuExtractionterme_composes.setFont(new java.awt.Font("Times New Roman", 1, 16)); // NOI18N
jMenuExtractionterme_composes.setForeground(new java.awt.Color(102, 0, 204));
jMenuExtractionterme_composes.setText("Termes composs");
jMenuExtractionterme_composes.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuExtractionterme_composesActionPerformed(evt);
}
});
AnalyseMenu.add(jMenuExtractionterme_composes);
jMenuExtractionterme_specifique.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_P, java.awt.event.InputEvent.CTRL_MASK));
jMenuExtractionterme_specifique.setFont(new java.awt.Font("Times New Roman", 1, 16)); // NOI18N
jMenuExtractionterme_specifique.setForeground(new java.awt.Color(102, 0, 204));
jMenuExtractionterme_specifique.setText("Termes spcifiques");
jMenuExtractionterme_specifique.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuExtractionterme_specifiqueActionPerformed(evt);
}
});
AnalyseMenu.add(jMenuExtractionterme_specifique);
menuBar.add(AnalyseMenu);
IndexationMenu.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(255, 102, 153))); // NOI18N
IndexationMenu.setForeground(new java.awt.Color(6, 6, 111));
IndexationMenu.setText("Indexation");
IndexationMenu.setFont(new java.awt.Font("Times New Roman", 1, 18));
IndexationMenu.addMenuListener(new javax.swing.event.MenuListener() {
public void menuCanceled(javax.swing.event.MenuEvent evt) {
}
public void menuDeselected(javax.swing.event.MenuEvent evt) {
}
public void menuSelected(javax.swing.event.MenuEvent evt) {
IndexationMenuMenuSelected(evt);
}
});
menuBar.add(IndexationMenu);
RechercheMenu.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(255, 102, 153))); // NOI18N
RechercheMenu.setForeground(new java.awt.Color(6, 6, 111));
RechercheMenu.setText("Recherche");
RechercheMenu.setFont(new java.awt.Font("Times New Roman", 1, 18));
RechercheMenu.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
RechercheMenuActionPerformed(evt);
}
});
menuBar.add(RechercheMenu);
IndexGeneralMenu.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(255, 102, 153))); // NOI18N
IndexGeneralMenu.setForeground(new java.awt.Color(6, 6, 111));
IndexGeneralMenu.setText("Index Gnral");
IndexGeneralMenu.setFont(new java.awt.Font("Times New Roman", 1, 18));
IndexGeneralMenu.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
IndexGeneralMenuActionPerformed(evt);
}
});
menuBar.add(IndexGeneralMenu);
helpMenu.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Times New Roman", 3, 24))); // NOI18N
helpMenu.setForeground(new java.awt.Color(6, 6, 111));
helpMenu.setText("Aide");
helpMenu.setFont(new java.awt.Font("Times New Roman", 1, 18));
helpMenu.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
helpMenuActionPerformed(evt);
}
});
contentsMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_U, java.awt.event.InputEvent.CTRL_MASK));
contentsMenuItem.setFont(new java.awt.Font("Times New Roman", 1, 16));
contentsMenuItem.setForeground(new java.awt.Color(102, 0, 204));
contentsMenuItem.setText("Guide d'utilisation");
contentsMenuItem.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
contentsMenuItemActionPerformed(evt);
}
});
helpMenu.add(contentsMenuItem);
jMenuItem8.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_H, java.awt.event.InputEvent.CTRL_MASK));
jMenuItem8.setFont(new java.awt.Font("Times New Roman", 1, 16));
jMenuItem8.setForeground(new java.awt.Color(102, 0, 204));
jMenuItem8.setText("A propos");
jMenuItem8.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem8ActionPerformed(evt);
}
});
helpMenu.add(jMenuItem8);
menuBar.add(helpMenu);
setJMenuBar(menuBar);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(2071, Short.MAX_VALUE))
);
pack();
}//
private class FileTreeCellRenderer extends DefaultTreeCellRenderer {
@Override
public Component getTreeCellRendererComponent(JTree arg0, Object arg1, boolean arg2, boolean arg3, boolean arg4, int arg5, boolean arg6) {
super.getTreeCellRendererComponent(arg0, arg1, arg2, arg3, arg4, arg5, arg6);
System.out.println(arg1.getClass());
if (DefaultMutableTreeNode.class.equals(arg1.getClass())) {
DefaultMutableTreeNode node = (DefaultMutableTreeNode) arg1;
if (File.class.equals(node.getUserObject().getClass())) {
File f = (File) node.getUserObject();
setText(f.getName());
}
}
return this;
}
}
private class DirectoryWorker extends SwingWorker {
private DefaultMutableTreeNode root = null;
private File f;
public DirectoryWorker(File f) {
super();
this.f = f;
}
@Override
protected DefaultMutableTreeNode doInBackground() throws Exception {
root = buildFileTree(f);
return null;
}
@Override
protected void done() {
tree.setModel(new DefaultTreeModel(root));
super.done();
}
private DefaultMutableTreeNode buildFileTree(File f) {
System.out.println(f.getAbsolutePath());
DefaultMutableTreeNode node = new DefaultMutableTreeNode(f);
if (f.isDirectory()) {
File[] children = f.listFiles();
for (File child : children) {
node.add(buildFileTree(child));
}
}
return node;
}
}
private void treeValueChanged(javax.swing.event.TreeSelectionEvent evt) {
DefaultMutableTreeNode SSSS = (DefaultMutableTreeNode) tree.getLastSelectedPathComponent();
int i;
String DDDD = SSSS.toString();
if ((DDDD.equals("@ID"))) {
if ((((SSSS.getParent()).getParent()).toString()).equals("RDF")) {
concept.setText((SSSS.getFirstLeaf()).toString());
}
for (i = 1; i <= (((SSSS.getParent()).getChildCount()) - 1); i++) {
if ((((SSSS.getParent()).getChildAt(i)).toString()).equals("definition")) {
concept.setText((((SSSS.getParent()).getChildAt(i)).getChildAt(0)).toString());
} else if ((((SSSS.getParent()).getChildAt(i)).toString()).equals("subClassOf"))
{
defconcept.setText((((((SSSS.getParent()).getChildAt(i)).getChildAt(0)).getChildAt(0))).getChildAt(0).toString());
}
}
}
}
public int[] position(Mot tab[]) {
int indicepoint[] = new int[100];
int compteur = 0;
for (int i = 0; i < tab.length; i++) {
if (tab[i].contenu_mot.equals(".")) {
indicepoint[compteur] = i;
compteur++;
}
}
int vecteur_indices[] = new int[compteur];
for (int i = 0; i < compteur; i++) {
vecteur_indices[i] = indicepoint[i];
}
return vecteur_indices;
}
private int positionmot(String s, Mot[] mtsf) {
int q = 0;
int i = 0;
boolean test = false;
while ((i < nbm) & (!test)) {
if (mtsf[i].contenu_mot.equalsIgnoreCase(s)) {
q = i;
test = true;
} else {
i++;
}
}
if (test) {
return (i);
} else {
return (1000);
}
}
private int occurence(Mot[] t1, Mot[] t2) {
int f = 0;
int nc = 0;
boolean test = true;
for (int v = 0; v < t2.length; v++) {
if (!t2[v].contenu_mot.equalsIgnoreCase("")) {
nc++;
}
}
System.out.println("nc===========" + nc);
System.out.println("b===========" + b);
for (int g = 0; g < b; g++) {
test = true;
for (int k = 0; k < nc; k++) {
if (t1[g].contenu_mot.equalsIgnoreCase(t2[k].contenu_mot)) {
g++;
if (t1[g].contenu_mot.equalsIgnoreCase("of")) {
g++;
}
} else {
test = false;
break;
}
}
if (test) {
System.out.println("il ya un mot composde");
f++;
}
}
return (f);
}
private boolean isaverb(String s) {
if (s.endsWith("ed") || existverb(s, v)) {
return true;
} else {
return false;
}
}
private boolean existverb(String s, verb v[]) {
boolean test = false;
for (int m = 0; m < v.length; m++) {
System.out.println(v[m].contenu_verbinf);
}
for (int m = 0; m < v.length; m++) {
if (s.equalsIgnoreCase(v[m].contenu_3rdpersonsingular) || s.equalsIgnoreCase(v[m].contenu_verbinf) || s.equalsIgnoreCase(v[m].contenu_verbpast) || s.equalsIgnoreCase(v[m].contenu_verbpresentparticiple)) {
test = true;
break;
}
}
return test;
}
private void StopActionPerformed(java.awt.event.ActionEvent evt) {
this.stop();
}
private void PlayActionPerformed(java.awt.event.ActionEvent evt) {
System.out.println("voila le fichier choisis" + jf + "hhhhhhhhhhhhhh");
try {
String mp = " Vidochirurgie Strasbourg, vido Sciences et techniques Mdecine,\n "
+ " Sant - Archives vidos Sciences";
this.start();
vp.setLayout(new GridLayout(0, 1));
jTextArea1.setText(mp);
} catch (Exception e) {
System.out.println("erreeeeeeeeeeeeeeuuuur");
}
}
public static void remplissagetermesspcifiques() {
for(int f=0; f< tablesp.length;f++)
{
if(!tablesp[f].contenu_mot.equalsIgnoreCase(""))
{
System.out.println("oooooooooooooootablesp[f]"+tablesp[f].contenu_mot);
}
}
Connexion cons1 = new Connexion() {
};
java.sql.Connection con1 = cons1.connecter("system", "ameni");
ResultSet rs1=null;
for(int f=0; f< tablesp.length;f++)
{
if(!tablesp[f].contenu_mot.equalsIgnoreCase(""))
{ System.out.println("oooooooooooooootablesp[f]"+tablesp[f].contenu_mot);
try {
Statement state2 = con1.createStatement();
int StringrowsEffected = state2.executeUpdate("INSERT INTO TERMES_SPECIFIQUES (NOM_TERME_SP , FREQ_TERME_SP) VALUES ('"+tablesp[f].contenu_mot+"',1)");
} catch (SQLException ex) {}
}
}
}
private void Play1ActionPerformed(java.awt.event.ActionEvent evt) {
}
private void Play2ActionPerformed(java.awt.event.ActionEvent evt) {
}
private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {
MIVGC.Testcheckbox.main();
}
private void AideMenuActionPerformed(java.awt.event.ActionEvent evt) {
}
private void IndexGeneralMenuActionPerformed(java.awt.event.ActionEvent evt) {
}
private void RechercheMenuActionPerformed(java.awt.event.ActionEvent evt) {
new MIVGC.Accueil_Recherche().setVisible(true);
}
private void jMenuExtractionterme_composesActionPerformed(java.awt.event.ActionEvent evt) {
System.out.println("******************************************extraction des termes composs*********************************************************************");
verb[] v1 = rempverbs.remplirverbs(v);
for (int i = 0; i < v1.length; i++) {
v[i] = v1[i];
}
Connexion cons = new Connexion() {
};
java.sql.Connection con = cons.connecter("system", "ameni");
ResultSet rs = null;
exempletc exemple3 = new exempletc();
Element root3 = new Element("racine");
Mot lc[] = new Mot[200];
for (int i = 0; i < 200; i++) {
lc[i] = new Mot(i + 1, "");
}
int c = 0;
float f = 0;
int j;
Mot tc = new Mot(0, "");
double nmtc;
double seuil_IMA = 0, seuil = 0, ctfij = 100;
int ccc = 0;
System.out.println("nbts=====" + nbts);
for (int i = 0; i < nbts - 2; i++) {
tc.contenu_mot = "";
System.out.println("i====" + i + "j======" + (i + 1));
nmtc = 2;
System.out.println(" nmtc avant while =====" + nmtc);
while (((positionmot(mtsi[i].contenu_mot, mtsf) >= 1000) || (positionmot(mtsi[i + 1].contenu_mot, mtsf) >= 1000) || (isaverb(mtsi[i + 1].contenu_mot)) || (isaverb(mtsi[i + 1].contenu_mot))) & (i < nbts - 2)) {
System.out.println(mtsi[i].contenu_mot + " does not exit en binome avec " + mtsi[i + 1].contenu_mot);
i++;
}
if (i >= nbts - 2) {
break;
}
j = i + 1;
System.out.println("i==========" + i + "mtsi[" + i + "]======" + mtsi[i].contenu_mot);
System.out.println("j===========" + j + "mtsi[" + j + "]======" + mtsi[j].contenu_mot);
Mot exempletc[] = new Mot[j - i + 1];
ccc = 0;
for (int cc = i; cc <= j; cc++) {
if (!mtsi[cc].contenu_mot.equalsIgnoreCase("")) {
exempletc[ccc] = mtsi[cc];
System.out.println("exempletc[" + ccc + "] ====== " + exempletc[ccc].contenu_mot);
ccc++;
}
}
f = occurence(mmi, exempletc);
float f1 = f;
System.out.println("f1=============================" + f);
System.out.println(" nbre de mots dans le terme compos " + ccc);
double ftc = 0;
for (int cc = 0; cc < ccc; cc++) {
int q = positionmot(exempletc[cc].contenu_mot, mtsf);
ftc = ftc + mtsf[q].nbr_inter;
}
System.out.println("ftc===========" + ftc);
double IMA = 2 * f / ftc;
System.out.println("IMA=============" + IMA);
while ((IMA > (1 / nmtc) & (nmtc == 2)) || (IMA >= (1 / nmtc) & (nmtc > 2)) || (f > 1)) {
j++;
nmtc++;
System.out.println("nmtc " + nmtc);
if (!(positionmot(mtsi[j].contenu_mot, mtsf) >= 1000) & (!(isaverb(mtsi[j].contenu_mot)))) {
Mot exempletcc[] = new Mot[j - i + 1];
ccc = 0;
for (int cc = i; cc <= j; cc++) {
System.out.println("mtsi[" + cc + "]==========" + mtsi[cc].contenu_mot);
exempletcc[ccc] = mtsi[cc];
System.out.println("exempletcc[" + ccc + "] " + exempletcc[ccc].contenu_mot);
ccc++;
}
f = occurence(mmi, exempletcc);
System.out.println("f========" + f);
System.out.println("1/nmtc======" + 1 / nmtc);
if (f > 0) {
System.out.println("f>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>0");
for (int cc = 0; cc < ccc; cc++) {
int q = positionmot(exempletcc[cc].contenu_mot, mtsf);
ftc = ftc + mtsf[q].nbr_inter;
}
IMA = 2 * f / ftc;
System.out.println("IMA ==================" + IMA);
f1 = f;
} else {
IMA = 0;
}
} else {
j--;
System.out.println("jjj==================" + j);
break;
}
}
Mot exempletccc[] = new Mot[j - i + 1];
ccc = 0;
for (int cc = i; cc <= j; cc++) {
exempletccc[ccc] = mtsi[cc];
System.out.println("exempletccc[" + ccc + "] " + exempletccc[ccc].contenu_mot);
ccc++;
}
if (f >= 1) {
{
for (int cc = i; cc <= j; cc++) {
tc.contenu_mot = tc.contenu_mot.concat(" ").concat(mtsi[cc].contenu_mot);
}
tc.nbr_inter = (int) f1;
}
if (ccc >= 2) {
float s = 0;
for (int cc = 0; cc < ccc; cc++) {
int q = positionmot(exempletccc[cc].contenu_mot, mtsf);
s = s + mtsf[q].nbr_inter;
}
System.out.println("S ============ " + s + " f ========== " + f + " ccc ====== " + ccc);
double ee = s / ccc;
ctfij = (f - f / ccc + ee);
System.out.println("ctfij========" + ctfij);
}
if ((ctfij >= 1.50)) {
System.out.println("terme compos " + tc.contenu_mot);
System.out.println("c======== " + c);
lc[c].contenu_mot = tc.contenu_mot;
tc.nbr_inter = (int) f;
lc[c].nbr_inter = (int) f;
c++;
if (lc[c].nbr_inter >= 1) {
for (int cc = 0; cc < ccc; cc++) {
int q = positionmot(exempletccc[cc].contenu_mot, mtsf);
if (mtsf[q].nbr_inter == lc[c].nbr_inter) {
mtsf[q].contenu_mot = "";
mtsf[q].nbr_inter = 0;
} else if (mtsf[q].nbr_inter > lc[c].nbr_inter) {
// decrementer le nombre d'occurence de mot simple mtsf[q]
mtsf[q].nbr_inter -= lc[c].nbr_inter;
}
}
}
}
} else {
j--;
}
i = j;
}
for (int cc = 0; cc < lc.length; cc++) {
if (!lc[cc].contenu_mot.equalsIgnoreCase("")) {
System.out.println("lc[" + cc + "]" + lc[cc].contenu_mot + " " + lc[cc].nbr_inter);
exemple3.Remplir2(lc[cc].contenu_mot);
try {
Statement state = con.createStatement();
int StringrowsEffected = state.executeUpdate("INSERT INTO TERMES_COMPOSES (NOM_TERME_COMP,FRQUENCE_TERME_COMP) VALUES ('" + lc[cc].contenu_mot + "','" + (lc[cc].nbr_inter) + "')");
} catch (SQLException e) {}
// remplir le tableau tscf par les termes composs frquents
if (lc[cc].nbr_inter >= 2) {
mtscf[ntscf] = lc[cc];
ntscf++;
}else
{
ntnf++;
try {
Statement state2 = con.createStatement();
int StringrowsEffected = state2.executeUpdate("INSERT INTO TERMES_NON_FREQUENTS (NOM_TERME_NON_FREQ,FREQUENCE_TERME_NON_FREQ) VALUES ('" + lc[cc].contenu_mot + "','" + (lc[cc].nbr_inter) + "')");
} catch (SQLException e) {}
}
}
}
try {
Statement state = con.createStatement();
int StringrowsEffected = state.executeUpdate("delete from TERMES_SIMPLES");
} catch (SQLException e) {
}
for (int m = 0; m <= nbts; m++) {
if (!mtsf[m].contenu_mot.equalsIgnoreCase("")) {
try {
Statement state = con.createStatement();
int StringrowsEffected = state.executeUpdate("INSERT INTO TERMES_SIMPLES (NOM_TERME_SIMP,FRQUENCE_TERME_SIMP) VALUES ('" + mtsf[m].contenu_mot + "','" + (mtsf[m].nbr_inter) + "')");
} catch (SQLException e) {
}
// remplir le mtscf par les termes composs
if (mtsf[m].nbr_inter >= 2) {
// mtscf un tableau contenant les mots et termes composs frquents ntscf == nombre des termes simples et composs frquents
mtscf[ntscf] = mtsf[m];
ntscf++;
} else {
ntnf++;
try {
Statement state3 = con.createStatement();
System.out.println("mtsf[m].nbr_inter < 2============================================="+mtsf[m].contenu_mot);
int StringrowsEffected = state3.executeUpdate("INSERT INTO TERMES_NON_FREQUENTS (NOM_TERME_NON_FREQ,FREQUENCE_TERME_NON_FREQ) VALUES ('" + mtsf[m].contenu_mot + "','" + (mtsf[m].nbr_inter) + "')");
} catch (SQLException e) {}
}
}
}
Element addContent = root3.addContent((Element) (exemple3.racinetc).clone());
org.jdom.Document docc = new Document((Element) root3.clone()) {
};
enregistre("termes composs.xml", docc);
JOptionPane.showMessageDialog(null, "L'extraction des termes composs est russie", "Extraction des termes composs ", 3);
//affichage des termes simple et composs frquents
for (int i = 0; i < ntscf; i++) {
System.out.println("terme frquent mtscf[" + i + "] " + mtscf[i].contenu_mot + " de frquence de " + mtscf[i].nbr_inter);
try {
Statement state = con.createStatement();
int StringrowsEffected = state.executeUpdate("INSERT INTO TERMES_FREQUENTS(NOM_TERME_FREQ,FRQUENCE_TERME_FREQ) VALUES ('" + mtscf[i].contenu_mot + "','" + (mtscf[i].nbr_inter) + "')");
} catch (SQLException e) { }
//modifier la liste des termes composs en ne
}
}
private void jMenuextractiontermes_simplesActionPerformed(java.awt.event.ActionEvent evt) {
for (int i = 0; i < 300; i++) {
mtsf[i] = new Mot(i + 1, "");
mtsi[i] = new Mot(i + 1, "");
}
for (int i = 0; i < 1000; i++) {
mmi[i] = new Mot(i + 1, "");
}
for (int i = 0; i < 300; i++) {
mtscf[i] = new Mot(i + 1, "");
}
Element phrasee = new Element("phrase");
Connexion cons = new Connexion() {
};
java.sql.Connection con = cons.connecter("system", "ameni");
ResultSet rs = null;
try {
Statement state1 = con.createStatement();
ResultSet result = state1.executeQuery("SELECT * FROM TERMES_SIMPLES");
System.out.println("ameni");
ResultSetMetaData resultMeta = result.getMetaData();
System.out.println("\n**********************************");
for (int i = 1; i <= resultMeta.getColumnCount(); i++) {
System.out.print("\t" + resultMeta.getColumnName(i).toUpperCase() + "\t *");
}
System.out.println("\n**********************************");
while (result.next()) {
for (int i = 1; i <= resultMeta.getColumnCount(); i++) {
System.out.print("\t" + result.getObject(i).toString() + "\t |");
}
System.out.println("\n---------------------------------");
}
} catch (SQLException e) {
}
SAXBuilder sxb = new SAXBuilder();
try {
try {
doc1 = sxb.build(new File("Vidochirurgie Strasbourg.xml"));
} catch (JDOMException ex) {
Logger.getLogger(Accueil_Analyse.class.getName()).log(Level.SEVERE, null, ex);
}
} catch (IOException ex) {
Logger.getLogger(Accueil_Analyse.class.getName()).log(Level.SEVERE, null, ex);
}
int c = 0;
Mot mm[] = new Mot[1000];
Mot mmm[] = new Mot[1000];
racine1 = doc1.getRootElement();
List listsenseaa = racine1.getChildren("Contenu");
Element root = new Element("racine");
Iterator i11 = listsenseaa.iterator();
while (i11.hasNext()) {
Element courant1 = (Element) i11.next();
List listExemples1 = courant1.getChildren("audio");
Iterator i2 = listExemples1.iterator();
while (i2.hasNext()) {
exemple exemple1 = new exemple();
Element couranSt = (Element) i2.next();
{
List listExemples = couranSt.getChildren("ligne");
Iterator i = listExemples.iterator();
boolean test;
while (i.hasNext()) {
test = true;
Element courant = (Element) i.next();
phrase = courant.getText();
Mot[] m = fill.remplir(phrase);
Mot[] m2 = fill.remplir(phrase);
for (int j1 = 0; j1 < m.length; j1++) {
int z = m[j1].contenu_mot.length();
if (m[j1].contenu_mot.endsWith(",") || m[j1].contenu_mot.endsWith("")) {
m[j1].contenu_mot = m[j1].contenu_mot.substring(0, z - 1);
}
if (m[j1].contenu_mot.endsWith("s")) {
m[j1].contenu_mot = m[j1].contenu_mot.substring(0, z - 2);
}
}
for (int j1 = 0; j1 < m2.length; j1++) {
int z = m2[j1].contenu_mot.length();
if (m2[j1].contenu_mot.endsWith(",") || m2[j1].contenu_mot.endsWith("")) {
m2[j1].contenu_mot = m2[j1].contenu_mot.substring(0, z - 1);
}
if (m2[j1].contenu_mot.endsWith("s")) {
m2[j1].contenu_mot = m2[j1].contenu_mot.substring(0, z - 2);
}
}
for (int j1 = 0; j1 < m2.length; j1++) {
mmi[b] = new Mot(b + 1, m2[j1].contenu_mot);
b++;
}
for (int j1 = 0; j1 < m.length; j1++) {
CA += "\n";
CA = m[j1].contenu_mot;
SAXBuilder sxb1 = new SAXBuilder();
try {
docb = sxb1.build(new File("StopWords.xml"));
} catch (JDOMException ex) {
Logger.getLogger(Accueil_Analyse.class.getName()).log(Level.SEVERE, null, ex);
} catch (IOException ex) {
Logger.getLogger(Accueil_Analyse.class.getName()).log(Level.SEVERE, null, ex);
}
racineb = docb.getRootElement();
List listsense1 = racineb.getChildren("mot");
Iterator i1 = listsense1.iterator();
while (i1.hasNext()) {
Element courant4 = (Element) i1.next();
if (courant4.getText().equalsIgnoreCase(CA)) {
CA = "";
}
}
if (!CA.equals("")) {
mot = CA;
System.out.println(mot);
mm[c] = new Mot(c + 1, mot.toString());
mmm[c] = new Mot(c + 1, mot.toString());
c = c + 1;
if (test == true) {
Element phrase1 = new Element("phrase");
phrasee = phrase1;
exemple.racine.addContent(phrase1);
}
exemple1.Remplir(phrasee, mot);
test = false;
}
}
mm[c] = new Mot(c + 1, ".");
mmm[c] = new Mot(c + 1, ".");
c += 1;
}
Element addContent = root.addContent((Element) (exemple.racine).clone());
org.jdom.Document docA = new Document((Element) root.clone()) {
};
enregistre("termes simples.xml", docA);
enregistre("copie termes simples.xml", docA);
xmldoc = docA;
}
JOptionPane.showMessageDialog(null, "etape 1 L'extraction des termes simples est russie", "Extraction des termes simples ", 3);
}
}
System.out.println("oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo");
Mot mts[] = new Mot[c];
for (int l = 0; l < c; l++) {
mts[l] = mm[l];
System.out.println(mm[l].contenu_mot);
}
for (int j1 = 0; j1 < mts.length; j1++) {
System.out.println("mts[" + j1 + "]=====" + mts[j1].contenu_mot);
}
System.out.println("oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo");
int occm = 0;
int j = 0;
int indicepoint[] = position(mts);
for (int k = 0; k < indicepoint.length; k++) {
System.out.println(" indice " + indicepoint[k]);
}
System.out.println("longueeeeeuuuuuur2222");
System.out.println("longueeeeeuuuuuur" + indicepoint.length);
System.out.println("longueeeeeuuuuuur" + mts.length);
int compteurindice = 0;
//parcour des phrases
for (int k = 0; k < (mts.length - 1); k++) {
if (!mts[k].contenu_mot.equalsIgnoreCase("")) {
// le mot k1 suit directeement le mot k
if (mts[k + 1].contenu_mot.equalsIgnoreCase("which") || mts[k + 1].contenu_mot.equalsIgnoreCase("that")) {
System.out.println("nnnnnnnnnnnnn" + mts[k + 1].contenu_mot);
occm++;
mts[k].nbr_inter++;
mts[k + 1].contenu_mot = "";
}
}
}
for (int i = 0; i < indicepoint.length; i++) {
System.out.println("iiiiiiiii=" + i);
//parcour des mots phrases
for (int k = compteurindice; k < indicepoint[i]; k++) {
System.out.println("kkkkkkkk=" + k);
j = i;
if (!mts[k].contenu_mot.equalsIgnoreCase("")) {
nbm = nbm + 1;
int p = 0;
int compteurindice1 = compteurindice;
while (j < indicepoint.length) {
System.out.println("(j==" + j);
for (int k1 = compteurindice1; k1 < indicepoint[j]; k1++) {
System.out.println("(k1==" + k1);
//le premier mot de la phrase
if (!mts[k1].contenu_mot.equalsIgnoreCase("")) {
if (k1 == compteurindice1) {
if (j != indicepoint.length - 1) {
p = j + 1;
}
System.out.println("le mot d indice " + compteurindice1);
System.out.println("(k1==" + mts[k1].contenu_mot);
System.out.println("(ppp==" + p);
while ((p < (indicepoint.length)) & ((mts[indicepoint[p]].contenu_mot.equalsIgnoreCase("he")) || (mts[indicepoint[p]].contenu_mot.equalsIgnoreCase("she")) || (mts[indicepoint[p]].contenu_mot.equalsIgnoreCase("we") || (mts[indicepoint[p]].contenu_mot.equalsIgnoreCase("it"))) || (mts[indicepoint[p]].contenu_mot.equalsIgnoreCase("they")))) {
occm++;
mts[k].nbr_inter++;
mts[indicepoint[p]].contenu_mot = "";
p++;
}
} // dernier mot de la phrase
else if ((j < (indicepoint.length - 1)) & (k1 == (indicepoint[j] - 1))) {
if (mts[k1 + 2].contenu_mot.equalsIgnoreCase("latter")) {
System.out.println("(latter)");
occm++;
mts[k].nbr_inter++;
mts[k1 + 2].contenu_mot = "";
}
}
if ((mts[k].contenu_mot.toUpperCase().equals(mts[k1].contenu_mot.toUpperCase()) || mts[k].contenu_mot.toUpperCase().equals(mts[k1].contenu_mot.toUpperCase().concat("S"))) & (k != k1)) {
System.out.println("contenu mottttttt" + mts[k].contenu_mot + "moootttttt2222" + mts[k1].contenu_mot);
mts[k1].contenu_mot = "";
occm++;
mts[k].nbr_inter += mts[k1].nbr_inter;
}
}
}
compteurindice1 = indicepoint[j] + 1;
j++;
}
}
compteurindice = indicepoint[i] + 1;
System.out.println("(compteuuur" + compteurindice);
}
}
System.out.println("resuuuuuuultat");
Element root1 = new Element("racine1");
exemplee exemple2 = new exemplee();
Element phrase2 = new Element("phrase");
exemplee.racine1.addContent(phrase2);
for (int k = 0; k < mts.length; k++) {
if (!mts[k].contenu_mot.equalsIgnoreCase("")) {
if (mts[k].contenu_mot.equalsIgnoreCase(".")) {
System.out.println("fouuuuuuuuuuuuuuuuuuuuuuufa");
Element phrase22 = new Element("phrase");
phrase2 = phrase22;
exemplee.racine1.addContent(phrase2);
// concat
}
if (!mts[k].contenu_mot.equalsIgnoreCase(".")) {
exemple2.Remplir(phrase2, mts[k].contenu_mot);
System.out.println(mts[k].contenu_mot + " ayant une frquence de " + mts[k].nbr_inter);
System.out.println(" ******** ");
try {
Statement state = con.createStatement();
float x;
x = mts[k].nbr_inter / nbm;
System.out.println("x====" + x);
int StringrowsEffected = state.executeUpdate("INSERT INTO TERMES_SIMPLES (NOM_TERME_SIMP,FRQUENCE_TERME_SIMP) VALUES ('" + mts[k].contenu_mot + "','" + (mts[k].nbr_inter) + "')");
} catch (SQLException e) {
}
}
}
}
Element addContent2 = root1.addContent((Element) (exemple2.racine1).clone());
org.jdom.Document doctsf = new Document((Element) root1.clone()) {
};
for (int j1 = 0; j1 < mts.length; j1++) {
if ((!mts[j1].contenu_mot.equalsIgnoreCase(" ")) & (!mts[j1].contenu_mot.equalsIgnoreCase(".")) & (!mts[j1].contenu_mot.equalsIgnoreCase(""))) {
mtsf[ltsf] = mts[j1];
ltsf++;
}
}
System.out.println("****************************essai 0***********************");
for (int l = 0; l < c; l++) {
if ((!mmm[l].contenu_mot.equalsIgnoreCase(" ")) & (!mmm[l].contenu_mot.equalsIgnoreCase(""))) {
mtsi[nbts] = mmm[l];
System.out.println("mtsi[l].contenu_mot**" + mtsi[nbts].contenu_mot + "**a laposition" + nbts);
nbts++;
}
}
b = 0;
for (int j1 = 0; j1 < mmi.length; j1++) {
if ((!mmi[j1].contenu_mot.equalsIgnoreCase(""))) {
b++;
System.out.println("mmi[l].contenu_mot**" + mmi[j1].contenu_mot);
}
}
enregistre("termes simples finis.xml", doctsf);
JOptionPane.showMessageDialog(null, " etape 2 L'extraction des termes simples est russie", "Extraction des termes simples ", 3);
System.out.println("nombre de mots est" + nbm);
}
private void exitMenuItemActionPerformed(java.awt.event.ActionEvent evt) {
System.exit(0);
}
private void jMenu1ActionPerformed(java.awt.event.ActionEvent evt) {
}
private void jMenuItem6ActionPerformed(java.awt.event.ActionEvent evt) {
SAXBuilder builder = new SAXBuilder();
Document doc;
try {
doc = builder.build(new File("OntoMenelas.xml"));
tn = new DefaultMutableTreeNode("XML");
this.xmlDoc = doc;
processElement(xmlDoc.getRootElement(), tn);
((DefaultTreeModel) tree.getModel()).setRoot(tn);
tree.setVisible(true);
} catch (JDOMException ex) {
Logger.getLogger(Accueil_Analyse.class.getName()).log(Level.SEVERE, null, ex);
} catch (IOException ex) {
Logger.getLogger(Accueil_Analyse.class.getName()).log(Level.SEVERE, null, ex);
}
}
private void jMenuItem5ActionPerformed(java.awt.event.ActionEvent evt) {
jf = new JFileChooser();
jf.showOpenDialog(null);
}
private void IndexationMenuMenuSelected(javax.swing.event.MenuEvent evt) {
new Accueil_Indexation().setVisible(true);
// TODO add your handling code here:
}
private void contentsMenuItemActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
new Aide().setVisible(true);
}
private void jMenuItem8ActionPerformed(java.awt.event.ActionEvent evt) {
new apropos1();
// TODO add your handling code here:
}
private void helpMenuActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
}
private void jMenuExtractionterme_specifiqueActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
}
/**//**/
public static FillTable myModel1() throws Exception {
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
} catch (ClassNotFoundException e) {
e.printStackTrace();
}
Connexion cons = new Connexion() {
};
java.sql.Connection con = cons.connecter("SYSTEM", "ameni");
java.sql.Statement st = con.createStatement();
ResultSet rs = st.executeQuery("select NOM_TERME_SIMP from TERMES_SIMPLES");
FillTable model = new FillTable(rs);
return model;
}
public static FillTable myModel2() throws Exception {
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
} catch (ClassNotFoundException e) {
e.printStackTrace();
}
Connexion cons = new Connexion() {
};
java.sql.Connection con = cons.connecter("SYSTEM", "ameni");
java.sql.Statement st = con.createStatement();
ResultSet rs = st.executeQuery("select NOM_TERME_COMP from TERMES_COMPOSES");
FillTable model = new FillTable(rs);
return model;
}
public static FillTable myModel3() throws Exception {
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
} catch (ClassNotFoundException e) {
e.printStackTrace();
}
Connexion cons = new Connexion() {
};
java.sql.Connection con = cons.connecter("SYSTEM", "ameni");
java.sql.Statement st = con.createStatement();
ResultSet rs = st.executeQuery("select NOM_TERME_FREQ from TERMES_FREQUENTS");
FillTable model = new FillTable(rs);
return model;
}
public static FillTable myModel4() throws Exception {
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
} catch (ClassNotFoundException e) {
e.printStackTrace();
}
Connexion cons = new Connexion() {
};
java.sql.Connection con = cons.connecter("SYSTEM", "ameni");
java.sql.Statement st = con.createStatement();
ResultSet rs = st.executeQuery("select NOM_RELATION_SEMANTIQUE from RELATIONS_SEMANTIQUES");
FillTable model = new FillTable(rs);
return model;
}
public static FillTable myModel5() throws Exception {
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
} catch (ClassNotFoundException e) {
e.printStackTrace();
}
Connexion cons = new Connexion() {
};
java.sql.Connection con = cons.connecter("SYSTEM", "ameni");
java.sql.Statement st = con.createStatement();
ResultSet rs = st.executeQuery("select NOM_TERME_FREQ from TERMES_FREQUENTS");
FillTable model = new FillTable(rs);
return model;
}
public static FillTable myModel6() throws Exception {
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
} catch (ClassNotFoundException e) {
e.printStackTrace();
}
Connexion cons = new Connexion() {
};
java.sql.Connection con = cons.connecter("SYSTEM", "ameni");
java.sql.Statement st = con.createStatement();
ResultSet rs = st.executeQuery("select NOM_TERME_SP from TERMES_SPECIFIQUES");
FillTable model = new FillTable(rs);
return model;
}
//cree un fichier JPEG
public static void saveJPG(Image img, String s) {
BufferedImage bi = new BufferedImage(img.getWidth(null), img.getHeight(null), BufferedImage.TYPE_INT_RGB);
Graphics2D g2 = bi.createGraphics();
g2.drawImage(img, null, null);
FileOutputStream out = null;
try {
out = new FileOutputStream(s);
} catch (java.io.FileNotFoundException io) {
}
JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
//parametre d'encodge
JPEGEncodeParam param = encoder.getDefaultJPEGEncodeParam(bi);
param.setQuality(0.5f, false);
//assiignation des parametre d'encodage
encoder.setJPEGEncodeParam(param);
try {
//encodage de l'image
encoder.encode(bi);
out.close();
} catch (java.io.IOException io) {
System.out.println("pb en save");
}
}
public void start() throws Exception {
try {
player = Manager.createPlayer(new MediaLocator("file:/" + jf.getSelectedFile().toString()));
player.addControllerListener(new ControllerListener() {
public void controllerUpdate(ControllerEvent e) {
if (e instanceof RealizeCompleteEvent) {
Component pc = player.getVisualComponent();
if (pc != null) {
vp.add(pc);
vp.resize(580, 370);
vp.setBounds(25, 60, 610, 265);
player.start();
vp.setVisible(true);
}
} else if (e instanceof EndOfMediaEvent) {
System.out.println(" finnnnnnnnnn");
}
}
});
player.realize();
} catch (Exception e) {
System.out.println("existeeee" + jf.getSelectedFile().toString());
}
}
public void stop() {
if (player != null) {
player.stop();
}
}
public Component getPc() {
return pc;
}
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new Accueil_Analyse().setVisible(true);
}
});
}
// Variables declaration - do not modify
private javax.swing.JMenu AnalyseMenu;
private javax.swing.JMenu IndexGeneralMenu;
private javax.swing.JMenu IndexationMenu;
private javax.swing.JButton Pause;
private javax.swing.JButton Play;
private javax.swing.JButton Play1;
private javax.swing.JButton Play2;
private javax.swing.JMenu RechercheMenu;
private javax.swing.JButton Stop;
private javax.swing.JTextArea concept;
private javax.swing.JMenuItem contentsMenuItem;
private javax.swing.JTextArea defconcept;
private javax.swing.JMenuItem exitMenuItem;
private javax.swing.JMenu fileMenu;
private javax.swing.JMenu helpMenu;
private javax.swing.JMenu jMenu1;
private javax.swing.JMenuItem jMenuExtractionterme_composes;
private javax.swing.JMenuItem jMenuExtractionterme_specifique;
private javax.swing.JMenuItem jMenuItem5;
private javax.swing.JMenuItem jMenuItem6;
private javax.swing.JMenuItem jMenuItem8;
private javax.swing.JMenuItem jMenuextractiontermes_simples;
private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel10;
private javax.swing.JPanel jPanel11;
private javax.swing.JPanel jPanel12;
private javax.swing.JPanel jPanel13;
private javax.swing.JPanel jPanel14;
private javax.swing.JPanel jPanel15;
private javax.swing.JPanel jPanel16;
private javax.swing.JPanel jPanel2;
private javax.swing.JPanel jPanel4;
private javax.swing.JPanel jPanel6;
private javax.swing.JPanel jPanel8;
private javax.swing.JPanel jPanel9;
private javax.swing.JScrollPane jScrollPane1;
private javax.swing.JScrollPane jScrollPane12;
private javax.swing.JScrollPane jScrollPane13;
private javax.swing.JScrollPane jScrollPane14;
private javax.swing.JScrollPane jScrollPane3;
private javax.swing.JScrollPane jScrollPane5;
private javax.swing.JScrollPane jScrollPane6;
private javax.swing.JScrollPane jScrollPane7;
private javax.swing.JScrollPane jScrollPane8;
private javax.swing.JScrollPane jScrollPane9;
private javax.swing.JTabbedPane jTabbedPane1;
private javax.swing.JTable jTable10;
private javax.swing.JTable jTable11;
private javax.swing.JTable jTable2;
private javax.swing.JTable jTable4;
private javax.swing.JTable jTable7;
private javax.swing.JTextArea jTextArea1;
private javax.swing.JMenuBar menuBar;
private javax.swing.JPanel panel1;
private javax.swing.JTextArea synconcept;
private javax.swing.JTree tree;
// End of variables declaration
// private MyDBConnection mdbc;
private javax.swing.JPanel p;
private java.sql.Statement stmt;
public void enregistre(String string, org.jdom.Document document) {
try {
org.jdom.output.XMLOutputter sortie = new XMLOutputter(org.jdom.output.Format.getPrettyFormat());
sortie.output(document, new FileOutputStream(string));
} catch (java.io.IOException e) {
}
}
private void processElement(Element el, DefaultMutableTreeNode dmtn) {
DefaultMutableTreeNode currentNode =
new DefaultMutableTreeNode(el.getName());
String text = el.getTextNormalize();
if ((text != null) && (!text.equals(""))) {
currentNode.add(new DefaultMutableTreeNode(text));
}
processAttributes(el, currentNode);
Iterator children = el.getChildren().iterator();
while (children.hasNext()) {
processElement((Element) children.next(), currentNode);
}
dmtn.add(currentNode);
}
private void processAttributes(Element el, DefaultMutableTreeNode dmtn) {
Iterator atts = el.getAttributes().iterator();
while (atts.hasNext()) {
Attribute att = (Attribute) atts.next();
DefaultMutableTreeNode attNode =
new DefaultMutableTreeNode("@" + att.getName());
attNode.add(new DefaultMutableTreeNode(att.getValue()));
dmtn.add(attNode);
}
}
}
w w h hM# hM# mH sH hM# 3 4 J K d 8 [ m
$
D
e
gdM#
& V * + K p
3
Z
~
/ gdM# / J ~ 7 \ 4 Y t # W gdM# ! R 3 J j 7 R { ! = ^ gdM# ^ y 4 ^ " # $ ( A b ! 8 T gdM#
. Q t % J o % J ` v gdM# ' M s - L l ~ G f g gdM# : k . / 5 6 Y ! E! {! ! ! " 4" a" " " " ,# gdM# ,# ^# # # # $ K$ x$ $ $ % >% u% % % &