2022-05-24 18:25:41 +02:00
|
|
|
|
package app;
|
|
|
|
|
|
|
|
|
|
import java.awt.EventQueue;
|
|
|
|
|
import java.awt.Font;
|
|
|
|
|
|
|
|
|
|
import javax.swing.ImageIcon;
|
|
|
|
|
import javax.swing.JFrame;
|
|
|
|
|
import javax.swing.JLabel;
|
|
|
|
|
import javax.swing.JPanel;
|
|
|
|
|
import javax.swing.SwingConstants;
|
|
|
|
|
import MEPTL.commandes;
|
2022-05-27 15:02:18 +02:00
|
|
|
|
import javax.swing.JButton;
|
|
|
|
|
import java.awt.event.ActionListener;
|
|
|
|
|
import java.awt.event.ActionEvent;
|
2022-05-24 18:25:41 +02:00
|
|
|
|
|
2022-05-25 09:30:49 +02:00
|
|
|
|
public class about extends JFrame {
|
2022-05-24 18:25:41 +02:00
|
|
|
|
|
2022-05-25 09:30:49 +02:00
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
2022-05-24 18:25:41 +02:00
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Launch the application.
|
|
|
|
|
*/
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
EventQueue.invokeLater(new Runnable() {
|
|
|
|
|
public void run() {
|
|
|
|
|
try {
|
|
|
|
|
about window = new about();
|
|
|
|
|
window.setVisible(true);
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Create the application.
|
|
|
|
|
*/
|
|
|
|
|
public about() {
|
|
|
|
|
initialize();
|
|
|
|
|
setVisible(true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Initialize the contents of the frame.
|
|
|
|
|
*/
|
|
|
|
|
private void initialize() {
|
|
|
|
|
setResizable(false);
|
|
|
|
|
setTitle(commandes.Titre);
|
|
|
|
|
setLocation(100, 100);
|
2022-06-09 09:13:46 +02:00
|
|
|
|
setSize(518,415);
|
|
|
|
|
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);
|
|
|
|
|
|
2022-05-24 18:25:41 +02:00
|
|
|
|
setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
|
|
|
|
|
getContentPane().setLayout(null);
|
|
|
|
|
ImageIcon img = new ImageIcon(getClass().getResource("/evalwriter.png") );
|
|
|
|
|
setIconImage(img.getImage());
|
|
|
|
|
|
|
|
|
|
JPanel contentPane = (JPanel) getContentPane();
|
|
|
|
|
|
|
|
|
|
JLabel lblNewLabelTitre = new JLabel();
|
|
|
|
|
ImageIcon img2 = new ImageIcon(getClass().getResource("/accueil.png") );
|
|
|
|
|
lblNewLabelTitre.setIcon(img2);
|
|
|
|
|
lblNewLabelTitre.setHorizontalAlignment(SwingConstants.LEFT);
|
|
|
|
|
lblNewLabelTitre.setFont(new Font("Pacifico", Font.PLAIN, 26));
|
2022-05-25 09:30:49 +02:00
|
|
|
|
lblNewLabelTitre.setBounds(10, 10, 357, 90);
|
2022-05-24 18:25:41 +02:00
|
|
|
|
contentPane.add(lblNewLabelTitre);
|
|
|
|
|
|
2022-05-27 15:02:18 +02:00
|
|
|
|
JLabel lblNewLabelVersion = new JLabel("<HTML><B><U>Version :</U></B> " + commandes.version + " "+ commandes.nomDeLaBranch + "</HTML>");
|
2022-05-24 18:25:41 +02:00
|
|
|
|
lblNewLabelVersion.setFont(new Font("Tahoma", Font.PLAIN, 16));
|
2022-05-27 15:02:18 +02:00
|
|
|
|
lblNewLabelVersion.setBounds(20, 100, 240, 20);
|
2022-05-24 18:25:41 +02:00
|
|
|
|
contentPane.add(lblNewLabelVersion);
|
|
|
|
|
|
|
|
|
|
JLabel lblNewLabelAnnee = new JLabel("<HTML><B><U>Année :</U></B> " + commandes.Annee + "</HTML>");
|
|
|
|
|
lblNewLabelAnnee.setFont(new Font("Tahoma", Font.PLAIN, 16));
|
2022-05-27 15:02:18 +02:00
|
|
|
|
lblNewLabelAnnee.setBounds(20, 120, 240, 20);
|
2022-05-24 18:25:41 +02:00
|
|
|
|
contentPane.add(lblNewLabelAnnee);
|
|
|
|
|
|
|
|
|
|
JLabel lblCredit = new JLabel("Crédit");
|
|
|
|
|
lblCredit.setFont(new Font("Tahoma", Font.BOLD | Font.ITALIC, 14));
|
2022-06-09 09:13:46 +02:00
|
|
|
|
lblCredit.setBounds(20, 268, 60, 20);
|
2022-05-24 18:25:41 +02:00
|
|
|
|
getContentPane().add(lblCredit);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
JLabel lblNewLabelAuteur = new JLabel("Auteur : P. Rodriguez");
|
|
|
|
|
lblNewLabelAuteur.setFont(new Font("Tahoma", Font.PLAIN, 14));
|
2022-06-09 09:13:46 +02:00
|
|
|
|
lblNewLabelAuteur.setBounds(20, 286, 240, 20);
|
2022-05-24 18:25:41 +02:00
|
|
|
|
contentPane.add(lblNewLabelAuteur);
|
|
|
|
|
|
2022-05-28 19:13:25 +02:00
|
|
|
|
JLabel lblInformationEnseignant = new JLabel("Enseignants à l'université d'Artois");
|
2022-05-24 18:25:41 +02:00
|
|
|
|
lblInformationEnseignant.setFont(new Font("Tahoma", Font.PLAIN, 12));
|
2022-06-09 09:13:46 +02:00
|
|
|
|
lblInformationEnseignant.setBounds(20, 299, 296, 20);
|
2022-05-24 18:25:41 +02:00
|
|
|
|
getContentPane().add(lblInformationEnseignant);
|
|
|
|
|
|
|
|
|
|
JLabel lblCommentaire = new JLabel("<HTML>Outil permettant l’évaluation des fichiers réalisés avec un traitement de texte au format ODF.<br><br>"
|
|
|
|
|
+ "Cet outil a été créé dans un esprit de partage.<br></HTML>");
|
|
|
|
|
lblCommentaire.setFont(new Font("Tahoma", Font.PLAIN, 14));
|
|
|
|
|
lblCommentaire.setHorizontalAlignment(SwingConstants.LEFT);
|
|
|
|
|
lblCommentaire.setVerticalAlignment(SwingConstants.TOP);
|
2022-06-09 09:13:46 +02:00
|
|
|
|
lblCommentaire.setBounds(20, 183, 472, 88);
|
2022-05-24 18:25:41 +02:00
|
|
|
|
getContentPane().add(lblCommentaire);
|
|
|
|
|
|
2022-05-27 15:02:18 +02:00
|
|
|
|
JLabel lblLicence = new JLabel("<HTML><B><U>Licence : GNU GLP 3.0</U></B> </HTML>");
|
|
|
|
|
lblLicence.setFont(new Font("Tahoma", Font.PLAIN, 14));
|
2022-06-09 09:13:46 +02:00
|
|
|
|
lblLicence.setBounds(20, 330, 296, 35);
|
2022-05-24 18:25:41 +02:00
|
|
|
|
getContentPane().add(lblLicence);
|
|
|
|
|
|
2022-06-09 09:13:46 +02:00
|
|
|
|
JButton btnNewButton = new JButton("<html><p {text-align: center;}>Vérifier la version<br>Accès à la documentation</p><html>");
|
2022-05-27 15:02:18 +02:00
|
|
|
|
btnNewButton.addActionListener(new ActionListener() {
|
|
|
|
|
public void actionPerformed(ActionEvent e) {
|
|
|
|
|
try {
|
|
|
|
|
String url = "https://forge.chapril.org/pablo/analyseWriter/releases";
|
|
|
|
|
java.awt.Desktop.getDesktop().browse(java.net.URI.create(url));
|
|
|
|
|
}
|
|
|
|
|
catch (java.io.IOException e1) {
|
|
|
|
|
System.out.println(e1.getMessage());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
2022-06-11 12:10:28 +02:00
|
|
|
|
btnNewButton.setBounds(290, 104, 202, 50);
|
2022-05-27 15:02:18 +02:00
|
|
|
|
getContentPane().add(btnNewButton);
|
|
|
|
|
|
2022-05-24 18:25:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|