diff --git a/src/org/dclermonte/siba/gui/AboutDialog.java b/src/org/dclermonte/siba/gui/AboutDialog.java index 05a558d..e8fa176 100644 --- a/src/org/dclermonte/siba/gui/AboutDialog.java +++ b/src/org/dclermonte/siba/gui/AboutDialog.java @@ -46,7 +46,7 @@ import org.slf4j.LoggerFactory; public class AboutDialog extends JDialog { private static final long serialVersionUID = 8868109575782482455L; - public static final Logger logger = LoggerFactory.getLogger(SibaGUI.class); + public static final Logger logger = LoggerFactory.getLogger(AboutDialog.class); /** * This is the constructor for the dialog. diff --git a/src/org/dclermonte/siba/gui/CheckPanel.java b/src/org/dclermonte/siba/gui/CheckPanel.java index f8d6098..3977552 100644 --- a/src/org/dclermonte/siba/gui/CheckPanel.java +++ b/src/org/dclermonte/siba/gui/CheckPanel.java @@ -114,22 +114,23 @@ public class CheckPanel extends JPanel { try { - File choosenFile = CheckPanel.this.choosenFile; - if ((choosenFile != null) && choosenFile.exists()) + // File choosenFile = new + // File(CheckPanel.this.fileToCheckField.getText()); + if ((CheckPanel.this.choosenFile != null) && CheckPanel.this.choosenFile.exists()) { - boolean check = SibaManager.check(choosenFile); + boolean check = SibaManager.check(CheckPanel.this.choosenFile); String titre = BUNDLE.getString("CheckPanel.confirmDialogTitle.text"); if (check) { String message = String.format(BUNDLE.getString("CheckPanel.confirmDialogGood.text"), - choosenFile.getName()); + CheckPanel.this.choosenFile.getName()); JOptionPane.showMessageDialog(CheckPanel.this, message, titre, JOptionPane.INFORMATION_MESSAGE); } else { String message = String.format(BUNDLE.getString("CheckPanel.confirmDialogBad.text"), - choosenFile.getName()); + CheckPanel.this.choosenFile.getName()); JOptionPane.showMessageDialog(CheckPanel.this, message, titre, JOptionPane.INFORMATION_MESSAGE); }