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
+1 -2
View File
@@ -28,9 +28,8 @@ 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]);
} }
+1 -1
View File
@@ -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;