OSDN Git Service

数値入力欄のフィールドクラスを変更
[coroid/inqubus.git] / frontend / src / yukihane / inqubus / gui / ConfigDialog.java
index 5a765bb..6bd385b 100644 (file)
@@ -66,8 +66,6 @@ public class ConfigDialog extends JDialog {
         cbProxyUse = new JCheckBox();
         final JLabel lblProxyHost = new JLabel();
         final JLabel lblProxyPort = new JLabel();
-        fldProxyHost = new JTextField();
-        fldProxyPort = new JTextField();
         final JPanel pnlFile = new JPanel();
         final JPanel pnlFileOutput = new JPanel();
         final JLabel lblOutputDir = new JLabel();
@@ -80,17 +78,11 @@ public class ConfigDialog extends JDialog {
         final JPanel pnlComment = new JPanel();
         final JPanel pnlCommentStandard = new JPanel();
         final JLabel lblCommentSize = new JLabel();
-        cbCommentSizeAuto = new JCheckBox();
         final JLabel lblCommentSizeManual = new JLabel();
-        fldCommentSizeManual = new JTextField();
         final JLabel lblCommentMinSize = new JLabel();
-        cbCommentMinSizeAuto = new JCheckBox();
-        fldCommentMinSizeManual = new JTextField();
         final JLabel lblCommentMinSizeManual = new JLabel();
         final JLabel lblCommentDisplayMax = new JLabel();
-        cbCommentDisplaySizeDefault = new JCheckBox();
         final JLabel lblCommentDisplayMaxManual = new JLabel();
-        fldCommentDisplaySizeManual = new JTextField();
         final JPanel pnlCommentAdvanced = new JPanel();
         final JLabel lblFontPath = new JLabel();
         cbFontSizeArrangeDisable = new JCheckBox();
@@ -341,20 +333,14 @@ public class ConfigDialog extends JDialog {
 
         lblCommentSize.setText("再生時間に応じたコメントの取得数");
 
-        cbCommentSizeAuto.setText("自動調整");
-
         lblCommentSizeManual.setText("手動取得");
 
         lblCommentMinSize.setText("1分当たりのコメント取得数");
 
-        cbCommentMinSizeAuto.setText("自動調整");
-
         lblCommentMinSizeManual.setText("手動取得");
 
         lblCommentDisplayMax.setText("1画面に表示する最大コメント数");
 
-        cbCommentDisplaySizeDefault.setText("標準(30)");
-
         lblCommentDisplayMaxManual.setText("手動設定");
 
         GroupLayout gl_pnlCommentStandard = new GroupLayout(pnlCommentStandard);
@@ -777,8 +763,8 @@ public class ConfigDialog extends JDialog {
     private final JTextField fldPassword;
     // ネットワーク - プロキシ
     private final JCheckBox cbProxyUse;
-    private final JTextField fldProxyHost;
-    private final JTextField fldProxyPort;
+    private final JTextField fldProxyHost = new JTextField();
+    private final NumberFormattedTextField fldProxyPort = new NumberFormattedTextField();
     // ファイル
     // ファイル - 動画
     private final DownloadLocationPanel pnlFileVideo = new DownloadLocationPanel();
@@ -796,12 +782,12 @@ public class ConfigDialog extends JDialog {
     private final JTextField fldReplaceTo = new JTextField();
     // コメント
     // コメント
-    private final JCheckBox cbCommentSizeAuto;
-    private final JTextField fldCommentSizeManual;
-    private final JCheckBox cbCommentMinSizeAuto;
-    private final JTextField fldCommentMinSizeManual;
-    private final JCheckBox cbCommentDisplaySizeDefault;
-    private final JTextField fldCommentDisplaySizeManual;
+    private final JCheckBox cbCommentSizeAuto = new JCheckBox("自動調整");
+    private final NumberFormattedTextField fldCommentSizeManual = new NumberFormattedTextField();
+    private final JCheckBox cbCommentMinSizeAuto = new JCheckBox("自動調整");
+    private final NumberFormattedTextField fldCommentMinSizeManual = new NumberFormattedTextField();
+    private final JCheckBox cbCommentDisplaySizeDefault = new JCheckBox("標準(30)");
+    private final NumberFormattedTextField fldCommentDisplaySizeManual = new NumberFormattedTextField();
     // コメント - 高度な設定
     private final JTextField fldFontPath;
     private final JTextField fldFontIndex;