OSDN Git Service

FQCN削除. フィールド削減
[coroid/inqubus.git] / frontend / src / yukihane / inqubus / gui / ConfigDialog.java
index 19c4c17..178c1cb 100644 (file)
@@ -1,9 +1,4 @@
 /*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
-
-/*
  * Properties.java
  *
  * Created on 2011/08/20, 16:33:03
@@ -12,20 +7,35 @@ package yukihane.inqubus.gui;
 
 import java.util.Arrays;
 import java.util.List;
+import javax.swing.BorderFactory;
+import javax.swing.ButtonGroup;
+import javax.swing.DefaultComboBoxModel;
 import javax.swing.DefaultListModel;
 import javax.swing.GroupLayout;
 import javax.swing.GroupLayout.Alignment;
 import javax.swing.JButton;
+import javax.swing.JCheckBox;
+import javax.swing.JComboBox;
+import javax.swing.JDialog;
 import javax.swing.JFrame;
+import javax.swing.JLabel;
+import javax.swing.JList;
 import javax.swing.JPanel;
+import javax.swing.JRadioButton;
+import javax.swing.JScrollPane;
+import javax.swing.JTabbedPane;
+import javax.swing.JTextField;
 import javax.swing.LayoutStyle.ComponentPlacement;
+import javax.swing.UIManager;
+import javax.swing.UnsupportedLookAndFeelException;
+import javax.swing.WindowConstants;
 import yukihane.inqubus.Config;
 
 /**
  *
  * @author yuki
  */
-public class ConfigDialog extends javax.swing.JDialog {
+public class ConfigDialog extends JDialog {
     private static final long serialVersionUID = 1L;
 
     /** Creates new form Properties */
@@ -48,136 +58,136 @@ public class ConfigDialog extends javax.swing.JDialog {
     // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
     private void initComponents() {
 
-        buttonGroup1 = new javax.swing.ButtonGroup();
-        tabbedPane = new javax.swing.JTabbedPane();
-        pnlNetwork = new javax.swing.JPanel();
-        pnlAccount = new javax.swing.JPanel();
-        lblMail = new javax.swing.JLabel();
-        fldMail = new javax.swing.JTextField();
-        lblPassword = new javax.swing.JLabel();
-        fldPassword = new javax.swing.JTextField();
-        pnlProxy = new javax.swing.JPanel();
-        cbProxyUse = new javax.swing.JCheckBox();
-        lblProxyHost = new javax.swing.JLabel();
-        lblProxyPort = new javax.swing.JLabel();
-        fldProxyHost = new javax.swing.JTextField();
-        fldProxyPort = new javax.swing.JTextField();
-        pnlFile = new javax.swing.JPanel();
-        pnlFileVideo = new javax.swing.JPanel();
-        lblVideoDir = new javax.swing.JLabel();
-        lblVideoFileNamepattern = new javax.swing.JLabel();
-        fldVideoDir = new javax.swing.JTextField();
-        fldVideoFileNamePattern = new javax.swing.JTextField();
-        btnVideoDir = new javax.swing.JButton();
-        cbVideoLocal = new javax.swing.JCheckBox();
-        pnlFileComment = new javax.swing.JPanel();
-        lblCommentDir = new javax.swing.JLabel();
-        lblCommentFileNamePattern = new javax.swing.JLabel();
-        fldCommentDir = new javax.swing.JTextField();
-        fldCommentFileNamePattern = new javax.swing.JTextField();
-        btnCommentDir = new javax.swing.JButton();
-        cbCommentLocal = new javax.swing.JCheckBox();
-        pnlFileOutput = new javax.swing.JPanel();
-        lblOutputDir = new javax.swing.JLabel();
-        lblOutputFileNamePattern = new javax.swing.JLabel();
-        fldOutputDir = new javax.swing.JTextField();
-        fldOutputFileNamePattern = new javax.swing.JTextField();
-        btnOutputDir = new javax.swing.JButton();
-        cbOutputEnable = new javax.swing.JCheckBox();
-        cbOutputCommentOverlay = new javax.swing.JCheckBox();
-        cbOutputDisplayProgress = new javax.swing.JCheckBox();
-        pnlComment = new javax.swing.JPanel();
-        pnlCommentStandard = new javax.swing.JPanel();
-        lblCommentSize = new javax.swing.JLabel();
-        cbCommentSizeAuto = new javax.swing.JCheckBox();
-        lblCommentSizeManual = new javax.swing.JLabel();
-        fldCommentSizeManual = new javax.swing.JTextField();
-        lblCommentMinSize = new javax.swing.JLabel();
-        cbCommentMinSizeAuto = new javax.swing.JCheckBox();
-        fldCommentMinSizeManual = new javax.swing.JTextField();
-        lblCommentMinSizeManual = new javax.swing.JLabel();
-        lblCommentDisplayMax = new javax.swing.JLabel();
-        cbCommentDisplaySizeDefault = new javax.swing.JCheckBox();
-        lblCommentDisplayMaxManual = new javax.swing.JLabel();
-        fldCommentDisplaySizeManual = new javax.swing.JTextField();
-        pnlCommentAdvanced = new javax.swing.JPanel();
-        lblFontPath = new javax.swing.JLabel();
-        cbFontSizeArrangeDisable = new javax.swing.JCheckBox();
-        cbCommentOpaque = new javax.swing.JCheckBox();
-        fldFontPath = new javax.swing.JTextField();
-        btnFontPath = new javax.swing.JButton();
-        lblFontIndex = new javax.swing.JLabel();
-        lblFontShadow = new javax.swing.JLabel();
-        fldFontIndex = new javax.swing.JTextField();
-        fldFontShadow = new javax.swing.JTextField();
-        pnlFfmpeg = new javax.swing.JPanel();
-        jPanel10 = new javax.swing.JPanel();
-        lblFfmpegPath = new javax.swing.JLabel();
-        lblFfmpegDllPath = new javax.swing.JLabel();
-        fldFfmpegPath = new javax.swing.JTextField();
-        fldFfmpegDllPath = new javax.swing.JTextField();
-        btnFfmpegPath = new javax.swing.JButton();
-        btnFfmpegDllPath = new javax.swing.JButton();
-        pnlFfmpegParam = new javax.swing.JPanel();
-        rbFfmpegOptionFile = new javax.swing.JRadioButton();
-        rbFfmpegOptionDirectInput = new javax.swing.JRadioButton();
-        cmbFfmpegOptionFile = new javax.swing.JComboBox();
-        pnlFfmpegParamOption = new javax.swing.JPanel();
-        lblFfmpegOptionExtension = new javax.swing.JLabel();
-        lblFfmpegOptionMain = new javax.swing.JLabel();
-        lblFfmpegOptionIn = new javax.swing.JLabel();
-        lblFfmpegOptionOut = new javax.swing.JLabel();
-        lblFfmpegOptionAvfilter = new javax.swing.JLabel();
-        cbFfmpegOptionResize = new javax.swing.JCheckBox();
-        lblFfmpegOptionResizeWidth = new javax.swing.JLabel();
-        fldFfmpegOptionResizeWidth = new javax.swing.JTextField();
-        lblFfmpegOptionResizeHeight = new javax.swing.JLabel();
-        fldFfmpegOptionResizeHeight = new javax.swing.JTextField();
-        cbFfmpegOptionKeepAspect = new javax.swing.JCheckBox();
-        fldFfmpegOptionExtension = new javax.swing.JTextField();
-        fldFfmpegOptionMain = new javax.swing.JTextField();
-        fldFfmpegOptionIn = new javax.swing.JTextField();
-        fldFfmpegOptionOut = new javax.swing.JTextField();
-        fldFfmpegOptionAv = new javax.swing.JTextField();
-        pnlNgSetting = new javax.swing.JPanel();
-        pnlNgWord = new javax.swing.JPanel();
-        scrNgWord = new javax.swing.JScrollPane();
-        lstNgWord = new javax.swing.JList<>();
-        fldNgWord = new javax.swing.JTextField();
-        btnNgWordAdd = new javax.swing.JButton();
-        btnNgWordDel = new javax.swing.JButton();
-        pnlNgId = new javax.swing.JPanel();
-        scrNgId = new javax.swing.JScrollPane();
-        lstNgId = new javax.swing.JList<>();
-        fldNgId = new javax.swing.JTextField();
-        btnNgIdAdd = new javax.swing.JButton();
-        btnNgIdDel = new javax.swing.JButton();
-        pnlSearch = new javax.swing.JPanel();
-        pnlSearchVideo = new javax.swing.JPanel();
-        srcSearchVideo = new javax.swing.JScrollPane();
-        lstSearchVideo = new javax.swing.JList();
-        btnSearchVideoAdd = new javax.swing.JButton();
-        btnSearchVideoDel = new javax.swing.JButton();
-        pnlSearchComment = new javax.swing.JPanel();
-        srcSearchComment = new javax.swing.JScrollPane();
-        lstSearchComment = new javax.swing.JList();
-        btnSearchCommentAdd = new javax.swing.JButton();
-        btnSearchCommentDel = new javax.swing.JButton();
-        pnlSearchCache = new javax.swing.JPanel();
-        lblSearchCache = new javax.swing.JLabel();
-        fldSearchCache = new javax.swing.JTextField();
-
-        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
-
-        pnlNetwork.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));
-
-        pnlAccount.setBorder(javax.swing.BorderFactory.createTitledBorder("アカウント"));
+        final ButtonGroup buttonGroup1 = new ButtonGroup();
+        final JTabbedPane tabbedPane = new JTabbedPane();
+        final JPanel pnlNetwork = new JPanel();
+        final JPanel pnlAccount = new JPanel();
+        lblMail = new JLabel();
+        fldMail = new JTextField();
+        lblPassword = new JLabel();
+        fldPassword = new JTextField();
+        final JPanel pnlProxy = new JPanel();
+        cbProxyUse = new JCheckBox();
+        lblProxyHost = new JLabel();
+        lblProxyPort = new JLabel();
+        fldProxyHost = new JTextField();
+        fldProxyPort = new JTextField();
+        final JPanel pnlFile = new JPanel();
+        final JPanel pnlFileVideo = new JPanel();
+        lblVideoDir = new JLabel();
+        lblVideoFileNamepattern = new JLabel();
+        fldVideoDir = new JTextField();
+        fldVideoFileNamePattern = new JTextField();
+        btnVideoDir = new JButton();
+        cbVideoLocal = new JCheckBox();
+        final JPanel pnlFileComment = new JPanel();
+        lblCommentDir = new JLabel();
+        lblCommentFileNamePattern = new JLabel();
+        fldCommentDir = new JTextField();
+        fldCommentFileNamePattern = new JTextField();
+        btnCommentDir = new JButton();
+        cbCommentLocal = new JCheckBox();
+        final JPanel pnlFileOutput = new JPanel();
+        lblOutputDir = new JLabel();
+        lblOutputFileNamePattern = new JLabel();
+        fldOutputDir = new JTextField();
+        fldOutputFileNamePattern = new JTextField();
+        btnOutputDir = new JButton();
+        cbOutputEnable = new JCheckBox();
+        cbOutputCommentOverlay = new JCheckBox();
+        cbOutputDisplayProgress = new JCheckBox();
+        final JPanel pnlComment = new JPanel();
+        final JPanel pnlCommentStandard = new JPanel();
+        lblCommentSize = new JLabel();
+        cbCommentSizeAuto = new JCheckBox();
+        lblCommentSizeManual = new JLabel();
+        fldCommentSizeManual = new JTextField();
+        lblCommentMinSize = new JLabel();
+        cbCommentMinSizeAuto = new JCheckBox();
+        fldCommentMinSizeManual = new JTextField();
+        lblCommentMinSizeManual = new JLabel();
+        lblCommentDisplayMax = new JLabel();
+        cbCommentDisplaySizeDefault = new JCheckBox();
+        lblCommentDisplayMaxManual = new JLabel();
+        fldCommentDisplaySizeManual = new JTextField();
+        final JPanel pnlCommentAdvanced = new JPanel();
+        lblFontPath = new JLabel();
+        cbFontSizeArrangeDisable = new JCheckBox();
+        cbCommentOpaque = new JCheckBox();
+        fldFontPath = new JTextField();
+        btnFontPath = new JButton();
+        lblFontIndex = new JLabel();
+        lblFontShadow = new JLabel();
+        fldFontIndex = new JTextField();
+        fldFontShadow = new JTextField();
+        final JPanel pnlFfmpeg = new JPanel();
+        final JPanel jPanel10 = new JPanel();
+        lblFfmpegPath = new JLabel();
+        lblFfmpegDllPath = new JLabel();
+        fldFfmpegPath = new JTextField();
+        fldFfmpegDllPath = new JTextField();
+        btnFfmpegPath = new JButton();
+        btnFfmpegDllPath = new JButton();
+        final JPanel pnlFfmpegParam = new JPanel();
+        rbFfmpegOptionFile = new JRadioButton();
+        rbFfmpegOptionDirectInput = new JRadioButton();
+        cmbFfmpegOptionFile = new JComboBox();
+        final JPanel pnlFfmpegParamOption = new JPanel();
+        lblFfmpegOptionExtension = new JLabel();
+        lblFfmpegOptionMain = new JLabel();
+        lblFfmpegOptionIn = new JLabel();
+        lblFfmpegOptionOut = new JLabel();
+        lblFfmpegOptionAvfilter = new JLabel();
+        cbFfmpegOptionResize = new JCheckBox();
+        lblFfmpegOptionResizeWidth = new JLabel();
+        fldFfmpegOptionResizeWidth = new JTextField();
+        lblFfmpegOptionResizeHeight = new JLabel();
+        fldFfmpegOptionResizeHeight = new JTextField();
+        cbFfmpegOptionKeepAspect = new JCheckBox();
+        fldFfmpegOptionExtension = new JTextField();
+        fldFfmpegOptionMain = new JTextField();
+        fldFfmpegOptionIn = new JTextField();
+        fldFfmpegOptionOut = new JTextField();
+        fldFfmpegOptionAv = new JTextField();
+        final JPanel pnlNgSetting = new JPanel();
+        final JPanel pnlNgWord = new JPanel();
+        scrNgWord = new JScrollPane();
+        lstNgWord = new JList<>();
+        fldNgWord = new JTextField();
+        btnNgWordAdd = new JButton();
+        btnNgWordDel = new JButton();
+        final JPanel pnlNgId = new JPanel();
+        scrNgId = new JScrollPane();
+        lstNgId = new JList<>();
+        fldNgId = new JTextField();
+        btnNgIdAdd = new JButton();
+        btnNgIdDel = new JButton();
+        final JPanel pnlSearch = new JPanel();
+        final JPanel pnlSearchVideo = new JPanel();
+        srcSearchVideo = new JScrollPane();
+        lstSearchVideo = new JList<>();
+        btnSearchVideoAdd = new JButton();
+        btnSearchVideoDel = new JButton();
+        final JPanel pnlSearchComment = new JPanel();
+        srcSearchComment = new JScrollPane();
+        lstSearchComment = new JList<>();
+        btnSearchCommentAdd = new JButton();
+        btnSearchCommentDel = new JButton();
+        final JPanel pnlSearchCache = new JPanel();
+        lblSearchCache = new JLabel();
+        fldSearchCache = new JTextField();
+
+        setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
+
+        pnlNetwork.setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1));
+
+        pnlAccount.setBorder(BorderFactory.createTitledBorder("アカウント"));
 
         lblMail.setText("ID(メールアドレス)");
 
         lblPassword.setText("パスワード");
 
-        javax.swing.GroupLayout gl_pnlAccount = new javax.swing.GroupLayout(pnlAccount);
+        GroupLayout gl_pnlAccount = new GroupLayout(pnlAccount);
         pnlAccount.setLayout(gl_pnlAccount);
         gl_pnlAccount.setHorizontalGroup(
             gl_pnlAccount.createParallelGroup(GroupLayout.Alignment.LEADING)
@@ -206,7 +216,7 @@ public class ConfigDialog extends javax.swing.JDialog {
                 .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
         );
 
-        pnlProxy.setBorder(javax.swing.BorderFactory.createTitledBorder("プロキシ"));
+        pnlProxy.setBorder(BorderFactory.createTitledBorder("プロキシ"));
 
         cbProxyUse.setText("プロキシを使用する");
 
@@ -214,7 +224,7 @@ public class ConfigDialog extends javax.swing.JDialog {
 
         lblProxyPort.setText("ポート番号");
 
-        javax.swing.GroupLayout gl_pnlProxy = new javax.swing.GroupLayout(pnlProxy);
+        GroupLayout gl_pnlProxy = new GroupLayout(pnlProxy);
         pnlProxy.setLayout(gl_pnlProxy);
         gl_pnlProxy.setHorizontalGroup(
             gl_pnlProxy.createParallelGroup(GroupLayout.Alignment.LEADING)
@@ -248,7 +258,7 @@ public class ConfigDialog extends javax.swing.JDialog {
                 .addContainerGap(39, Short.MAX_VALUE))
         );
 
-        javax.swing.GroupLayout gl_pnlNetwork = new javax.swing.GroupLayout(pnlNetwork);
+        GroupLayout gl_pnlNetwork = new GroupLayout(pnlNetwork);
         pnlNetwork.setLayout(gl_pnlNetwork);
         gl_pnlNetwork.setHorizontalGroup(
             gl_pnlNetwork.createParallelGroup(GroupLayout.Alignment.LEADING)
@@ -271,7 +281,7 @@ public class ConfigDialog extends javax.swing.JDialog {
 
         tabbedPane.addTab("ネットワーク", pnlNetwork);
 
-        pnlFileVideo.setBorder(javax.swing.BorderFactory.createTitledBorder("動画"));
+        pnlFileVideo.setBorder(BorderFactory.createTitledBorder("動画"));
 
         lblVideoDir.setText("保存フォルダ");
 
@@ -281,7 +291,7 @@ public class ConfigDialog extends javax.swing.JDialog {
 
         cbVideoLocal.setText("local");
 
-        javax.swing.GroupLayout gl_pnlFileVideo = new javax.swing.GroupLayout(pnlFileVideo);
+        GroupLayout gl_pnlFileVideo = new GroupLayout(pnlFileVideo);
         pnlFileVideo.setLayout(gl_pnlFileVideo);
         gl_pnlFileVideo.setHorizontalGroup(
             gl_pnlFileVideo.createParallelGroup(GroupLayout.Alignment.LEADING)
@@ -317,7 +327,7 @@ public class ConfigDialog extends javax.swing.JDialog {
                 .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
         );
 
-        pnlFileComment.setBorder(javax.swing.BorderFactory.createTitledBorder("コメント"));
+        pnlFileComment.setBorder(BorderFactory.createTitledBorder("コメント"));
 
         lblCommentDir.setText("保存フォルダ");
 
@@ -327,7 +337,7 @@ public class ConfigDialog extends javax.swing.JDialog {
 
         cbCommentLocal.setText("local");
 
-        javax.swing.GroupLayout gl_pnlFileComment = new javax.swing.GroupLayout(pnlFileComment);
+        GroupLayout gl_pnlFileComment = new GroupLayout(pnlFileComment);
         pnlFileComment.setLayout(gl_pnlFileComment);
         gl_pnlFileComment.setHorizontalGroup(
             gl_pnlFileComment.createParallelGroup(GroupLayout.Alignment.LEADING)
@@ -363,7 +373,7 @@ public class ConfigDialog extends javax.swing.JDialog {
                 .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
         );
 
-        pnlFileOutput.setBorder(javax.swing.BorderFactory.createTitledBorder("変換動画"));
+        pnlFileOutput.setBorder(BorderFactory.createTitledBorder("変換動画"));
 
         lblOutputDir.setText("保存フォルダ");
 
@@ -377,7 +387,7 @@ public class ConfigDialog extends javax.swing.JDialog {
 
         cbOutputDisplayProgress.setText("変換中動画表示");
 
-        javax.swing.GroupLayout gl_pnlFileOutput = new javax.swing.GroupLayout(pnlFileOutput);
+        GroupLayout gl_pnlFileOutput = new GroupLayout(pnlFileOutput);
         pnlFileOutput.setLayout(gl_pnlFileOutput);
         gl_pnlFileOutput.setHorizontalGroup(
             gl_pnlFileOutput.createParallelGroup(GroupLayout.Alignment.LEADING)
@@ -421,7 +431,7 @@ public class ConfigDialog extends javax.swing.JDialog {
                 .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
         );
 
-        javax.swing.GroupLayout gl_pnlFile = new javax.swing.GroupLayout(pnlFile);
+        GroupLayout gl_pnlFile = new GroupLayout(pnlFile);
         pnlFile.setLayout(gl_pnlFile);
         gl_pnlFile.setHorizontalGroup(
             gl_pnlFile.createParallelGroup(GroupLayout.Alignment.LEADING)
@@ -447,7 +457,7 @@ public class ConfigDialog extends javax.swing.JDialog {
 
         tabbedPane.addTab("ファイル", pnlFile);
 
-        pnlCommentStandard.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
+        pnlCommentStandard.setBorder(BorderFactory.createTitledBorder(""));
 
         lblCommentSize.setText("再生時間に応じたコメントの取得数");
 
@@ -467,7 +477,7 @@ public class ConfigDialog extends javax.swing.JDialog {
 
         lblCommentDisplayMaxManual.setText("手動設定");
 
-        javax.swing.GroupLayout gl_pnlCommentStandard = new javax.swing.GroupLayout(pnlCommentStandard);
+        GroupLayout gl_pnlCommentStandard = new GroupLayout(pnlCommentStandard);
         pnlCommentStandard.setLayout(gl_pnlCommentStandard);
         gl_pnlCommentStandard.setAutoCreateContainerGaps(true);
         gl_pnlCommentStandard.setAutoCreateGaps(true);
@@ -509,7 +519,7 @@ public class ConfigDialog extends javax.swing.JDialog {
                     .addComponent(fldCommentDisplaySizeManual))
         );
 
-        pnlCommentAdvanced.setBorder(javax.swing.BorderFactory.createTitledBorder("高度な設定"));
+        pnlCommentAdvanced.setBorder(BorderFactory.createTitledBorder("高度な設定"));
 
         lblFontPath.setText("フォントパス");
 
@@ -523,7 +533,7 @@ public class ConfigDialog extends javax.swing.JDialog {
 
         lblFontShadow.setText("影の種類");
 
-        javax.swing.GroupLayout gl_pnlCommentAdvanced = new javax.swing.GroupLayout(pnlCommentAdvanced);
+        GroupLayout gl_pnlCommentAdvanced = new GroupLayout(pnlCommentAdvanced);
         pnlCommentAdvanced.setLayout(gl_pnlCommentAdvanced);
         gl_pnlCommentAdvanced.setHorizontalGroup(
             gl_pnlCommentAdvanced.createParallelGroup(GroupLayout.Alignment.LEADING)
@@ -569,7 +579,7 @@ public class ConfigDialog extends javax.swing.JDialog {
                 .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
         );
 
-        javax.swing.GroupLayout gl_pnlComment = new javax.swing.GroupLayout(pnlComment);
+        GroupLayout gl_pnlComment = new GroupLayout(pnlComment);
         pnlComment.setLayout(gl_pnlComment);
         gl_pnlComment.setHorizontalGroup(
             gl_pnlComment.createParallelGroup(GroupLayout.Alignment.LEADING)
@@ -592,7 +602,7 @@ public class ConfigDialog extends javax.swing.JDialog {
 
         tabbedPane.addTab("コメント", pnlComment);
 
-        jPanel10.setBorder(javax.swing.BorderFactory.createTitledBorder("ファイルパス"));
+        jPanel10.setBorder(BorderFactory.createTitledBorder("ファイルパス"));
 
         lblFfmpegPath.setText("ffmpeg");
 
@@ -602,7 +612,7 @@ public class ConfigDialog extends javax.swing.JDialog {
 
         btnFfmpegDllPath.setText("...");
 
-        javax.swing.GroupLayout gl_jPanel10 = new javax.swing.GroupLayout(jPanel10);
+        GroupLayout gl_jPanel10 = new GroupLayout(jPanel10);
         jPanel10.setLayout(gl_jPanel10);
         gl_jPanel10.setHorizontalGroup(
             gl_jPanel10.createParallelGroup(GroupLayout.Alignment.LEADING)
@@ -636,7 +646,7 @@ public class ConfigDialog extends javax.swing.JDialog {
                 .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
         );
 
-        pnlFfmpegParam.setBorder(javax.swing.BorderFactory.createTitledBorder("ffmpegパラメータ"));
+        pnlFfmpegParam.setBorder(BorderFactory.createTitledBorder("ffmpegパラメータ"));
 
         buttonGroup1.add(rbFfmpegOptionFile);
         rbFfmpegOptionFile.setText("オプションファイル");
@@ -644,9 +654,9 @@ public class ConfigDialog extends javax.swing.JDialog {
         buttonGroup1.add(rbFfmpegOptionDirectInput);
         rbFfmpegOptionDirectInput.setText("直接入力");
 
-        cmbFfmpegOptionFile.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
+        cmbFfmpegOptionFile.setModel(new DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
 
-        pnlFfmpegParamOption.setBorder(javax.swing.BorderFactory.createEtchedBorder());
+        pnlFfmpegParamOption.setBorder(BorderFactory.createEtchedBorder());
 
         lblFfmpegOptionExtension.setText("出力動画の拡張子");
 
@@ -666,7 +676,7 @@ public class ConfigDialog extends javax.swing.JDialog {
 
         cbFfmpegOptionKeepAspect.setText("アスペクト比を維持");
 
-        javax.swing.GroupLayout gl_pnlFfmpegParamOption = new javax.swing.GroupLayout(pnlFfmpegParamOption);
+        GroupLayout gl_pnlFfmpegParamOption = new GroupLayout(pnlFfmpegParamOption);
         pnlFfmpegParamOption.setLayout(gl_pnlFfmpegParamOption);
         gl_pnlFfmpegParamOption.setHorizontalGroup(
             gl_pnlFfmpegParamOption.createParallelGroup(GroupLayout.Alignment.LEADING)
@@ -767,7 +777,7 @@ public class ConfigDialog extends javax.swing.JDialog {
                 .addContainerGap())
         );
 
-        javax.swing.GroupLayout gl_pnlFfmpeg = new javax.swing.GroupLayout(pnlFfmpeg);
+        GroupLayout gl_pnlFfmpeg = new GroupLayout(pnlFfmpeg);
         pnlFfmpeg.setLayout(gl_pnlFfmpeg);
         gl_pnlFfmpeg.setHorizontalGroup(
             gl_pnlFfmpeg.createParallelGroup(GroupLayout.Alignment.LEADING)
@@ -790,7 +800,7 @@ public class ConfigDialog extends javax.swing.JDialog {
 
         tabbedPane.addTab("ffmpeg", pnlFfmpeg);
 
-        pnlNgWord.setBorder(javax.swing.BorderFactory.createTitledBorder("NGワード"));
+        pnlNgWord.setBorder(BorderFactory.createTitledBorder("NGワード"));
 
         lstNgWord.setModel(mdlNgWord);
         scrNgWord.setViewportView(lstNgWord);
@@ -799,7 +809,7 @@ public class ConfigDialog extends javax.swing.JDialog {
 
         btnNgWordDel.setText("削除");
 
-        javax.swing.GroupLayout gl_pnlNgWord = new javax.swing.GroupLayout(pnlNgWord);
+        GroupLayout gl_pnlNgWord = new GroupLayout(pnlNgWord);
         pnlNgWord.setLayout(gl_pnlNgWord);
         gl_pnlNgWord.setHorizontalGroup(
             gl_pnlNgWord.createParallelGroup(GroupLayout.Alignment.LEADING)
@@ -827,7 +837,7 @@ public class ConfigDialog extends javax.swing.JDialog {
                 .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
         );
 
-        pnlNgId.setBorder(javax.swing.BorderFactory.createTitledBorder("NGID"));
+        pnlNgId.setBorder(BorderFactory.createTitledBorder("NGID"));
 
         lstNgId.setModel(mdlNgId);
         scrNgId.setViewportView(lstNgId);
@@ -836,7 +846,7 @@ public class ConfigDialog extends javax.swing.JDialog {
 
         btnNgIdDel.setText("削除");
 
-        javax.swing.GroupLayout gl_pnlNgId = new javax.swing.GroupLayout(pnlNgId);
+        GroupLayout gl_pnlNgId = new GroupLayout(pnlNgId);
         pnlNgId.setLayout(gl_pnlNgId);
         gl_pnlNgId.setHorizontalGroup(
             gl_pnlNgId.createParallelGroup(GroupLayout.Alignment.LEADING)
@@ -864,7 +874,7 @@ public class ConfigDialog extends javax.swing.JDialog {
                 .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
         );
 
-        javax.swing.GroupLayout gl_pnlNgSetting = new javax.swing.GroupLayout(pnlNgSetting);
+        GroupLayout gl_pnlNgSetting = new GroupLayout(pnlNgSetting);
         pnlNgSetting.setLayout(gl_pnlNgSetting);
         gl_pnlNgSetting.setHorizontalGroup(
             gl_pnlNgSetting.createParallelGroup(GroupLayout.Alignment.LEADING)
@@ -887,20 +897,16 @@ public class ConfigDialog extends javax.swing.JDialog {
 
         tabbedPane.addTab("NG設定", pnlNgSetting);
 
-        pnlSearchVideo.setBorder(javax.swing.BorderFactory.createTitledBorder("動画検索対象フォルダ"));
+        pnlSearchVideo.setBorder(BorderFactory.createTitledBorder("動画検索対象フォルダ"));
 
-        lstSearchVideo.setModel(new javax.swing.AbstractListModel() {
-            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
-            public int getSize() { return strings.length; }
-            public Object getElementAt(int i) { return strings[i]; }
-        });
+        lstSearchVideo.setModel(mdlSearchVideo);
         srcSearchVideo.setViewportView(lstSearchVideo);
 
         btnSearchVideoAdd.setText("追加...");
 
         btnSearchVideoDel.setText("削除");
 
-        javax.swing.GroupLayout gl_pnlSearchVideo = new javax.swing.GroupLayout(pnlSearchVideo);
+        GroupLayout gl_pnlSearchVideo = new GroupLayout(pnlSearchVideo);
         pnlSearchVideo.setLayout(gl_pnlSearchVideo);
         gl_pnlSearchVideo.setHorizontalGroup(
             gl_pnlSearchVideo.createParallelGroup(GroupLayout.Alignment.LEADING)
@@ -923,20 +929,16 @@ public class ConfigDialog extends javax.swing.JDialog {
                 .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
         );
 
-        pnlSearchComment.setBorder(javax.swing.BorderFactory.createTitledBorder("コメント検索対象フォルダ"));
+        pnlSearchComment.setBorder(BorderFactory.createTitledBorder("コメント検索対象フォルダ"));
 
-        lstSearchComment.setModel(new javax.swing.AbstractListModel() {
-            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
-            public int getSize() { return strings.length; }
-            public Object getElementAt(int i) { return strings[i]; }
-        });
+        lstSearchComment.setModel(mdlSearchComment);
         srcSearchComment.setViewportView(lstSearchComment);
 
         btnSearchCommentAdd.setText("追加...");
 
         btnSearchCommentDel.setText("削除");
 
-        javax.swing.GroupLayout gl_pnlSearchComment = new javax.swing.GroupLayout(pnlSearchComment);
+        GroupLayout gl_pnlSearchComment = new GroupLayout(pnlSearchComment);
         pnlSearchComment.setLayout(gl_pnlSearchComment);
         gl_pnlSearchComment.setHorizontalGroup(
             gl_pnlSearchComment.createParallelGroup(GroupLayout.Alignment.LEADING)
@@ -959,11 +961,11 @@ public class ConfigDialog extends javax.swing.JDialog {
                 .addContainerGap(16, Short.MAX_VALUE))
         );
 
-        pnlSearchCache.setBorder(javax.swing.BorderFactory.createEtchedBorder());
+        pnlSearchCache.setBorder(BorderFactory.createEtchedBorder());
 
         lblSearchCache.setText("キャッシュ更新(秒)");
 
-        javax.swing.GroupLayout gl_pnlSearchCache = new javax.swing.GroupLayout(pnlSearchCache);
+        GroupLayout gl_pnlSearchCache = new GroupLayout(pnlSearchCache);
         pnlSearchCache.setLayout(gl_pnlSearchCache);
         gl_pnlSearchCache.setHorizontalGroup(
             gl_pnlSearchCache.createParallelGroup(GroupLayout.Alignment.LEADING)
@@ -984,7 +986,7 @@ public class ConfigDialog extends javax.swing.JDialog {
                 .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
         );
 
-        javax.swing.GroupLayout gl_pnlSearch = new javax.swing.GroupLayout(pnlSearch);
+        GroupLayout gl_pnlSearch = new GroupLayout(pnlSearch);
         pnlSearch.setLayout(gl_pnlSearch);
         gl_pnlSearch.setHorizontalGroup(
             gl_pnlSearch.createParallelGroup(GroupLayout.Alignment.LEADING)
@@ -1016,7 +1018,7 @@ public class ConfigDialog extends javax.swing.JDialog {
         pnlButton.add(btnOk);
         pnlButton.add(btnCancel);
 
-        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
+        GroupLayout layout = new GroupLayout(getContentPane());
         getContentPane().setLayout(layout);
         layout.setHorizontalGroup(
             layout.createParallelGroup(GroupLayout.Alignment.LEADING)
@@ -1047,9 +1049,9 @@ public class ConfigDialog extends javax.swing.JDialog {
          * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
          */
         try {
-            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
+            for (UIManager.LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {
                 if ("Nimbus".equals(info.getName())) {
-                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
+                    UIManager.setLookAndFeel(info.getClassName());
                     break;
                 }
             }
@@ -1059,7 +1061,7 @@ public class ConfigDialog extends javax.swing.JDialog {
             java.util.logging.Logger.getLogger(ConfigDialog.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
         } catch (IllegalAccessException ex) {
             java.util.logging.Logger.getLogger(ConfigDialog.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
-        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
+        } catch (UnsupportedLookAndFeelException ex) {
             java.util.logging.Logger.getLogger(ConfigDialog.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
         }
         //</editor-fold>
@@ -1074,126 +1076,105 @@ public class ConfigDialog extends javax.swing.JDialog {
         });
     }
     // Variables declaration - do not modify//GEN-BEGIN:variables
-    private javax.swing.ButtonGroup buttonGroup1;
-    private javax.swing.JButton btnVideoDir;
-    private javax.swing.JButton btnNgWordDel;
-    private javax.swing.JButton btnNgIdAdd;
-    private javax.swing.JButton btnNgIdDel;
-    private javax.swing.JButton btnSearchCommentAdd;
-    private javax.swing.JButton btnSearchCommentDel;
-    private javax.swing.JButton btnCommentDir;
-    private javax.swing.JButton btnOutputDir;
-    private javax.swing.JButton btnFfmpegPath;
-    private javax.swing.JButton btnFfmpegDllPath;
-    private javax.swing.JButton btnFontPath;
-    private javax.swing.JButton btnSearchVideoAdd;
-    private javax.swing.JButton btnSearchVideoDel;
-    private javax.swing.JButton btnNgWordAdd;
-    private javax.swing.JCheckBox cbProxyUse;
-    private javax.swing.JCheckBox cbCommentDisplaySizeDefault;
-    private javax.swing.JCheckBox cbOutputDisplayProgress;
-    private javax.swing.JCheckBox cbFontSizeArrangeDisable;
-    private javax.swing.JCheckBox cbCommentOpaque;
-    private javax.swing.JCheckBox cbVideoLocal;
-    private javax.swing.JCheckBox cbCommentLocal;
-    private javax.swing.JCheckBox cbOutputEnable;
-    private javax.swing.JCheckBox cbCommentSizeAuto;
-    private javax.swing.JCheckBox cbCommentMinSizeAuto;
-    private javax.swing.JCheckBox cbOutputCommentOverlay;
-    private javax.swing.JCheckBox cbFfmpegOptionResize;
-    private javax.swing.JCheckBox cbFfmpegOptionKeepAspect;
-    private javax.swing.JComboBox cmbFfmpegOptionFile;
-    private javax.swing.JLabel lblMail;
-    private javax.swing.JLabel lblOutputFileNamePattern;
-    private javax.swing.JLabel lblCommentSize;
-    private javax.swing.JLabel lblCommentSizeManual;
-    private javax.swing.JLabel lblCommentMinSize;
-    private javax.swing.JLabel lblCommentMinSizeManual;
-    private javax.swing.JLabel lblFfmpegPath;
-    private javax.swing.JLabel lblFfmpegDllPath;
-    private javax.swing.JLabel lblFfmpegOptionExtension;
-    private javax.swing.JLabel lblFfmpegOptionMain;
-    private javax.swing.JLabel lblFfmpegOptionIn;
-    private javax.swing.JLabel lblPassword;
-    private javax.swing.JLabel lblFfmpegOptionOut;
-    private javax.swing.JLabel lblFfmpegOptionAvfilter;
-    private javax.swing.JLabel lblFfmpegOptionResizeWidth;
-    private javax.swing.JLabel lblFfmpegOptionResizeHeight;
-    private javax.swing.JLabel lblCommentDisplayMax;
-    private javax.swing.JLabel lblCommentDisplayMaxManual;
-    private javax.swing.JLabel lblFontPath;
-    private javax.swing.JLabel lblFontIndex;
-    private javax.swing.JLabel lblFontShadow;
-    private javax.swing.JLabel lblSearchCache;
-    private javax.swing.JLabel lblProxyHost;
-    private javax.swing.JLabel lblProxyPort;
-    private javax.swing.JLabel lblVideoDir;
-    private javax.swing.JLabel lblVideoFileNamepattern;
-    private javax.swing.JLabel lblCommentDir;
-    private javax.swing.JLabel lblCommentFileNamePattern;
-    private javax.swing.JLabel lblOutputDir;
-    private javax.swing.JList lstSearchVideo;
-    private javax.swing.JList lstSearchComment;
-    private javax.swing.JList<String> lstNgWord;
+    private JButton btnVideoDir;
+    private JButton btnNgWordDel;
+    private JButton btnNgIdAdd;
+    private JButton btnNgIdDel;
+    private JButton btnSearchCommentAdd;
+    private JButton btnSearchCommentDel;
+    private JButton btnCommentDir;
+    private JButton btnOutputDir;
+    private JButton btnFfmpegPath;
+    private JButton btnFfmpegDllPath;
+    private JButton btnFontPath;
+    private JButton btnSearchVideoAdd;
+    private JButton btnSearchVideoDel;
+    private JButton btnNgWordAdd;
+    private JCheckBox cbProxyUse;
+    private JCheckBox cbCommentDisplaySizeDefault;
+    private JCheckBox cbOutputDisplayProgress;
+    private JCheckBox cbFontSizeArrangeDisable;
+    private JCheckBox cbCommentOpaque;
+    private JCheckBox cbVideoLocal;
+    private JCheckBox cbCommentLocal;
+    private JCheckBox cbOutputEnable;
+    private JCheckBox cbCommentSizeAuto;
+    private JCheckBox cbCommentMinSizeAuto;
+    private JCheckBox cbOutputCommentOverlay;
+    private JCheckBox cbFfmpegOptionResize;
+    private JCheckBox cbFfmpegOptionKeepAspect;
+    private JComboBox cmbFfmpegOptionFile;
+    private JLabel lblMail;
+    private JLabel lblOutputFileNamePattern;
+    private JLabel lblCommentSize;
+    private JLabel lblCommentSizeManual;
+    private JLabel lblCommentMinSize;
+    private JLabel lblCommentMinSizeManual;
+    private JLabel lblFfmpegPath;
+    private JLabel lblFfmpegDllPath;
+    private JLabel lblFfmpegOptionExtension;
+    private JLabel lblFfmpegOptionMain;
+    private JLabel lblFfmpegOptionIn;
+    private JLabel lblPassword;
+    private JLabel lblFfmpegOptionOut;
+    private JLabel lblFfmpegOptionAvfilter;
+    private JLabel lblFfmpegOptionResizeWidth;
+    private JLabel lblFfmpegOptionResizeHeight;
+    private JLabel lblCommentDisplayMax;
+    private JLabel lblCommentDisplayMaxManual;
+    private JLabel lblFontPath;
+    private JLabel lblFontIndex;
+    private JLabel lblFontShadow;
+    private JLabel lblSearchCache;
+    private JLabel lblProxyHost;
+    private JLabel lblProxyPort;
+    private JLabel lblVideoDir;
+    private JLabel lblVideoFileNamepattern;
+    private JLabel lblCommentDir;
+    private JLabel lblCommentFileNamePattern;
+    private JLabel lblOutputDir;
+    private JList<String> lstSearchVideo;
+    private final DefaultListModel<String> mdlSearchVideo = new DefaultListModel<>();
+    private JList<String> lstSearchComment;
+    private final DefaultListModel<String> mdlSearchComment = new DefaultListModel<>();
+    private JList<String> lstNgWord;
     private final DefaultListModel<String> mdlNgWord = new DefaultListModel<>();
-    private javax.swing.JList<String> lstNgId;
+    private JList<String> lstNgId;
     private final DefaultListModel<String> mdlNgId = new DefaultListModel<>();
-    private javax.swing.JPanel pnlNetwork;
-    private javax.swing.JPanel jPanel10;
-    private javax.swing.JPanel pnlFfmpegParam;
-    private javax.swing.JPanel pnlFfmpegParamOption;
-    private javax.swing.JPanel pnlNgSetting;
-    private javax.swing.JPanel pnlCommentStandard;
-    private javax.swing.JPanel pnlCommentAdvanced;
-    private javax.swing.JPanel pnlNgWord;
-    private javax.swing.JPanel pnlSearch;
-    private javax.swing.JPanel pnlSearchVideo;
-    private javax.swing.JPanel pnlSearchComment;
-    private javax.swing.JPanel pnlAccount;
-    private javax.swing.JPanel pnlNgId;
-    private javax.swing.JPanel pnlSearchCache;
-    private javax.swing.JPanel pnlProxy;
-    private javax.swing.JPanel pnlFile;
-    private javax.swing.JPanel pnlFileVideo;
-    private javax.swing.JPanel pnlFileComment;
-    private javax.swing.JPanel pnlFileOutput;
-    private javax.swing.JPanel pnlComment;
-    private javax.swing.JPanel pnlFfmpeg;
-    private javax.swing.JRadioButton rbFfmpegOptionFile;
-    private javax.swing.JRadioButton rbFfmpegOptionDirectInput;
-    private javax.swing.JScrollPane srcSearchVideo;
-    private javax.swing.JScrollPane srcSearchComment;
-    private javax.swing.JScrollPane scrNgWord;
-    private javax.swing.JScrollPane scrNgId;
-    private javax.swing.JTabbedPane tabbedPane;
-    private javax.swing.JTextField fldMail;
-    private javax.swing.JTextField fldOutputFileNamePattern;
-    private javax.swing.JTextField fldCommentSizeManual;
-    private javax.swing.JTextField fldCommentMinSizeManual;
-    private javax.swing.JTextField fldFfmpegPath;
-    private javax.swing.JTextField fldFfmpegDllPath;
-    private javax.swing.JTextField fldFfmpegOptionResizeWidth;
-    private javax.swing.JTextField fldFfmpegOptionResizeHeight;
-    private javax.swing.JTextField fldFfmpegOptionExtension;
-    private javax.swing.JTextField fldFfmpegOptionMain;
-    private javax.swing.JTextField fldFfmpegOptionIn;
-    private javax.swing.JTextField fldPassword;
-    private javax.swing.JTextField fldFfmpegOptionOut;
-    private javax.swing.JTextField fldFfmpegOptionAv;
-    private javax.swing.JTextField fldCommentDisplaySizeManual;
-    private javax.swing.JTextField fldFontPath;
-    private javax.swing.JTextField fldFontIndex;
-    private javax.swing.JTextField fldFontShadow;
-    private javax.swing.JTextField fldNgWord;
-    private javax.swing.JTextField fldNgId;
-    private javax.swing.JTextField fldSearchCache;
-    private javax.swing.JTextField fldProxyHost;
-    private javax.swing.JTextField fldProxyPort;
-    private javax.swing.JTextField fldVideoDir;
-    private javax.swing.JTextField fldVideoFileNamePattern;
-    private javax.swing.JTextField fldCommentDir;
-    private javax.swing.JTextField fldCommentFileNamePattern;
-    private javax.swing.JTextField fldOutputDir;
+    private JRadioButton rbFfmpegOptionFile;
+    private JRadioButton rbFfmpegOptionDirectInput;
+    private JScrollPane srcSearchVideo;
+    private JScrollPane srcSearchComment;
+    private JScrollPane scrNgWord;
+    private JScrollPane scrNgId;
+    private JTextField fldMail;
+    private JTextField fldOutputFileNamePattern;
+    private JTextField fldCommentSizeManual;
+    private JTextField fldCommentMinSizeManual;
+    private JTextField fldFfmpegPath;
+    private JTextField fldFfmpegDllPath;
+    private JTextField fldFfmpegOptionResizeWidth;
+    private JTextField fldFfmpegOptionResizeHeight;
+    private JTextField fldFfmpegOptionExtension;
+    private JTextField fldFfmpegOptionMain;
+    private JTextField fldFfmpegOptionIn;
+    private JTextField fldPassword;
+    private JTextField fldFfmpegOptionOut;
+    private JTextField fldFfmpegOptionAv;
+    private JTextField fldCommentDisplaySizeManual;
+    private JTextField fldFontPath;
+    private JTextField fldFontIndex;
+    private JTextField fldFontShadow;
+    private JTextField fldNgWord;
+    private JTextField fldNgId;
+    private JTextField fldSearchCache;
+    private JTextField fldProxyHost;
+    private JTextField fldProxyPort;
+    private JTextField fldVideoDir;
+    private JTextField fldVideoFileNamePattern;
+    private JTextField fldCommentDir;
+    private JTextField fldCommentFileNamePattern;
+    private JTextField fldOutputDir;
     // End of variables declaration//GEN-END:variables
 
     private void loadConfig() {