intégration des différent pop-ups dans le main

This commit is contained in:
leofranch
2021-12-07 14:19:05 +01:00
parent 1d9251c7bc
commit ad980a341e
5 changed files with 83 additions and 25 deletions
+5 -5
View File
@@ -46,17 +46,17 @@ public class PDF extends JPanel {
* @param fichier Le fichier PDF que lon veut ouvrir
* @throws IllegalArgumentException si le fichier nexiste pas
*/
public PDF(File fichier) {
try {
public PDF(File fichier) throws IOException{
// try {
this.document = PDDocument.load(fichier);
this.pages = new Page[document.getNumberOfPages()];
this.zoom = 1.0f;
this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
this.setAlignmentX(Component.CENTER_ALIGNMENT);
} catch (IOException e) {
throw new IllegalArgumentException();
}
// } catch (IOException e) {
// throw new IllegalArgumentException();
// }
}
/**