MAJ V1.0.1 (JRE 1.8 with JDK 1.8.0_271)

This commit is contained in:
pablo rodriguez 2023-07-02 15:12:27 +02:00
parent e3edd431d4
commit 15a9a1b2b0
9 changed files with 90 additions and 67 deletions

BIN
Base.xlsx

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -7,9 +7,9 @@
inkscape:version="1.2.1 (9c6d41e410, 2022-07-14)"
id="svg8"
version="1.1"
viewBox="0 0 90.019821 11.532569"
height="43.587662"
width="340.23239"
viewBox="0 0 174.66718 10.000005"
height="37.795296"
width="660.15942"
xml:space="preserve"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
@ -20,6 +20,17 @@
xmlns:cc="http://creativecommons.org/ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"><defs
id="defs2"><linearGradient
inkscape:collect="always"
id="linearGradient1932"><stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop1928" /><stop
style="stop-color:#ed60c9;stop-opacity:1;"
offset="0.71511286"
id="stop2786" /><stop
style="stop-color:#db9d60;stop-opacity:1;"
offset="1"
id="stop1930" /></linearGradient><linearGradient
id="k"
gradientTransform="matrix(7.99974,0,0,7.9977797,-873.96742,-7808.7674)"
gradientUnits="userSpaceOnUse"
@ -123,7 +134,17 @@
id="stop12" /><stop
offset="1"
stop-color="#ff0"
id="stop14" /></linearGradient></defs><sodipodi:namedview
id="stop14" /></linearGradient><radialGradient
inkscape:collect="always"
xlink:href="#linearGradient1932"
id="radialGradient1934"
cx="75.284492"
cy="52.004837"
fx="75.284492"
fy="52.004837"
r="37.683716"
gradientTransform="matrix(1.4493524,0,0,0.13268325,-32.195302,47.700862)"
gradientUnits="userSpaceOnUse" /></defs><sodipodi:namedview
inkscape:window-maximized="1"
inkscape:window-y="-8"
inkscape:window-x="-8"
@ -140,10 +161,10 @@
inkscape:snap-global="true"
showgrid="false"
inkscape:document-rotation="0"
inkscape:current-layer="g2056"
inkscape:current-layer="layer1"
inkscape:document-units="mm"
inkscape:cy="61.201469"
inkscape:cx="121.69745"
inkscape:cy="61.554215"
inkscape:cx="104.58925"
inkscape:zoom="2.8348993"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
@ -161,16 +182,16 @@
inkscape:deskcolor="#d1d1d1"><sodipodi:guide
id="guide1680"
orientation="0,-1"
position="38.054425,-3.3969052"
position="46.02753,-1.0460123"
inkscape:locked="false" /><sodipodi:guide
position="11.159156,4.1758828"
position="19.132263,6.5267754"
orientation="0,-1"
id="guide946"
inkscape:locked="false" /></sodipodi:namedview><metadata
id="metadata5"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /></cc:Work></rdf:RDF></metadata><g
transform="translate(-30.274579,-45.717567)"
transform="translate(-22.301472,-49.601023)"
id="layer1"
inkscape:groupmode="layer"
inkscape:label="Calque 1"><g
@ -216,15 +237,15 @@
x="31.987135"
y="46.825306" /><text
xml:space="preserve"
style="font-size:4.93889px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;stroke-width:0.192132"
x="41.364815"
y="53.197578"
style="font-size:7.1582px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.278467"
x="21.843348"
y="56.329731"
id="text835"><tspan
sodipodi:role="line"
id="tspan833"
x="41.364815"
y="53.197578"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.93889px;font-family:Pacifico;-inkscape-font-specification:Pacifico;stroke-width:0.192132">Gestion des inscriptions des étudiants</tspan></text><g
x="21.843348"
y="56.329731"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:7.1582px;font-family:Pacifico;-inkscape-font-specification:Pacifico;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.278467">Gestion des inscriptions, des groupes, feuilles d'émargement</tspan></text><g
transform="matrix(0.1376497,0,0,0.15959018,15.807283,23.767637)"
id="g884"
style="stroke-width:1.89623;stroke-miterlimit:4;stroke-dasharray:none"><rect
@ -288,14 +309,16 @@
style="fill:#35af3f;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3.16928"
id="path2582" /></g><g
id="g2056"
transform="translate(-18.759485,-28.372554)"><rect
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stop-color:#000000"
id="rect1446"
width="6.6498156"
height="6.4167376"
x="50.830681"
y="75.350082"
ry="1.3043859" /><path
style="fill:#03b7ea;fill-opacity:1;stroke:#000000;stroke-width:0.465;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;stroke-dasharray:none"
d="m 53.653937,84.776494 -0.02333,-7.326466 5.78651,5.249857 -3.803231,-0.863312 z"
id="path633" /></g></g></svg>
transform="translate(-18.759485,-28.372554)"><g
id="g1248"
transform="translate(-3.4089682,16.030063)"><rect
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stop-color:#000000"
id="rect1446"
width="6.6498156"
height="6.4167376"
x="50.830681"
y="75.350082"
ry="1.3043859" /><path
style="fill:#03b7ea;fill-opacity:1;stroke:#000000;stroke-width:0.465;stroke-linecap:butt;stroke-linejoin:miter;stroke-dasharray:none;stroke-opacity:1"
d="m 53.653937,84.776494 -0.02333,-7.326466 5.78651,5.249857 -3.803231,-0.863312 z"
id="path633" /></g></g></g></svg>

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View File

@ -1,6 +1,7 @@
package baseUFRHG;
import java.awt.Font;
import java.awt.Image;
import java.awt.Window;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
@ -17,6 +18,7 @@ import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.SwingConstants;
import java.awt.Color;
public class demarre extends JFrame {
@ -70,7 +72,7 @@ public class demarre extends JFrame {
private void initialize() {
frmEvalwriter = new JFrame();
frmEvalwriter.setTitle("Gestion des inscriptions et des groupes - langues - informatique - stage - rentrée");
frmEvalwriter.setBounds(100, 100, 760, 484);
frmEvalwriter.setBounds(100, 100, 789, 613);
int screenWidth = (int) java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds().getWidth();
int screenHeight = (int) java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds().getHeight();
frmEvalwriter.setLocation(( (screenWidth) - frmEvalwriter.getWidth()) / 2, (screenHeight - frmEvalwriter.getHeight()) / 2);
@ -82,7 +84,8 @@ public class demarre extends JFrame {
frmEvalwriter.setResizable(false);
btnCreate = new JButton("Exporter toute la base dans un classeur MS Excel (base.xlsx)");
btnCreate = new JButton("<html>Exporter toute la base dans<br>un classeur MS Excel (base.xlsx)</html>");
btnCreate.setHorizontalAlignment(SwingConstants.LEFT);
btnCreate.setIcon(new ImageIcon(demarre.class.getResource("/resources/exportbasetoexcel.png")));
btnCreate.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
@ -93,23 +96,22 @@ public class demarre extends JFrame {
exportBaseToExcel.exportBase();
}
});
btnCreate.setHorizontalAlignment(SwingConstants.LEFT);
btnCreate.setFont(new Font("Arial", Font.BOLD, 16));
// btnCreate.addActionListener(this);
btnCreate.setBounds(10, 211, 722, 60);
btnCreate.setBounds(10, 394, 377, 78);
frmEvalwriter.getContentPane().add(btnCreate);
actCharge = new JButton("<html>Importer des inscriptions<br>depuis CSV (UTF-8, point-virgule)</html>");
actCharge.setHorizontalAlignment(SwingConstants.LEFT);
actCharge.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
importInscriptionCSV.importe();
}
});
actCharge.setHorizontalAlignment(SwingConstants.LEFT);
actCharge.setIcon(new ImageIcon(demarre.class.getResource("/resources/importationcsv.png")));
actCharge.setFont(new Font("Arial", Font.BOLD, 16));
actCharge.setBounds(10, 109, 356, 60);
actCharge.setBounds(10, 323, 377, 60);
frmEvalwriter.getContentPane().add(actCharge);
JLabel lblNewLabel = new JLabel();
@ -117,12 +119,12 @@ public class demarre extends JFrame {
// lblNewLabel.setIcon(new ImageIcon(demarre.class.getResource("/resources/accueilanalysecalc.png")));
lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
lblNewLabel.setFont(new Font("Pacifico", Font.PLAIN, 26));
lblNewLabel.setBounds(10, 14, 722, 60);
lblNewLabel.setBounds(10, 82, 753, 106);
frmEvalwriter.getContentPane().add(lblNewLabel);
JButton btnNewButton = new JButton("<html>Mise à jour de la base<br>depuis classeur MS Excel</html>");
btnNewButton.setIcon(new ImageIcon(demarre.class.getResource("/resources/majInscriptionToBase.png")));
btnNewButton.setHorizontalAlignment(SwingConstants.LEFT);
btnNewButton.setIcon(new ImageIcon(demarre.class.getResource("/resources/majInscriptionToBase.png")));
btnNewButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
File f = FileChooserXLSX.retourneFileXLSX();
@ -135,10 +137,10 @@ public class demarre extends JFrame {
});
btnNewButton.setFont(new Font("Arial", Font.BOLD, 16));
// btnNewButton.setIcon(new ImageIcon(demarre.class.getResource("/resources/apropos.png")));
btnNewButton.setBounds(10, 313, 356, 60);
btnNewButton.setBounds(10, 483, 377, 60);
frmEvalwriter.getContentPane().add(btnNewButton);
JButton btnTutoriels = new JButton("Gestionnaire de la base");
JButton btnTutoriels = new JButton("Gestionnaire");
btnTutoriels.setIcon(new ImageIcon(demarre.class.getResource("/resources/gestionnaire.png")));
btnTutoriels.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
@ -148,32 +150,15 @@ public class demarre extends JFrame {
afficheGestionnaire();
}
});
// btnTutoriels.setIcon(new ImageIcon(demarre.class.getResource("/resources/tutoriel.png")));
btnTutoriels.setHorizontalAlignment(SwingConstants.LEFT);
btnTutoriels.setFont(new Font("Arial", Font.BOLD, 16));
btnTutoriels.setBounds(376, 313, 356, 95);
btnTutoriels.setBounds(397, 394, 366, 175);
frmEvalwriter.getContentPane().add(btnTutoriels);
JLabel lblNewLabel_1 = new JLabel("Importer dans la base des inscriptions depuis un fichier");
lblNewLabel_1.setFont(new Font("Arial", Font.BOLD, 14));
lblNewLabel_1.setBounds(10, 77, 455, 30);
frmEvalwriter.getContentPane().add(lblNewLabel_1);
JLabel lblNewLabel_1_1 = new JLabel("Exporter la base");
lblNewLabel_1_1.setFont(new Font("Arial", Font.BOLD, 14));
lblNewLabel_1_1.setBounds(10, 180, 347, 30);
frmEvalwriter.getContentPane().add(lblNewLabel_1_1);
JLabel lblNewLabel_1_1_1 = new JLabel("Mise à jour de la base");
lblNewLabel_1_1_1.setFont(new Font("Arial", Font.BOLD, 14));
lblNewLabel_1_1_1.setBounds(10, 283, 347, 30);
frmEvalwriter.getContentPane().add(lblNewLabel_1_1_1);
JButton btnimporterDesInscriptionsdepuis = new JButton("<html>Importer des inscriptions<br>depuis tableur MS Excel</html>");
btnimporterDesInscriptionsdepuis.setIcon(new ImageIcon(demarre.class.getResource("/resources/importationexcel.png")));
btnimporterDesInscriptionsdepuis.setHorizontalAlignment(SwingConstants.LEFT);
btnimporterDesInscriptionsdepuis.setIcon(new ImageIcon(demarre.class.getResource("/resources/importationexcel.png")));
btnimporterDesInscriptionsdepuis.setFont(new Font("Arial", Font.BOLD, 16));
btnimporterDesInscriptionsdepuis.setBounds(376, 109, 356, 60);
btnimporterDesInscriptionsdepuis.setBounds(397, 323, 366, 60);
btnimporterDesInscriptionsdepuis.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
File f = FileChooserXLSX.retourneFileXLSX();
@ -184,12 +169,12 @@ public class demarre extends JFrame {
});
frmEvalwriter.getContentPane().add(btnimporterDesInscriptionsdepuis);
JLabel lblNewLabel_2 = new JLabel("version 1.0.1");
lblNewLabel_2.setBounds(139, 426, 128, 14);
frmEvalwriter.getContentPane().add(lblNewLabel_2);
JLabel lblNewLabel_3 = new JLabel("pablo rodriguez - 2023");
lblNewLabel_3.setBounds(10, 426, 151, 14);
JLabel lblNewLabel_3 = new JLabel("<html>pablo rodriguez - 2023<br>Version 1.0.1</html>");
lblNewLabel_3.setVerticalAlignment(SwingConstants.TOP);
lblNewLabel_3.setHorizontalAlignment(SwingConstants.LEFT);
lblNewLabel_3.setFont(new Font("Tahoma", Font.BOLD, 14));
lblNewLabel_3.setForeground(new Color(255, 255, 255));
lblNewLabel_3.setBounds(22, 11, 265, 40);
frmEvalwriter.getContentPane().add(lblNewLabel_3);
JButton btnNAideMiseAJour = new JButton("Aide à la mise en jour");
@ -199,10 +184,28 @@ public class demarre extends JFrame {
}
});
btnNAideMiseAJour.setFont(new Font("Tahoma", Font.BOLD, 12));
btnNAideMiseAJour.setBounds(10, 378, 356, 30);
btnNAideMiseAJour.setBounds(10, 539, 377, 30);
frmEvalwriter.getContentPane().add(btnNAideMiseAJour);
ImageIcon imageIcon = new ImageIcon(demarre.class.getResource("/resources/Sans titre.png"));
Image image = imageIcon.getImage();
// Détermination de la taille souhaitée pour l'image
int newWidth = frmEvalwriter.getWidth();
int newHeight = frmEvalwriter.getHeight()-260;
// Redimensionnement de l'image pour qu'elle s'adapte à la taille souhaitée
Image resizedImage = image.getScaledInstance(newWidth, newHeight, Image.SCALE_SMOOTH);
JLabel lblNewLabel_4 = new JLabel(new ImageIcon(resizedImage));
lblNewLabel_4.setVerticalAlignment(SwingConstants.BOTTOM);
// lblNewLabel_4.setHorizontalAlignment(SwingConstants.CENTER);
// lblNewLabel_4.setIcon(new ImageIcon(demarre.class.getResource("/resources/Sans titre.png")));
lblNewLabel_4.setBounds(10, -48, 753, 365);
frmEvalwriter.getContentPane().add(lblNewLabel_4);
// Ajoutez un WindowListener à la fenêtre principale
frmEvalwriter.addWindowListener(new WindowAdapter() {
@Override
@ -248,6 +251,4 @@ public class demarre extends JFrame {
JOptionPane.showMessageDialog(null, panel, "Erreur", JOptionPane.ERROR_MESSAGE);
}
}
}

View File

@ -45,7 +45,6 @@ import javax.swing.event.TableModelEvent;
import javax.swing.event.TableModelListener;
import javax.swing.table.DefaultTableCellRenderer;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableCellRenderer;
import javax.swing.table.TableModel;
import baseUFRHG.sauvegardeXMLBase.saveType;

Binary file not shown.

After

Width:  |  Height:  |  Size: 472 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 46 KiB