Compare commits
No commits in common. "7fea10f4dc996ce6d7a92592484a9b001c200416" and "5f0d2ea7b1ec73e57f8e2596929bc4ac59937c0a" have entirely different histories.
7fea10f4dc
...
5f0d2ea7b1
2 changed files with 6 additions and 19 deletions
5
NOTES.md
5
NOTES.md
|
|
@ -19,8 +19,3 @@ Décentralisée ou centralisée sur serveur, au choix
|
||||||
* Chaque noeud à une bdd locale -> Serveur SQL qu'on veut (SQLite plus simple)
|
* Chaque noeud à une bdd locale -> Serveur SQL qu'on veut (SQLite plus simple)
|
||||||
|
|
||||||
|
|
||||||
## Rapport
|
|
||||||
expliquer l'archi et les choix
|
|
||||||
expliquer schéma bdd relationnelle
|
|
||||||
manuel utilisation appli
|
|
||||||
plus import -> procédure déploiement
|
|
||||||
|
|
@ -13,7 +13,6 @@ import javafx.scene.layout.VBox;
|
||||||
import java.awt.*;
|
import java.awt.*;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.net.URISyntaxException;
|
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
import java.text.DateFormat;
|
import java.text.DateFormat;
|
||||||
import java.util.ResourceBundle;
|
import java.util.ResourceBundle;
|
||||||
|
|
@ -42,7 +41,12 @@ public class MessageListItemController implements Initializable {
|
||||||
FileMessage fileMessage = ((FileMessage) message);
|
FileMessage fileMessage = ((FileMessage) message);
|
||||||
text += "\n<" + fileMessage.getFileName() + ">";
|
text += "\n<" + fileMessage.getFileName() + ">";
|
||||||
button.setOnMouseClicked(event -> {
|
button.setOnMouseClicked(event -> {
|
||||||
openFile(fileMessage.getPath());
|
Desktop desktop = Desktop.getDesktop();
|
||||||
|
try {
|
||||||
|
desktop.open(new File(fileMessage.getPath()));
|
||||||
|
} catch (IOException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
button.setText(text);
|
button.setText(text);
|
||||||
|
|
@ -58,18 +62,6 @@ public class MessageListItemController implements Initializable {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void openFile(String path) {
|
|
||||||
if (Desktop.isDesktopSupported()) {
|
|
||||||
new Thread(() -> {
|
|
||||||
try {
|
|
||||||
Desktop.getDesktop().open(new File(path));
|
|
||||||
} catch (IOException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}).start();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes any style applied to the background
|
* Removes any style applied to the background
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue