modification pour avoir la plein écran tout le temps et avoir la scrollbar horizontale automatiquement

This commit is contained in:
leofranch
2021-12-08 11:58:27 +01:00
parent d31b07284a
commit 776d27885b
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -86,6 +86,7 @@ public class Fenetre extends JFrame {
*/
public void chargerPDF() throws IOException {
if (haveDocument()) chargerPDF(fichier, 1.0f);
this.setExtendedState(JFrame.MAXIMIZED_BOTH);
}
/**
@@ -96,6 +97,7 @@ public class Fenetre extends JFrame {
*/
public void chargerPDF(float zoom) throws IOException {
if (haveDocument()) chargerPDF(fichier, zoom);
this.setExtendedState(JFrame.MAXIMIZED_BOTH);
}
/**
@@ -106,6 +108,7 @@ public class Fenetre extends JFrame {
*/
public void chargerPDF(File fichier) throws IOException {
chargerPDF(fichier, 1.0f);
this.setExtendedState(JFrame.MAXIMIZED_BOTH);
}
/**
@@ -137,6 +140,8 @@ public class Fenetre extends JFrame {
this.validate();
this.pack();
this.setLocationRelativeTo(null);
this.setExtendedState(JFrame.MAXIMIZED_BOTH);
}
/**
+1 -1
View File
@@ -203,7 +203,7 @@ public class Menu extends JMenuBar {
final int QUITTER = 1;
final String[][] POPUPS_MSG = {
{"Fermer le PDF actuel", "Êtes-vous sûr de vouloir fermer ?"},
{"Fermer le PDF actuel", "Êtes-vous sûr de vouloir fermer le PDF Courant ?"},
{"Quitter l'application", "Êtes-vous sûr de vouloir quitter ?"}
};