Issue#25 getLogger on the right class AboutDialog

This commit is contained in:
Didier Clermonté 2016-06-22 11:35:42 +02:00
parent c767d19407
commit 3390335269
2 changed files with 7 additions and 6 deletions

View File

@ -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.

View File

@ -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);
}