MAJ V1.0.1 (JRE 1.8 with JDK 1.8.0_271)
This commit is contained in:
parent
f152091610
commit
837bbeac2b
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
@ -163,8 +163,8 @@
|
|||||||
inkscape:document-rotation="0"
|
inkscape:document-rotation="0"
|
||||||
inkscape:current-layer="layer1"
|
inkscape:current-layer="layer1"
|
||||||
inkscape:document-units="mm"
|
inkscape:document-units="mm"
|
||||||
inkscape:cy="45.257179"
|
inkscape:cy="45.848777"
|
||||||
inkscape:cx="268.88089"
|
inkscape:cx="320.94144"
|
||||||
inkscape:zoom="1.6903395"
|
inkscape:zoom="1.6903395"
|
||||||
inkscape:pageshadow="2"
|
inkscape:pageshadow="2"
|
||||||
inkscape:pageopacity="0.0"
|
inkscape:pageopacity="0.0"
|
||||||
@ -310,9 +310,11 @@
|
|||||||
d="m 165.60421,210.25518 1.82913,-13.90142 c -1.86721,0.41019 -1.24071,5.14178 -2.26609,5.73964 -0.90416,0.52717 -2.9307,-2.35026 -4.06786,-2.12548 -1.70014,0.33605 2.39156,6.64425 -1.96215,4.47795 z"
|
d="m 165.60421,210.25518 1.82913,-13.90142 c -1.86721,0.41019 -1.24071,5.14178 -2.26609,5.73964 -0.90416,0.52717 -2.9307,-2.35026 -4.06786,-2.12548 -1.70014,0.33605 2.39156,6.64425 -1.96215,4.47795 z"
|
||||||
id="path1247"
|
id="path1247"
|
||||||
sodipodi:nodetypes="ccsscc" /></g></g><g
|
sodipodi:nodetypes="ccsscc" /></g></g><g
|
||||||
|
id="g2449"
|
||||||
|
transform="matrix(1.1432259,0,0,1.1432259,-22.591005,-7.8839574)"><g
|
||||||
id="g2362"
|
id="g2362"
|
||||||
transform="matrix(0.11481241,0,0,0.11481241,235.1247,60.097108)"
|
transform="matrix(0.11481241,0,0,0.11481241,235.1247,60.097108)"
|
||||||
style="stroke-width:3.16928;fill:#ffffff"><path
|
style="fill:#ffffff;stroke-width:3.16928"><path
|
||||||
id="path2352"
|
id="path2352"
|
||||||
style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#ffffff;stroke-width:3.16928"
|
style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#ffffff;stroke-width:3.16928"
|
||||||
sodipodi:type="inkscape:offset"
|
sodipodi:type="inkscape:offset"
|
||||||
@ -336,7 +338,7 @@
|
|||||||
id="path2580" /><path
|
id="path2580" /><path
|
||||||
d="m -736.28768,-35.186835 c -3.52625,-3.52625 1.15,-15.425 2.64125,-19.53 0.28875,-0.79125 0.8325,-2.3725 1.545,-4.50375 0.35,-1.035 0.73625,-2.19625 1.16,-3.465 2.02625,-6.09125 4.805,-14.565 7.3975,-22.51875 2.64125,-8.74 0.1375,-12.23875 -5.25625,-12.23875 -3.81875,1.17625 -9.83875,2.34875 -9.83875,2.34875 0,0 6.9,0.1475 4.11,8.95625 -1.705,5.39375 -4.7375,14.9 -9.2325,27.5825 -0.2925,0.8275 -0.59375,1.665 -0.8975,2.5175 -0.0912,0.25875 -0.185,0.5175 -0.27875,0.78375 -3.34625,9.51125 -6.77125,22.40375 2.4975,26.03 6.75375,2.64375 17.46,-3.76 23.32875,-11.245 -8.80625,6.01625 -13.6525,8.80875 -17.17625,5.2825"
|
d="m -736.28768,-35.186835 c -3.52625,-3.52625 1.15,-15.425 2.64125,-19.53 0.28875,-0.79125 0.8325,-2.3725 1.545,-4.50375 0.35,-1.035 0.73625,-2.19625 1.16,-3.465 2.02625,-6.09125 4.805,-14.565 7.3975,-22.51875 2.64125,-8.74 0.1375,-12.23875 -5.25625,-12.23875 -3.81875,1.17625 -9.83875,2.34875 -9.83875,2.34875 0,0 6.9,0.1475 4.11,8.95625 -1.705,5.39375 -4.7375,14.9 -9.2325,27.5825 -0.2925,0.8275 -0.59375,1.665 -0.8975,2.5175 -0.0912,0.25875 -0.185,0.5175 -0.27875,0.78375 -3.34625,9.51125 -6.77125,22.40375 2.4975,26.03 6.75375,2.64375 17.46,-3.76 23.32875,-11.245 -8.80625,6.01625 -13.6525,8.80875 -17.17625,5.2825"
|
||||||
style="fill:#35af3f;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3.16928"
|
style="fill:#35af3f;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3.16928"
|
||||||
id="path2582" /></g><g
|
id="path2582" /></g></g><g
|
||||||
id="g2056"
|
id="g2056"
|
||||||
transform="translate(-35.154076,-15.621205)"><g
|
transform="translate(-35.154076,-15.621205)"><g
|
||||||
id="g1248"
|
id="g1248"
|
||||||
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
@ -10,6 +10,7 @@ import java.awt.event.InputEvent;
|
|||||||
import java.awt.event.ItemEvent;
|
import java.awt.event.ItemEvent;
|
||||||
import java.awt.event.ItemListener;
|
import java.awt.event.ItemListener;
|
||||||
import java.awt.event.KeyEvent;
|
import java.awt.event.KeyEvent;
|
||||||
|
import java.io.File;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.Comparator;
|
import java.util.Comparator;
|
||||||
@ -334,8 +335,6 @@ public class gestionnaire extends JFrame {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
JMenu menuExport = new JMenu("Export");
|
JMenu menuExport = new JMenu("Export");
|
||||||
menuExport.setFont(new Font("Tahoma", Font.BOLD, 14));
|
menuExport.setFont(new Font("Tahoma", Font.BOLD, 14));
|
||||||
JMenuItem exportItem = menuExport.add(new exportTable(this));
|
JMenuItem exportItem = menuExport.add(new exportTable(this));
|
||||||
@ -346,6 +345,30 @@ public class gestionnaire extends JFrame {
|
|||||||
|
|
||||||
menuBar.add(menuExport);
|
menuBar.add(menuExport);
|
||||||
|
|
||||||
|
JMenu mnNewMenu = new JMenu("Base");
|
||||||
|
mnNewMenu.setFont(new Font("Tahoma", Font.BOLD, 14));
|
||||||
|
menuBar.add(mnNewMenu);
|
||||||
|
|
||||||
|
JMenuItem menueSauvegardeBase = new JMenuItem("Créer une sauvegarde de la base");
|
||||||
|
mnNewMenu.add(menueSauvegardeBase);
|
||||||
|
menueSauvegardeBase.addActionListener(new ActionListener() {
|
||||||
|
public void actionPerformed(ActionEvent e) {
|
||||||
|
File f = FileChooserXML.retourneFileXML();
|
||||||
|
if(f!=null) {
|
||||||
|
sauvegardeXMLBase.saveSauvegarde(commandes.nBase, f.getAbsolutePath());
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
mnNewMenu.addSeparator();
|
||||||
|
|
||||||
|
JMenuItem menuSelectYearDefautl = new JMenuItem("Sélectionner une année universitaire par défaut");
|
||||||
|
mnNewMenu.add(menuSelectYearDefautl);
|
||||||
|
|
||||||
|
JMenuItem menuCreateYearDefault = new JMenuItem("Créer une année universitaire");
|
||||||
|
mnNewMenu.add(menuCreateYearDefault);
|
||||||
|
|
||||||
panelNorth.add(panelFiltre);
|
panelNorth.add(panelFiltre);
|
||||||
|
|
||||||
cLV1= new JComboBox<String>();
|
cLV1= new JComboBox<String>();
|
||||||
@ -1291,6 +1314,4 @@ public class gestionnaire extends JFrame {
|
|||||||
ignoreItemStateChange = false;
|
ignoreItemStateChange = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -46,6 +46,24 @@ public static void saveSauvegarde(noeud nBase) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void saveSauvegarde(noeud nBase, String path) {
|
||||||
|
|
||||||
|
if(!path.endsWith(".xml")) {
|
||||||
|
path = path + ".xml";
|
||||||
|
}
|
||||||
|
|
||||||
|
try (BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(
|
||||||
|
new FileOutputStream(path), StandardCharsets.UTF_8))) {
|
||||||
|
writer.write(nBase.toWrite());
|
||||||
|
JOptionPane.showMessageDialog(null, "Sauvegarde réussi.","Message",JOptionPane.OK_OPTION);
|
||||||
|
} catch (IOException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
JOptionPane.showMessageDialog(null, e.toString(), "Erreur dans la méthode saveSauvegarde.", JOptionPane.ERROR_MESSAGE);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public static void saveModif(noeud nBase, Integer nbreModif) {
|
public static void saveModif(noeud nBase, Integer nbreModif) {
|
||||||
// Sauvegarde de la base
|
// Sauvegarde de la base
|
||||||
|
Loading…
Reference in New Issue
Block a user