code cleanup

This commit is contained in:
NonoL3Robot
2022-03-10 12:23:03 +01:00
parent 24b95c1264
commit 90acb7d431
2 changed files with 3 additions and 4 deletions
+2 -3
View File
@@ -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]);
}
/**
+1 -1
View File
@@ -24,7 +24,7 @@ import java.io.IOException;
public class DocumentPdf {
/** TODO */
private PDDocument document;
private final PDDocument document;
/** TODO */
private PDFRenderer renderer;