OSDN Git Service

影の種類の入力欄をコンボボックスに修正
[coroid/inqubus.git] / frontend / src / yukihane / inqubus / gui / ConfigDialog.java
index 4870da1..56bfdae 100644 (file)
@@ -107,7 +107,6 @@ public class ConfigDialog extends JDialog {
         final JLabel lblFontIndex = new JLabel();
         final JLabel lblFontShadow = new JLabel();
         fldFontIndex = new JTextField();
-        fldFontShadow = new JTextField();
         final JPanel pnlFfmpeg = new JPanel();
         final JPanel jPanel10 = new JPanel();
         final JLabel lblFfmpegPath = new JLabel();
@@ -538,7 +537,7 @@ public class ConfigDialog extends JDialog {
                         .addGroup(gl_pnlCommentAdvanced.createParallelGroup(GroupLayout.Alignment.LEADING)
                             .addComponent(fldFontPath, GroupLayout.DEFAULT_SIZE, 275, Short.MAX_VALUE)
                             .addGroup(gl_pnlCommentAdvanced.createParallelGroup(GroupLayout.Alignment.TRAILING, false)
-                                .addComponent(fldFontShadow, GroupLayout.Alignment.LEADING)
+                                .addComponent(cmbFontShadow, GroupLayout.Alignment.LEADING)
                                 .addComponent(fldFontIndex, GroupLayout.Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 48, Short.MAX_VALUE)))
                         .addPreferredGap(ComponentPlacement.RELATED)
                         .addComponent(btnFontPath))
@@ -559,7 +558,7 @@ public class ConfigDialog extends JDialog {
                 .addPreferredGap(ComponentPlacement.RELATED)
                 .addGroup(gl_pnlCommentAdvanced.createParallelGroup(GroupLayout.Alignment.BASELINE)
                     .addComponent(lblFontShadow)
-                    .addComponent(fldFontShadow, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
+                    .addComponent(cmbFontShadow, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                 .addPreferredGap(ComponentPlacement.RELATED)
                 .addComponent(cbFontSizeArrangeDisable)
                 .addPreferredGap(ComponentPlacement.RELATED)
@@ -1100,7 +1099,7 @@ public class ConfigDialog extends JDialog {
     private final JTextField fldFontPath;
     private final JButton btnFontPath;
     private final JTextField fldFontIndex;
-    private final JTextField fldFontShadow;
+    private final JComboBox<String> cmbFontShadow = new JComboBox<>();
     private final JCheckBox cbFontSizeArrangeDisable;
     private final JCheckBox cbCommentOpaque;
     // ffmpeg