Issue#25 getLogger on the right class AboutDialog
This commit is contained in:
parent
c767d19407
commit
3390335269
@ -46,7 +46,7 @@ import org.slf4j.LoggerFactory;
|
|||||||
public class AboutDialog extends JDialog
|
public class AboutDialog extends JDialog
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 8868109575782482455L;
|
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.
|
* This is the constructor for the dialog.
|
||||||
|
@ -114,22 +114,23 @@ public class CheckPanel extends JPanel
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
File choosenFile = CheckPanel.this.choosenFile;
|
// File choosenFile = new
|
||||||
if ((choosenFile != null) && choosenFile.exists())
|
// 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");
|
String titre = BUNDLE.getString("CheckPanel.confirmDialogTitle.text");
|
||||||
if (check)
|
if (check)
|
||||||
{
|
{
|
||||||
String message = String.format(BUNDLE.getString("CheckPanel.confirmDialogGood.text"),
|
String message = String.format(BUNDLE.getString("CheckPanel.confirmDialogGood.text"),
|
||||||
choosenFile.getName());
|
CheckPanel.this.choosenFile.getName());
|
||||||
JOptionPane.showMessageDialog(CheckPanel.this, message, titre,
|
JOptionPane.showMessageDialog(CheckPanel.this, message, titre,
|
||||||
JOptionPane.INFORMATION_MESSAGE);
|
JOptionPane.INFORMATION_MESSAGE);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
String message = String.format(BUNDLE.getString("CheckPanel.confirmDialogBad.text"),
|
String message = String.format(BUNDLE.getString("CheckPanel.confirmDialogBad.text"),
|
||||||
choosenFile.getName());
|
CheckPanel.this.choosenFile.getName());
|
||||||
JOptionPane.showMessageDialog(CheckPanel.this, message, titre,
|
JOptionPane.showMessageDialog(CheckPanel.this, message, titre,
|
||||||
JOptionPane.INFORMATION_MESSAGE);
|
JOptionPane.INFORMATION_MESSAGE);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user