OSDN Git Service

バージョン表記更新
[coroid/inqubus.git] / frontend / src / saccubus / MainFrame_AboutBox.java
index c2f60d5..57c8941 100644 (file)
@@ -13,8 +13,8 @@ import java.io.BufferedReader;
 import java.io.IOException;
 import java.io.InputStreamReader;
 import java.net.URI;
-import java.util.logging.Level;
-import java.util.logging.Logger;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 import javax.swing.BorderFactory;
 import javax.swing.GroupLayout;
 import javax.swing.GroupLayout.Alignment;
@@ -51,9 +51,9 @@ import javax.swing.SwingUtilities;
  */
 public class MainFrame_AboutBox extends JDialog implements ActionListener {
 
-    private static final String VERSION = "いんきゅばす 2.0.0";
+    public static final String VERSION = "いんきゅばす 2.1.0";
     private static final long serialVersionUID = -4256413309312729840L;
-    private static final Logger logger = Logger.getLogger(MainFrame_AboutBox.class.getName());
+    private static final Logger logger = LoggerFactory.getLogger(MainFrame_AboutBox.class);
     private static final String LINE_FEED = System.getProperty("line.separator");
     private final JButton btnOk = new JButton();
 
@@ -63,7 +63,7 @@ public class MainFrame_AboutBox extends JDialog implements ActionListener {
             setDefaultCloseOperation(DISPOSE_ON_CLOSE);
             jbInit();
         } catch (Exception exception) {
-            logger.log(Level.SEVERE, null, exception);
+            logger.error(null, exception);
         }
     }
 
@@ -99,7 +99,7 @@ public class MainFrame_AboutBox extends JDialog implements ActionListener {
                     try {
                         Desktop.getDesktop().browse(new URI("http://sourceforge.jp/projects/coroid/wiki/InqubusV2"));
                     } catch (IOException | URISyntaxException ex) {
-                        logger.log(Level.SEVERE, null, ex);
+                        logger.error(null, ex);
                     }
                 }
             }
@@ -114,7 +114,7 @@ public class MainFrame_AboutBox extends JDialog implements ActionListener {
                     try {
                         Desktop.getDesktop().browse(new URI("http://saccubus.sourceforge.jp/"));
                     } catch (IOException | URISyntaxException ex) {
-                        logger.log(Level.SEVERE, null, ex);
+                        logger.error(null, ex);
                     }
                 }
             }
@@ -195,7 +195,7 @@ public class MainFrame_AboutBox extends JDialog implements ActionListener {
                 area.append(LINE_FEED);
             }
         } catch (IOException ex) {
-            logger.log(Level.SEVERE, null, ex);
+            logger.error(null, ex);
         }
 
         area.setEditable(false);
@@ -212,7 +212,7 @@ public class MainFrame_AboutBox extends JDialog implements ActionListener {
                 licenseField.append(LINE_FEED);
             }
         } catch (IOException ex) {
-            logger.log(Level.SEVERE, null, ex);
+            logger.error(null, ex);
         }
 
         licenseField.setCaretPosition(0);