This commit is contained in:
pablo rodriguez 2022-11-24 20:02:48 +01:00
parent 01a4385195
commit fdacdc5856
3 changed files with 3 additions and 2 deletions

Binary file not shown.

Binary file not shown.

View File

@ -59,10 +59,11 @@ public class filechooserXML extends JFileChooser {
private void openFileXML(File file) {
commandes.fichierAnalyseValide=true;
System.out.println("commandes.path="+file.getPath());
if(file.getPath().lastIndexOf("\\")>0) {
commandes.path = file.getPath().substring(0,file.getPath().lastIndexOf("\\"));
commandes.path = file.getPath().substring(0,file.getPath().lastIndexOf("\\")); // Sur Windows
}else {
commandes.path = file.getPath();
commandes.path = file.getPath(); // Sur mac
}
commandes.PathFilenameAnalysis = getCurrentDirectory().getPath();