mirror of
https://github.com/LucasVbr/LecteurPdfDoubleAffichage.git
synced 2026-07-09 12:47:45 +00:00
code cleanup
This commit is contained in:
@@ -28,10 +28,9 @@ public class Popup {
|
|||||||
* @return JOptionPane.YES_OPTION si oui est cliqué, JOptionPane.NO_OPTION si non est cliqué
|
* @return JOptionPane.YES_OPTION si oui est cliqué, JOptionPane.NO_OPTION si non est cliqué
|
||||||
*/
|
*/
|
||||||
public static int OuiNonPopup(Component parent, String titre, String message) {
|
public static int OuiNonPopup(Component parent, String titre, String message) {
|
||||||
JOptionPane d = new JOptionPane();
|
|
||||||
String[] choix = {"Oui", "Non"};
|
String[] choix = {"Oui", "Non"};
|
||||||
return d.showOptionDialog(parent, message, titre, JOptionPane.YES_NO_OPTION, JOptionPane.INFORMATION_MESSAGE,
|
return JOptionPane.showOptionDialog(parent, message, titre, JOptionPane.YES_NO_OPTION, JOptionPane.INFORMATION_MESSAGE,
|
||||||
null, choix, choix[0]);
|
null, choix, choix[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ import java.io.IOException;
|
|||||||
public class DocumentPdf {
|
public class DocumentPdf {
|
||||||
|
|
||||||
/** TODO */
|
/** TODO */
|
||||||
private PDDocument document;
|
private final PDDocument document;
|
||||||
|
|
||||||
/** TODO */
|
/** TODO */
|
||||||
private PDFRenderer renderer;
|
private PDFRenderer renderer;
|
||||||
|
|||||||
Reference in New Issue
Block a user