mirror of
https://github.com/LucasVbr/LecteurPdfDoubleAffichage.git
synced 2026-07-09 12:47:45 +00:00
modification pour avoir la plein écran tout le temps et avoir la scrollbar horizontale automatiquement
This commit is contained in:
@@ -86,6 +86,7 @@ public class Fenetre extends JFrame {
|
|||||||
*/
|
*/
|
||||||
public void chargerPDF() throws IOException {
|
public void chargerPDF() throws IOException {
|
||||||
if (haveDocument()) chargerPDF(fichier, 1.0f);
|
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 {
|
public void chargerPDF(float zoom) throws IOException {
|
||||||
if (haveDocument()) chargerPDF(fichier, zoom);
|
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 {
|
public void chargerPDF(File fichier) throws IOException {
|
||||||
chargerPDF(fichier, 1.0f);
|
chargerPDF(fichier, 1.0f);
|
||||||
|
this.setExtendedState(JFrame.MAXIMIZED_BOTH);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -137,6 +140,8 @@ public class Fenetre extends JFrame {
|
|||||||
this.validate();
|
this.validate();
|
||||||
this.pack();
|
this.pack();
|
||||||
this.setLocationRelativeTo(null);
|
this.setLocationRelativeTo(null);
|
||||||
|
this.setExtendedState(JFrame.MAXIMIZED_BOTH);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -203,7 +203,7 @@ public class Menu extends JMenuBar {
|
|||||||
final int QUITTER = 1;
|
final int QUITTER = 1;
|
||||||
|
|
||||||
final String[][] POPUPS_MSG = {
|
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 ?"}
|
{"Quitter l'application", "Êtes-vous sûr de vouloir quitter ?"}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user