mirror of
https://github.com/LucasVbr/LecteurPdfDoubleAffichage.git
synced 2026-05-16 09:05:34 +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é
|
||||
*/
|
||||
public static int OuiNonPopup(Component parent, String titre, String message) {
|
||||
JOptionPane d = new JOptionPane();
|
||||
String[] choix = {"Oui", "Non"};
|
||||
return d.showOptionDialog(parent, message, titre, JOptionPane.YES_NO_OPTION, JOptionPane.INFORMATION_MESSAGE,
|
||||
null, choix, choix[0]);
|
||||
return JOptionPane.showOptionDialog(parent, message, titre, JOptionPane.YES_NO_OPTION, JOptionPane.INFORMATION_MESSAGE,
|
||||
null, choix, choix[0]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,7 +24,7 @@ import java.io.IOException;
|
||||
public class DocumentPdf {
|
||||
|
||||
/** TODO */
|
||||
private PDDocument document;
|
||||
private final PDDocument document;
|
||||
|
||||
/** TODO */
|
||||
private PDFRenderer renderer;
|
||||
|
||||
Reference in New Issue
Block a user