4 * Created on 2011/08/20, 16:33:03
6 package yukihane.inqubus.gui;
8 import java.util.Arrays;
10 import javax.swing.BorderFactory;
11 import javax.swing.ButtonGroup;
12 import javax.swing.DefaultComboBoxModel;
13 import javax.swing.DefaultListModel;
14 import javax.swing.GroupLayout;
15 import javax.swing.GroupLayout.Alignment;
16 import javax.swing.JButton;
17 import javax.swing.JCheckBox;
18 import javax.swing.JComboBox;
19 import javax.swing.JDialog;
20 import javax.swing.JFrame;
21 import javax.swing.JLabel;
22 import javax.swing.JList;
23 import javax.swing.JPanel;
24 import javax.swing.JRadioButton;
25 import javax.swing.JScrollPane;
26 import javax.swing.JTabbedPane;
27 import javax.swing.JTextField;
28 import javax.swing.LayoutStyle.ComponentPlacement;
29 import javax.swing.UIManager;
30 import javax.swing.UnsupportedLookAndFeelException;
31 import javax.swing.WindowConstants;
32 import yukihane.inqubus.Config;
38 public class ConfigDialog extends JDialog {
39 private static final long serialVersionUID = 1L;
41 /** Creates new form Properties */
42 public ConfigDialog() {
46 public ConfigDialog(JFrame owner){
49 final ButtonGroup buttonGroup1 = new ButtonGroup();
50 final JTabbedPane tabbedPane = new JTabbedPane();
51 final JPanel pnlNetwork = new JPanel();
52 final JPanel pnlAccount = new JPanel();
53 final JLabel lblMail = new JLabel();
54 fldMail = new JTextField();
55 final JLabel lblPassword = new JLabel();
56 fldPassword = new JTextField();
57 final JPanel pnlProxy = new JPanel();
58 cbProxyUse = new JCheckBox();
59 final JLabel lblProxyHost = new JLabel();
60 final JLabel lblProxyPort = new JLabel();
61 fldProxyHost = new JTextField();
62 fldProxyPort = new JTextField();
63 final JPanel pnlFile = new JPanel();
64 final JPanel pnlFileVideo = new JPanel();
65 final JLabel lblVideoDir = new JLabel();
66 final JLabel lblVideoFileNamepattern = new JLabel();
67 fldVideoDir = new JTextField();
68 fldVideoFileNamePattern = new JTextField();
69 btnVideoDir = new JButton();
70 cbVideoLocal = new JCheckBox();
71 final JPanel pnlFileComment = new JPanel();
72 final JLabel lblCommentDir = new JLabel();
73 final JLabel lblCommentFileNamePattern = new JLabel();
74 fldCommentDir = new JTextField();
75 fldCommentFileNamePattern = new JTextField();
76 btnCommentDir = new JButton();
77 cbCommentLocal = new JCheckBox();
78 final JPanel pnlFileOutput = new JPanel();
79 final JLabel lblOutputDir = new JLabel();
80 final JLabel lblOutputFileNamePattern = new JLabel();
81 fldOutputDir = new JTextField();
82 fldOutputFileNamePattern = new JTextField();
83 btnOutputDir = new JButton();
84 cbOutputEnable = new JCheckBox();
85 cbOutputCommentOverlay = new JCheckBox();
86 cbOutputDisplayProgress = new JCheckBox();
87 final JPanel pnlComment = new JPanel();
88 final JPanel pnlCommentStandard = new JPanel();
89 final JLabel lblCommentSize = new JLabel();
90 cbCommentSizeAuto = new JCheckBox();
91 final JLabel lblCommentSizeManual = new JLabel();
92 fldCommentSizeManual = new JTextField();
93 final JLabel lblCommentMinSize = new JLabel();
94 cbCommentMinSizeAuto = new JCheckBox();
95 fldCommentMinSizeManual = new JTextField();
96 final JLabel lblCommentMinSizeManual = new JLabel();
97 final JLabel lblCommentDisplayMax = new JLabel();
98 cbCommentDisplaySizeDefault = new JCheckBox();
99 final JLabel lblCommentDisplayMaxManual = new JLabel();
100 fldCommentDisplaySizeManual = new JTextField();
101 final JPanel pnlCommentAdvanced = new JPanel();
102 final JLabel lblFontPath = new JLabel();
103 cbFontSizeArrangeDisable = new JCheckBox();
104 cbCommentOpaque = new JCheckBox();
105 fldFontPath = new JTextField();
106 btnFontPath = new JButton();
107 final JLabel lblFontIndex = new JLabel();
108 final JLabel lblFontShadow = new JLabel();
109 fldFontIndex = new JTextField();
110 fldFontShadow = new JTextField();
111 final JPanel pnlFfmpeg = new JPanel();
112 final JPanel jPanel10 = new JPanel();
113 final JLabel lblFfmpegPath = new JLabel();
114 final JLabel lblFfmpegDllPath = new JLabel();
115 fldFfmpegPath = new JTextField();
116 fldFfmpegDllPath = new JTextField();
117 btnFfmpegPath = new JButton();
118 btnFfmpegDllPath = new JButton();
119 final JPanel pnlFfmpegParam = new JPanel();
120 rbFfmpegOptionFile = new JRadioButton();
121 rbFfmpegOptionDirectInput = new JRadioButton();
122 cmbFfmpegOptionFile = new JComboBox();
123 final JPanel pnlFfmpegParamOption = new JPanel();
124 final JLabel lblFfmpegOptionExtension = new JLabel();
125 final JLabel lblFfmpegOptionMain = new JLabel();
126 final JLabel lblFfmpegOptionIn = new JLabel();
127 final JLabel lblFfmpegOptionOut = new JLabel();
128 final JLabel lblFfmpegOptionAvfilter = new JLabel();
129 cbFfmpegOptionResize = new JCheckBox();
130 final JLabel lblFfmpegOptionResizeWidth = new JLabel();
131 fldFfmpegOptionResizeWidth = new JTextField();
132 final JLabel lblFfmpegOptionResizeHeight = new JLabel();
133 fldFfmpegOptionResizeHeight = new JTextField();
134 cbFfmpegOptionKeepAspect = new JCheckBox();
135 fldFfmpegOptionExtension = new JTextField();
136 fldFfmpegOptionMain = new JTextField();
137 fldFfmpegOptionIn = new JTextField();
138 fldFfmpegOptionOut = new JTextField();
139 fldFfmpegOptionAv = new JTextField();
140 final JPanel pnlNgSetting = new JPanel();
141 final JPanel pnlNgWord = new JPanel();
142 final JScrollPane scrNgWord = new JScrollPane();
143 lstNgWord = new JList<>();
144 fldNgWord = new JTextField();
145 btnNgWordAdd = new JButton();
146 btnNgWordDel = new JButton();
147 final JPanel pnlNgId = new JPanel();
148 final JScrollPane scrNgId = new JScrollPane();
149 lstNgId = new JList<>();
150 fldNgId = new JTextField();
151 btnNgIdAdd = new JButton();
152 btnNgIdDel = new JButton();
153 final JPanel pnlSearch = new JPanel();
154 final JPanel pnlSearchVideo = new JPanel();
155 final JScrollPane srcSearchVideo = new JScrollPane();
156 lstSearchVideo = new JList<>();
157 btnSearchVideoAdd = new JButton();
158 btnSearchVideoDel = new JButton();
159 final JPanel pnlSearchComment = new JPanel();
160 final JScrollPane srcSearchComment = new JScrollPane();
161 lstSearchComment = new JList<>();
162 btnSearchCommentAdd = new JButton();
163 btnSearchCommentDel = new JButton();
164 final JPanel pnlSearchCache = new JPanel();
165 final JLabel lblSearchCache = new JLabel();
166 fldSearchCache = new JTextField();
168 setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
170 pnlNetwork.setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1));
172 pnlAccount.setBorder(BorderFactory.createTitledBorder("アカウント"));
174 lblMail.setText("ID(メールアドレス)");
176 lblPassword.setText("パスワード");
178 GroupLayout gl_pnlAccount = new GroupLayout(pnlAccount);
179 pnlAccount.setLayout(gl_pnlAccount);
180 gl_pnlAccount.setHorizontalGroup(
181 gl_pnlAccount.createParallelGroup(GroupLayout.Alignment.LEADING)
182 .addGroup(gl_pnlAccount.createSequentialGroup()
184 .addGroup(gl_pnlAccount.createParallelGroup(GroupLayout.Alignment.LEADING)
185 .addComponent(lblMail)
186 .addComponent(lblPassword))
187 .addPreferredGap(ComponentPlacement.RELATED)
188 .addGroup(gl_pnlAccount.createParallelGroup(GroupLayout.Alignment.LEADING)
189 .addComponent(fldPassword, GroupLayout.DEFAULT_SIZE, 306, Short.MAX_VALUE)
190 .addComponent(fldMail, GroupLayout.DEFAULT_SIZE, 306, Short.MAX_VALUE))
193 gl_pnlAccount.setVerticalGroup(
194 gl_pnlAccount.createParallelGroup(GroupLayout.Alignment.LEADING)
195 .addGroup(gl_pnlAccount.createSequentialGroup()
197 .addGroup(gl_pnlAccount.createParallelGroup(GroupLayout.Alignment.BASELINE)
198 .addComponent(lblMail)
199 .addComponent(fldMail, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
200 .addPreferredGap(ComponentPlacement.RELATED)
201 .addGroup(gl_pnlAccount.createParallelGroup(GroupLayout.Alignment.BASELINE)
202 .addComponent(lblPassword)
203 .addComponent(fldPassword, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
204 .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
207 pnlProxy.setBorder(BorderFactory.createTitledBorder("プロキシ"));
209 cbProxyUse.setText("プロキシを使用する");
211 lblProxyHost.setText("ホスト名");
213 lblProxyPort.setText("ポート番号");
215 GroupLayout gl_pnlProxy = new GroupLayout(pnlProxy);
216 pnlProxy.setLayout(gl_pnlProxy);
217 gl_pnlProxy.setHorizontalGroup(
218 gl_pnlProxy.createParallelGroup(GroupLayout.Alignment.LEADING)
219 .addGroup(gl_pnlProxy.createSequentialGroup()
221 .addGroup(gl_pnlProxy.createParallelGroup(GroupLayout.Alignment.LEADING)
222 .addComponent(cbProxyUse)
223 .addGroup(gl_pnlProxy.createSequentialGroup()
224 .addComponent(lblProxyHost)
226 .addComponent(fldProxyHost, GroupLayout.PREFERRED_SIZE, 168, GroupLayout.PREFERRED_SIZE))
227 .addGroup(gl_pnlProxy.createSequentialGroup()
228 .addComponent(lblProxyPort)
229 .addPreferredGap(ComponentPlacement.RELATED)
230 .addComponent(fldProxyPort, GroupLayout.PREFERRED_SIZE, 76, GroupLayout.PREFERRED_SIZE)))
231 .addContainerGap(181, Short.MAX_VALUE))
233 gl_pnlProxy.setVerticalGroup(
234 gl_pnlProxy.createParallelGroup(GroupLayout.Alignment.LEADING)
235 .addGroup(gl_pnlProxy.createSequentialGroup()
237 .addComponent(cbProxyUse)
238 .addPreferredGap(ComponentPlacement.RELATED)
239 .addGroup(gl_pnlProxy.createParallelGroup(GroupLayout.Alignment.BASELINE)
240 .addComponent(lblProxyHost)
241 .addComponent(fldProxyHost, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
242 .addPreferredGap(ComponentPlacement.RELATED)
243 .addGroup(gl_pnlProxy.createParallelGroup(GroupLayout.Alignment.BASELINE)
244 .addComponent(lblProxyPort)
245 .addComponent(fldProxyPort, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
246 .addContainerGap(39, Short.MAX_VALUE))
249 GroupLayout gl_pnlNetwork = new GroupLayout(pnlNetwork);
250 pnlNetwork.setLayout(gl_pnlNetwork);
251 gl_pnlNetwork.setHorizontalGroup(
252 gl_pnlNetwork.createParallelGroup(GroupLayout.Alignment.LEADING)
253 .addGroup(GroupLayout.Alignment.TRAILING, gl_pnlNetwork.createSequentialGroup()
255 .addGroup(gl_pnlNetwork.createParallelGroup(GroupLayout.Alignment.TRAILING)
256 .addComponent(pnlProxy, GroupLayout.Alignment.LEADING, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
257 .addComponent(pnlAccount, GroupLayout.Alignment.LEADING, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
260 gl_pnlNetwork.setVerticalGroup(
261 gl_pnlNetwork.createParallelGroup(GroupLayout.Alignment.LEADING)
262 .addGroup(gl_pnlNetwork.createSequentialGroup()
264 .addComponent(pnlAccount, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
265 .addPreferredGap(ComponentPlacement.RELATED)
266 .addComponent(pnlProxy, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
267 .addContainerGap(178, Short.MAX_VALUE))
270 tabbedPane.addTab("ネットワーク", pnlNetwork);
272 pnlFileVideo.setBorder(BorderFactory.createTitledBorder("動画"));
274 lblVideoDir.setText("保存フォルダ");
276 lblVideoFileNamepattern.setText("ファイル名パターン");
278 btnVideoDir.setText("...");
280 cbVideoLocal.setText("local");
282 GroupLayout gl_pnlFileVideo = new GroupLayout(pnlFileVideo);
283 pnlFileVideo.setLayout(gl_pnlFileVideo);
284 gl_pnlFileVideo.setHorizontalGroup(
285 gl_pnlFileVideo.createParallelGroup(GroupLayout.Alignment.LEADING)
286 .addGroup(GroupLayout.Alignment.TRAILING, gl_pnlFileVideo.createSequentialGroup()
288 .addGroup(gl_pnlFileVideo.createParallelGroup(GroupLayout.Alignment.LEADING)
289 .addComponent(lblVideoFileNamepattern)
290 .addComponent(lblVideoDir))
291 .addPreferredGap(ComponentPlacement.RELATED)
292 .addGroup(gl_pnlFileVideo.createParallelGroup(GroupLayout.Alignment.LEADING)
293 .addGroup(gl_pnlFileVideo.createSequentialGroup()
294 .addComponent(fldVideoDir, GroupLayout.DEFAULT_SIZE, 262, Short.MAX_VALUE)
295 .addPreferredGap(ComponentPlacement.RELATED)
296 .addComponent(btnVideoDir))
297 .addGroup(GroupLayout.Alignment.TRAILING, gl_pnlFileVideo.createSequentialGroup()
298 .addComponent(fldVideoFileNamePattern, GroupLayout.PREFERRED_SIZE, 165, GroupLayout.PREFERRED_SIZE)
299 .addPreferredGap(ComponentPlacement.RELATED, 94, Short.MAX_VALUE)
300 .addComponent(cbVideoLocal)))
303 gl_pnlFileVideo.setVerticalGroup(
304 gl_pnlFileVideo.createParallelGroup(GroupLayout.Alignment.LEADING)
305 .addGroup(gl_pnlFileVideo.createSequentialGroup()
306 .addGroup(gl_pnlFileVideo.createParallelGroup(GroupLayout.Alignment.BASELINE)
307 .addComponent(lblVideoDir)
308 .addComponent(fldVideoDir, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
309 .addComponent(btnVideoDir))
310 .addPreferredGap(ComponentPlacement.RELATED)
311 .addGroup(gl_pnlFileVideo.createParallelGroup(GroupLayout.Alignment.BASELINE)
312 .addComponent(lblVideoFileNamepattern)
313 .addComponent(fldVideoFileNamePattern, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
314 .addComponent(cbVideoLocal))
315 .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
318 pnlFileComment.setBorder(BorderFactory.createTitledBorder("コメント"));
320 lblCommentDir.setText("保存フォルダ");
322 lblCommentFileNamePattern.setText("ファイル名パターン");
324 btnCommentDir.setText("...");
326 cbCommentLocal.setText("local");
328 GroupLayout gl_pnlFileComment = new GroupLayout(pnlFileComment);
329 pnlFileComment.setLayout(gl_pnlFileComment);
330 gl_pnlFileComment.setHorizontalGroup(
331 gl_pnlFileComment.createParallelGroup(GroupLayout.Alignment.LEADING)
332 .addGroup(gl_pnlFileComment.createSequentialGroup()
334 .addGroup(gl_pnlFileComment.createParallelGroup(GroupLayout.Alignment.LEADING)
335 .addComponent(lblCommentFileNamePattern)
336 .addComponent(lblCommentDir))
337 .addPreferredGap(ComponentPlacement.RELATED)
338 .addGroup(gl_pnlFileComment.createParallelGroup(GroupLayout.Alignment.LEADING)
339 .addGroup(gl_pnlFileComment.createSequentialGroup()
340 .addComponent(fldCommentFileNamePattern, GroupLayout.PREFERRED_SIZE, 166, GroupLayout.PREFERRED_SIZE)
341 .addPreferredGap(ComponentPlacement.RELATED, 93, Short.MAX_VALUE)
342 .addComponent(cbCommentLocal))
343 .addGroup(gl_pnlFileComment.createSequentialGroup()
344 .addComponent(fldCommentDir, GroupLayout.DEFAULT_SIZE, 262, Short.MAX_VALUE)
345 .addPreferredGap(ComponentPlacement.RELATED)
346 .addComponent(btnCommentDir)))
349 gl_pnlFileComment.setVerticalGroup(
350 gl_pnlFileComment.createParallelGroup(GroupLayout.Alignment.LEADING)
351 .addGroup(gl_pnlFileComment.createSequentialGroup()
352 .addGroup(gl_pnlFileComment.createParallelGroup(GroupLayout.Alignment.BASELINE)
353 .addComponent(lblCommentDir)
354 .addComponent(fldCommentDir, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
355 .addComponent(btnCommentDir))
356 .addPreferredGap(ComponentPlacement.RELATED)
357 .addGroup(gl_pnlFileComment.createParallelGroup(GroupLayout.Alignment.BASELINE)
358 .addComponent(lblCommentFileNamePattern)
359 .addComponent(fldCommentFileNamePattern, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
360 .addComponent(cbCommentLocal))
361 .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
364 pnlFileOutput.setBorder(BorderFactory.createTitledBorder("変換動画"));
366 lblOutputDir.setText("保存フォルダ");
368 lblOutputFileNamePattern.setText("ファイル名パターン");
370 btnOutputDir.setText("...");
372 cbOutputEnable.setText("変換");
374 cbOutputCommentOverlay.setText("コメント付与");
376 cbOutputDisplayProgress.setText("変換中動画表示");
378 GroupLayout gl_pnlFileOutput = new GroupLayout(pnlFileOutput);
379 pnlFileOutput.setLayout(gl_pnlFileOutput);
380 gl_pnlFileOutput.setHorizontalGroup(
381 gl_pnlFileOutput.createParallelGroup(GroupLayout.Alignment.LEADING)
382 .addGroup(gl_pnlFileOutput.createSequentialGroup()
384 .addGroup(gl_pnlFileOutput.createParallelGroup(GroupLayout.Alignment.LEADING)
385 .addComponent(lblOutputFileNamePattern)
386 .addComponent(lblOutputDir))
387 .addPreferredGap(ComponentPlacement.RELATED)
388 .addGroup(gl_pnlFileOutput.createParallelGroup(GroupLayout.Alignment.LEADING)
389 .addGroup(gl_pnlFileOutput.createSequentialGroup()
390 .addComponent(fldOutputDir, GroupLayout.DEFAULT_SIZE, 262, Short.MAX_VALUE)
391 .addPreferredGap(ComponentPlacement.RELATED)
392 .addComponent(btnOutputDir)
394 .addGroup(GroupLayout.Alignment.TRAILING, gl_pnlFileOutput.createSequentialGroup()
395 .addComponent(fldOutputFileNamePattern, GroupLayout.PREFERRED_SIZE, 167, GroupLayout.PREFERRED_SIZE)
396 .addPreferredGap(ComponentPlacement.RELATED, 23, Short.MAX_VALUE)
397 .addGroup(gl_pnlFileOutput.createParallelGroup(GroupLayout.Alignment.LEADING)
398 .addComponent(cbOutputDisplayProgress)
399 .addGroup(gl_pnlFileOutput.createSequentialGroup()
400 .addComponent(cbOutputEnable)
401 .addPreferredGap(ComponentPlacement.RELATED)
402 .addComponent(cbOutputCommentOverlay))))))
404 gl_pnlFileOutput.setVerticalGroup(
405 gl_pnlFileOutput.createParallelGroup(GroupLayout.Alignment.LEADING)
406 .addGroup(gl_pnlFileOutput.createSequentialGroup()
407 .addGroup(gl_pnlFileOutput.createParallelGroup(GroupLayout.Alignment.BASELINE)
408 .addComponent(lblOutputDir)
409 .addComponent(fldOutputDir, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
410 .addComponent(btnOutputDir))
411 .addPreferredGap(ComponentPlacement.RELATED)
412 .addGroup(gl_pnlFileOutput.createParallelGroup(GroupLayout.Alignment.BASELINE)
413 .addComponent(lblOutputFileNamePattern)
414 .addComponent(fldOutputFileNamePattern, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
415 .addComponent(cbOutputCommentOverlay)
416 .addComponent(cbOutputEnable))
417 .addPreferredGap(ComponentPlacement.RELATED)
418 .addComponent(cbOutputDisplayProgress)
419 .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
422 GroupLayout gl_pnlFile = new GroupLayout(pnlFile);
423 pnlFile.setLayout(gl_pnlFile);
424 gl_pnlFile.setHorizontalGroup(
425 gl_pnlFile.createParallelGroup(GroupLayout.Alignment.LEADING)
426 .addGroup(GroupLayout.Alignment.TRAILING, gl_pnlFile.createSequentialGroup()
428 .addGroup(gl_pnlFile.createParallelGroup(GroupLayout.Alignment.TRAILING)
429 .addComponent(pnlFileOutput, GroupLayout.Alignment.LEADING, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
430 .addComponent(pnlFileVideo, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
431 .addComponent(pnlFileComment, GroupLayout.Alignment.LEADING, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
434 gl_pnlFile.setVerticalGroup(
435 gl_pnlFile.createParallelGroup(GroupLayout.Alignment.LEADING)
436 .addGroup(gl_pnlFile.createSequentialGroup()
438 .addComponent(pnlFileVideo, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
439 .addPreferredGap(ComponentPlacement.RELATED)
440 .addComponent(pnlFileComment, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
441 .addPreferredGap(ComponentPlacement.RELATED)
442 .addComponent(pnlFileOutput, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
446 tabbedPane.addTab("ファイル", pnlFile);
448 pnlCommentStandard.setBorder(BorderFactory.createTitledBorder(""));
450 lblCommentSize.setText("再生時間に応じたコメントの取得数");
452 cbCommentSizeAuto.setText("自動調整");
454 lblCommentSizeManual.setText("手動取得");
456 lblCommentMinSize.setText("1分当たりのコメント取得数");
458 cbCommentMinSizeAuto.setText("自動調整");
460 lblCommentMinSizeManual.setText("手動取得");
462 lblCommentDisplayMax.setText("1画面に表示する最大コメント数");
464 cbCommentDisplaySizeDefault.setText("標準(30)");
466 lblCommentDisplayMaxManual.setText("手動設定");
468 GroupLayout gl_pnlCommentStandard = new GroupLayout(pnlCommentStandard);
469 pnlCommentStandard.setLayout(gl_pnlCommentStandard);
470 gl_pnlCommentStandard.setAutoCreateContainerGaps(true);
471 gl_pnlCommentStandard.setAutoCreateGaps(true);
472 gl_pnlCommentStandard.setHorizontalGroup(
473 gl_pnlCommentStandard.createSequentialGroup()
474 .addGroup(gl_pnlCommentStandard.createParallelGroup(GroupLayout.Alignment.LEADING)
475 .addComponent(lblCommentSize)
476 .addComponent(lblCommentMinSize)
477 .addComponent(lblCommentDisplayMax))
478 .addGroup(gl_pnlCommentStandard.createParallelGroup(GroupLayout.Alignment.LEADING)
479 .addComponent(cbCommentSizeAuto)
480 .addComponent(cbCommentMinSizeAuto)
481 .addComponent(cbCommentDisplaySizeDefault))
482 .addGroup(gl_pnlCommentStandard.createParallelGroup(GroupLayout.Alignment.LEADING)
483 .addComponent(lblCommentSizeManual)
484 .addComponent(lblCommentMinSizeManual)
485 .addComponent(lblCommentDisplayMaxManual))
486 .addGroup(gl_pnlCommentStandard.createParallelGroup(GroupLayout.Alignment.LEADING)
487 .addComponent(fldCommentSizeManual, 48, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
488 .addComponent(fldCommentMinSizeManual, 48, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
489 .addComponent(fldCommentDisplaySizeManual, 48, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
491 gl_pnlCommentStandard.setVerticalGroup(
492 gl_pnlCommentStandard.createSequentialGroup()
493 .addGroup(gl_pnlCommentStandard.createParallelGroup(GroupLayout.Alignment.BASELINE)
494 .addComponent(lblCommentSize)
495 .addComponent(cbCommentSizeAuto)
496 .addComponent(lblCommentSizeManual)
497 .addComponent(fldCommentSizeManual))
498 .addGroup(gl_pnlCommentStandard.createParallelGroup(GroupLayout.Alignment.BASELINE)
499 .addComponent(lblCommentMinSize)
500 .addComponent(cbCommentMinSizeAuto)
501 .addComponent(lblCommentMinSizeManual)
502 .addComponent(fldCommentMinSizeManual))
503 .addGroup(gl_pnlCommentStandard.createParallelGroup(GroupLayout.Alignment.BASELINE)
504 .addComponent(lblCommentDisplayMax)
505 .addComponent(cbCommentDisplaySizeDefault)
506 .addComponent(lblCommentDisplayMaxManual)
507 .addComponent(fldCommentDisplaySizeManual))
510 pnlCommentAdvanced.setBorder(BorderFactory.createTitledBorder("高度な設定"));
512 lblFontPath.setText("フォントパス");
514 cbFontSizeArrangeDisable.setText("フォントサイズ調整を行わない");
516 cbCommentOpaque.setText("コメント透明化を行わない");
518 btnFontPath.setText("...");
520 lblFontIndex.setText("フォント番号");
522 lblFontShadow.setText("影の種類");
524 GroupLayout gl_pnlCommentAdvanced = new GroupLayout(pnlCommentAdvanced);
525 pnlCommentAdvanced.setLayout(gl_pnlCommentAdvanced);
526 gl_pnlCommentAdvanced.setHorizontalGroup(
527 gl_pnlCommentAdvanced.createParallelGroup(GroupLayout.Alignment.LEADING)
528 .addGroup(gl_pnlCommentAdvanced.createSequentialGroup()
530 .addGroup(gl_pnlCommentAdvanced.createParallelGroup(GroupLayout.Alignment.LEADING)
531 .addComponent(cbCommentOpaque)
532 .addGroup(gl_pnlCommentAdvanced.createSequentialGroup()
533 .addGroup(gl_pnlCommentAdvanced.createParallelGroup(GroupLayout.Alignment.LEADING)
534 .addComponent(lblFontPath)
535 .addComponent(lblFontIndex)
536 .addComponent(lblFontShadow))
538 .addGroup(gl_pnlCommentAdvanced.createParallelGroup(GroupLayout.Alignment.LEADING)
539 .addComponent(fldFontPath, GroupLayout.DEFAULT_SIZE, 275, Short.MAX_VALUE)
540 .addGroup(gl_pnlCommentAdvanced.createParallelGroup(GroupLayout.Alignment.TRAILING, false)
541 .addComponent(fldFontShadow, GroupLayout.Alignment.LEADING)
542 .addComponent(fldFontIndex, GroupLayout.Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 48, Short.MAX_VALUE)))
543 .addPreferredGap(ComponentPlacement.RELATED)
544 .addComponent(btnFontPath))
545 .addComponent(cbFontSizeArrangeDisable))
548 gl_pnlCommentAdvanced.setVerticalGroup(
549 gl_pnlCommentAdvanced.createParallelGroup(GroupLayout.Alignment.LEADING)
550 .addGroup(gl_pnlCommentAdvanced.createSequentialGroup()
551 .addGroup(gl_pnlCommentAdvanced.createParallelGroup(GroupLayout.Alignment.BASELINE)
552 .addComponent(lblFontPath)
553 .addComponent(fldFontPath, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
554 .addComponent(btnFontPath))
555 .addPreferredGap(ComponentPlacement.RELATED)
556 .addGroup(gl_pnlCommentAdvanced.createParallelGroup(GroupLayout.Alignment.BASELINE)
557 .addComponent(lblFontIndex)
558 .addComponent(fldFontIndex, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
559 .addPreferredGap(ComponentPlacement.RELATED)
560 .addGroup(gl_pnlCommentAdvanced.createParallelGroup(GroupLayout.Alignment.BASELINE)
561 .addComponent(lblFontShadow)
562 .addComponent(fldFontShadow, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
563 .addPreferredGap(ComponentPlacement.RELATED)
564 .addComponent(cbFontSizeArrangeDisable)
565 .addPreferredGap(ComponentPlacement.RELATED)
566 .addComponent(cbCommentOpaque)
567 .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
570 GroupLayout gl_pnlComment = new GroupLayout(pnlComment);
571 pnlComment.setLayout(gl_pnlComment);
572 gl_pnlComment.setHorizontalGroup(
573 gl_pnlComment.createParallelGroup(GroupLayout.Alignment.LEADING)
574 .addGroup(GroupLayout.Alignment.TRAILING, gl_pnlComment.createSequentialGroup()
576 .addGroup(gl_pnlComment.createParallelGroup(GroupLayout.Alignment.TRAILING)
577 .addComponent(pnlCommentAdvanced, GroupLayout.Alignment.LEADING, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
578 .addComponent(pnlCommentStandard, GroupLayout.Alignment.LEADING, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
581 gl_pnlComment.setVerticalGroup(
582 gl_pnlComment.createParallelGroup(GroupLayout.Alignment.LEADING)
583 .addGroup(gl_pnlComment.createSequentialGroup()
585 .addComponent(pnlCommentStandard, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
586 .addPreferredGap(ComponentPlacement.RELATED)
587 .addComponent(pnlCommentAdvanced, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
588 .addContainerGap(168, Short.MAX_VALUE))
591 tabbedPane.addTab("コメント", pnlComment);
593 jPanel10.setBorder(BorderFactory.createTitledBorder("ファイルパス"));
595 lblFfmpegPath.setText("ffmpeg");
597 lblFfmpegDllPath.setText("拡張ライブラリ");
599 btnFfmpegPath.setText("...");
601 btnFfmpegDllPath.setText("...");
603 GroupLayout gl_jPanel10 = new GroupLayout(jPanel10);
604 jPanel10.setLayout(gl_jPanel10);
605 gl_jPanel10.setHorizontalGroup(
606 gl_jPanel10.createParallelGroup(GroupLayout.Alignment.LEADING)
607 .addGroup(gl_jPanel10.createSequentialGroup()
609 .addGroup(gl_jPanel10.createParallelGroup(GroupLayout.Alignment.LEADING)
610 .addComponent(lblFfmpegDllPath)
611 .addComponent(lblFfmpegPath))
612 .addPreferredGap(ComponentPlacement.RELATED)
613 .addGroup(gl_jPanel10.createParallelGroup(GroupLayout.Alignment.LEADING)
614 .addComponent(fldFfmpegDllPath, GroupLayout.Alignment.TRAILING, GroupLayout.DEFAULT_SIZE, 280, Short.MAX_VALUE)
615 .addComponent(fldFfmpegPath, GroupLayout.Alignment.TRAILING, GroupLayout.DEFAULT_SIZE, 280, Short.MAX_VALUE))
616 .addPreferredGap(ComponentPlacement.RELATED)
617 .addGroup(gl_jPanel10.createParallelGroup(GroupLayout.Alignment.LEADING)
618 .addComponent(btnFfmpegPath, GroupLayout.Alignment.TRAILING)
619 .addComponent(btnFfmpegDllPath, GroupLayout.Alignment.TRAILING))
622 gl_jPanel10.setVerticalGroup(
623 gl_jPanel10.createParallelGroup(GroupLayout.Alignment.LEADING)
624 .addGroup(gl_jPanel10.createSequentialGroup()
625 .addGroup(gl_jPanel10.createParallelGroup(GroupLayout.Alignment.BASELINE)
626 .addComponent(lblFfmpegPath)
627 .addComponent(fldFfmpegPath, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
628 .addComponent(btnFfmpegPath))
629 .addPreferredGap(ComponentPlacement.RELATED)
630 .addGroup(gl_jPanel10.createParallelGroup(GroupLayout.Alignment.BASELINE)
631 .addComponent(lblFfmpegDllPath)
632 .addComponent(fldFfmpegDllPath, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
633 .addComponent(btnFfmpegDllPath))
634 .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
637 pnlFfmpegParam.setBorder(BorderFactory.createTitledBorder("ffmpegパラメータ"));
639 buttonGroup1.add(rbFfmpegOptionFile);
640 rbFfmpegOptionFile.setText("オプションファイル");
642 buttonGroup1.add(rbFfmpegOptionDirectInput);
643 rbFfmpegOptionDirectInput.setText("直接入力");
645 cmbFfmpegOptionFile.setModel(new DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
647 pnlFfmpegParamOption.setBorder(BorderFactory.createEtchedBorder());
649 lblFfmpegOptionExtension.setText("出力動画の拡張子");
651 lblFfmpegOptionMain.setText("メインオプション");
653 lblFfmpegOptionIn.setText("入力オプション");
655 lblFfmpegOptionOut.setText("出力オプション");
657 lblFfmpegOptionAvfilter.setText("avfilterオプション");
659 cbFfmpegOptionResize.setText("次のサイズに収まるよう縮小(-s)");
661 lblFfmpegOptionResizeWidth.setText("横");
663 lblFfmpegOptionResizeHeight.setText("縦");
665 cbFfmpegOptionKeepAspect.setText("アスペクト比を維持");
667 GroupLayout gl_pnlFfmpegParamOption = new GroupLayout(pnlFfmpegParamOption);
668 pnlFfmpegParamOption.setLayout(gl_pnlFfmpegParamOption);
669 gl_pnlFfmpegParamOption.setHorizontalGroup(
670 gl_pnlFfmpegParamOption.createParallelGroup(GroupLayout.Alignment.LEADING)
671 .addGroup(gl_pnlFfmpegParamOption.createSequentialGroup()
672 .addGroup(gl_pnlFfmpegParamOption.createParallelGroup(GroupLayout.Alignment.LEADING)
673 .addGroup(gl_pnlFfmpegParamOption.createSequentialGroup()
675 .addGroup(gl_pnlFfmpegParamOption.createParallelGroup(GroupLayout.Alignment.LEADING)
676 .addComponent(lblFfmpegOptionAvfilter)
677 .addComponent(lblFfmpegOptionExtension)
678 .addComponent(lblFfmpegOptionMain)
679 .addComponent(lblFfmpegOptionIn)
680 .addComponent(lblFfmpegOptionOut))
681 .addPreferredGap(ComponentPlacement.RELATED)
682 .addGroup(gl_pnlFfmpegParamOption.createParallelGroup(GroupLayout.Alignment.LEADING)
683 .addComponent(fldFfmpegOptionExtension, GroupLayout.PREFERRED_SIZE, 51, GroupLayout.PREFERRED_SIZE)
684 .addComponent(fldFfmpegOptionMain, GroupLayout.DEFAULT_SIZE, 268, Short.MAX_VALUE)
685 .addComponent(fldFfmpegOptionIn, GroupLayout.DEFAULT_SIZE, 268, Short.MAX_VALUE)
686 .addComponent(fldFfmpegOptionOut, GroupLayout.DEFAULT_SIZE, 268, Short.MAX_VALUE)
687 .addComponent(fldFfmpegOptionAv, GroupLayout.DEFAULT_SIZE, 268, Short.MAX_VALUE)))
688 .addGroup(gl_pnlFfmpegParamOption.createSequentialGroup()
690 .addComponent(cbFfmpegOptionResize)
691 .addPreferredGap(ComponentPlacement.UNRELATED)
692 .addComponent(lblFfmpegOptionResizeWidth)
693 .addPreferredGap(ComponentPlacement.RELATED)
694 .addComponent(fldFfmpegOptionResizeWidth, GroupLayout.PREFERRED_SIZE, 48, GroupLayout.PREFERRED_SIZE)
696 .addComponent(lblFfmpegOptionResizeHeight)
697 .addPreferredGap(ComponentPlacement.RELATED)
698 .addComponent(fldFfmpegOptionResizeHeight, GroupLayout.PREFERRED_SIZE, 48, GroupLayout.PREFERRED_SIZE))
699 .addGroup(gl_pnlFfmpegParamOption.createSequentialGroup()
701 .addComponent(cbFfmpegOptionKeepAspect)))
704 gl_pnlFfmpegParamOption.setVerticalGroup(
705 gl_pnlFfmpegParamOption.createParallelGroup(GroupLayout.Alignment.LEADING)
706 .addGroup(gl_pnlFfmpegParamOption.createSequentialGroup()
708 .addGroup(gl_pnlFfmpegParamOption.createParallelGroup(GroupLayout.Alignment.BASELINE)
709 .addComponent(lblFfmpegOptionExtension)
710 .addComponent(fldFfmpegOptionExtension, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
711 .addPreferredGap(ComponentPlacement.RELATED)
712 .addGroup(gl_pnlFfmpegParamOption.createParallelGroup(GroupLayout.Alignment.BASELINE)
713 .addComponent(lblFfmpegOptionMain)
714 .addComponent(fldFfmpegOptionMain, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
715 .addPreferredGap(ComponentPlacement.RELATED)
716 .addGroup(gl_pnlFfmpegParamOption.createParallelGroup(GroupLayout.Alignment.BASELINE)
717 .addComponent(lblFfmpegOptionIn)
718 .addComponent(fldFfmpegOptionIn, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
719 .addPreferredGap(ComponentPlacement.RELATED)
720 .addGroup(gl_pnlFfmpegParamOption.createParallelGroup(GroupLayout.Alignment.BASELINE)
721 .addComponent(lblFfmpegOptionOut)
722 .addComponent(fldFfmpegOptionOut, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
723 .addPreferredGap(ComponentPlacement.RELATED)
724 .addGroup(gl_pnlFfmpegParamOption.createParallelGroup(GroupLayout.Alignment.BASELINE)
725 .addComponent(lblFfmpegOptionAvfilter)
726 .addComponent(fldFfmpegOptionAv, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
727 .addPreferredGap(ComponentPlacement.RELATED)
728 .addGroup(gl_pnlFfmpegParamOption.createParallelGroup(GroupLayout.Alignment.BASELINE)
729 .addComponent(cbFfmpegOptionResize)
730 .addComponent(lblFfmpegOptionResizeWidth)
731 .addComponent(fldFfmpegOptionResizeWidth, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
732 .addComponent(lblFfmpegOptionResizeHeight)
733 .addComponent(fldFfmpegOptionResizeHeight, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
734 .addPreferredGap(ComponentPlacement.RELATED)
735 .addComponent(cbFfmpegOptionKeepAspect)
739 GroupLayout gl_pnlFfmpegParam = new GroupLayout(pnlFfmpegParam);
740 pnlFfmpegParam.setLayout(gl_pnlFfmpegParam);
741 gl_pnlFfmpegParam.setHorizontalGroup(
742 gl_pnlFfmpegParam.createParallelGroup(Alignment.LEADING)
743 .addGroup(gl_pnlFfmpegParam.createSequentialGroup()
745 .addGroup(gl_pnlFfmpegParam.createParallelGroup(Alignment.LEADING)
746 .addComponent(pnlFfmpegParamOption, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
747 .addGroup(gl_pnlFfmpegParam.createSequentialGroup()
748 .addComponent(rbFfmpegOptionFile)
749 .addPreferredGap(ComponentPlacement.RELATED)
750 .addComponent(cmbFfmpegOptionFile, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
751 .addComponent(rbFfmpegOptionDirectInput))
754 gl_pnlFfmpegParam.setVerticalGroup(
755 gl_pnlFfmpegParam.createParallelGroup(Alignment.LEADING)
756 .addGroup(gl_pnlFfmpegParam.createSequentialGroup()
758 .addGroup(gl_pnlFfmpegParam.createParallelGroup(Alignment.BASELINE)
759 .addComponent(rbFfmpegOptionFile)
760 .addComponent(cmbFfmpegOptionFile, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
761 .addPreferredGap(ComponentPlacement.RELATED)
762 .addComponent(rbFfmpegOptionDirectInput)
763 .addPreferredGap(ComponentPlacement.RELATED)
764 .addComponent(pnlFfmpegParamOption, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
768 GroupLayout gl_pnlFfmpeg = new GroupLayout(pnlFfmpeg);
769 pnlFfmpeg.setLayout(gl_pnlFfmpeg);
770 gl_pnlFfmpeg.setHorizontalGroup(
771 gl_pnlFfmpeg.createParallelGroup(GroupLayout.Alignment.LEADING)
772 .addGroup(GroupLayout.Alignment.TRAILING, gl_pnlFfmpeg.createSequentialGroup()
774 .addGroup(gl_pnlFfmpeg.createParallelGroup(GroupLayout.Alignment.TRAILING)
775 .addComponent(pnlFfmpegParam, GroupLayout.Alignment.LEADING, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
776 .addComponent(jPanel10, GroupLayout.Alignment.LEADING, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
779 gl_pnlFfmpeg.setVerticalGroup(
780 gl_pnlFfmpeg.createParallelGroup(GroupLayout.Alignment.LEADING)
781 .addGroup(gl_pnlFfmpeg.createSequentialGroup()
783 .addComponent(jPanel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
784 .addPreferredGap(ComponentPlacement.RELATED)
785 .addComponent(pnlFfmpegParam, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
789 tabbedPane.addTab("ffmpeg", pnlFfmpeg);
791 pnlNgWord.setBorder(BorderFactory.createTitledBorder("NGワード"));
793 lstNgWord.setModel(mdlNgWord);
794 scrNgWord.setViewportView(lstNgWord);
796 btnNgWordAdd.setText("追加");
798 btnNgWordDel.setText("削除");
800 GroupLayout gl_pnlNgWord = new GroupLayout(pnlNgWord);
801 pnlNgWord.setLayout(gl_pnlNgWord);
802 gl_pnlNgWord.setHorizontalGroup(
803 gl_pnlNgWord.createParallelGroup(GroupLayout.Alignment.LEADING)
804 .addGroup(gl_pnlNgWord.createSequentialGroup()
806 .addGroup(gl_pnlNgWord.createParallelGroup(GroupLayout.Alignment.LEADING)
807 .addComponent(scrNgWord, GroupLayout.DEFAULT_SIZE, 395, Short.MAX_VALUE)
808 .addGroup(gl_pnlNgWord.createSequentialGroup()
809 .addComponent(fldNgWord, GroupLayout.DEFAULT_SIZE, 256, Short.MAX_VALUE)
810 .addPreferredGap(ComponentPlacement.RELATED)
811 .addComponent(btnNgWordAdd)
813 .addComponent(btnNgWordDel)))
816 gl_pnlNgWord.setVerticalGroup(
817 gl_pnlNgWord.createParallelGroup(GroupLayout.Alignment.LEADING)
818 .addGroup(gl_pnlNgWord.createSequentialGroup()
819 .addComponent(scrNgWord, GroupLayout.PREFERRED_SIZE, 100, GroupLayout.PREFERRED_SIZE)
820 .addPreferredGap(ComponentPlacement.RELATED)
821 .addGroup(gl_pnlNgWord.createParallelGroup(GroupLayout.Alignment.BASELINE)
822 .addComponent(fldNgWord, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
823 .addComponent(btnNgWordDel)
824 .addComponent(btnNgWordAdd))
825 .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
828 pnlNgId.setBorder(BorderFactory.createTitledBorder("NGID"));
830 lstNgId.setModel(mdlNgId);
831 scrNgId.setViewportView(lstNgId);
833 btnNgIdAdd.setText("追加");
835 btnNgIdDel.setText("削除");
837 GroupLayout gl_pnlNgId = new GroupLayout(pnlNgId);
838 pnlNgId.setLayout(gl_pnlNgId);
839 gl_pnlNgId.setHorizontalGroup(
840 gl_pnlNgId.createParallelGroup(GroupLayout.Alignment.LEADING)
841 .addGroup(gl_pnlNgId.createSequentialGroup()
843 .addGroup(gl_pnlNgId.createParallelGroup(GroupLayout.Alignment.LEADING)
844 .addComponent(scrNgId, GroupLayout.DEFAULT_SIZE, 395, Short.MAX_VALUE)
845 .addGroup(GroupLayout.Alignment.TRAILING, gl_pnlNgId.createSequentialGroup()
846 .addComponent(fldNgId, GroupLayout.DEFAULT_SIZE, 256, Short.MAX_VALUE)
847 .addPreferredGap(ComponentPlacement.RELATED)
848 .addComponent(btnNgIdAdd)
850 .addComponent(btnNgIdDel)))
853 gl_pnlNgId.setVerticalGroup(
854 gl_pnlNgId.createParallelGroup(GroupLayout.Alignment.LEADING)
855 .addGroup(gl_pnlNgId.createSequentialGroup()
856 .addComponent(scrNgId, GroupLayout.PREFERRED_SIZE, 100, GroupLayout.PREFERRED_SIZE)
857 .addPreferredGap(ComponentPlacement.RELATED)
858 .addGroup(gl_pnlNgId.createParallelGroup(GroupLayout.Alignment.BASELINE)
859 .addComponent(fldNgId, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
860 .addComponent(btnNgIdDel)
861 .addComponent(btnNgIdAdd))
862 .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
865 GroupLayout gl_pnlNgSetting = new GroupLayout(pnlNgSetting);
866 pnlNgSetting.setLayout(gl_pnlNgSetting);
867 gl_pnlNgSetting.setHorizontalGroup(
868 gl_pnlNgSetting.createParallelGroup(GroupLayout.Alignment.LEADING)
869 .addGroup(GroupLayout.Alignment.TRAILING, gl_pnlNgSetting.createSequentialGroup()
871 .addGroup(gl_pnlNgSetting.createParallelGroup(GroupLayout.Alignment.TRAILING)
872 .addComponent(pnlNgId, GroupLayout.Alignment.LEADING, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
873 .addComponent(pnlNgWord, GroupLayout.Alignment.LEADING, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
876 gl_pnlNgSetting.setVerticalGroup(
877 gl_pnlNgSetting.createParallelGroup(GroupLayout.Alignment.LEADING)
878 .addGroup(gl_pnlNgSetting.createSequentialGroup()
880 .addComponent(pnlNgWord, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
881 .addPreferredGap(ComponentPlacement.RELATED)
882 .addComponent(pnlNgId, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
883 .addContainerGap(82, Short.MAX_VALUE))
886 tabbedPane.addTab("NG設定", pnlNgSetting);
888 pnlSearchVideo.setBorder(BorderFactory.createTitledBorder("動画検索対象フォルダ"));
890 lstSearchVideo.setModel(mdlSearchVideo);
891 srcSearchVideo.setViewportView(lstSearchVideo);
893 btnSearchVideoAdd.setText("追加...");
895 btnSearchVideoDel.setText("削除");
897 GroupLayout gl_pnlSearchVideo = new GroupLayout(pnlSearchVideo);
898 pnlSearchVideo.setLayout(gl_pnlSearchVideo);
899 gl_pnlSearchVideo.setHorizontalGroup(
900 gl_pnlSearchVideo.createParallelGroup(GroupLayout.Alignment.LEADING)
901 .addComponent(srcSearchVideo, GroupLayout.DEFAULT_SIZE, 419, Short.MAX_VALUE)
902 .addGroup(GroupLayout.Alignment.TRAILING, gl_pnlSearchVideo.createSequentialGroup()
903 .addContainerGap(269, Short.MAX_VALUE)
904 .addComponent(btnSearchVideoAdd)
906 .addComponent(btnSearchVideoDel)
909 gl_pnlSearchVideo.setVerticalGroup(
910 gl_pnlSearchVideo.createParallelGroup(GroupLayout.Alignment.LEADING)
911 .addGroup(gl_pnlSearchVideo.createSequentialGroup()
912 .addComponent(srcSearchVideo, GroupLayout.PREFERRED_SIZE, 100, GroupLayout.PREFERRED_SIZE)
913 .addPreferredGap(ComponentPlacement.RELATED)
914 .addGroup(gl_pnlSearchVideo.createParallelGroup(GroupLayout.Alignment.BASELINE)
915 .addComponent(btnSearchVideoDel)
916 .addComponent(btnSearchVideoAdd))
917 .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
920 pnlSearchComment.setBorder(BorderFactory.createTitledBorder("コメント検索対象フォルダ"));
922 lstSearchComment.setModel(mdlSearchComment);
923 srcSearchComment.setViewportView(lstSearchComment);
925 btnSearchCommentAdd.setText("追加...");
927 btnSearchCommentDel.setText("削除");
929 GroupLayout gl_pnlSearchComment = new GroupLayout(pnlSearchComment);
930 pnlSearchComment.setLayout(gl_pnlSearchComment);
931 gl_pnlSearchComment.setHorizontalGroup(
932 gl_pnlSearchComment.createParallelGroup(GroupLayout.Alignment.LEADING)
933 .addComponent(srcSearchComment, GroupLayout.DEFAULT_SIZE, 419, Short.MAX_VALUE)
934 .addGroup(GroupLayout.Alignment.TRAILING, gl_pnlSearchComment.createSequentialGroup()
935 .addContainerGap(269, Short.MAX_VALUE)
936 .addComponent(btnSearchCommentAdd)
938 .addComponent(btnSearchCommentDel)
941 gl_pnlSearchComment.setVerticalGroup(
942 gl_pnlSearchComment.createParallelGroup(GroupLayout.Alignment.LEADING)
943 .addGroup(gl_pnlSearchComment.createSequentialGroup()
944 .addComponent(srcSearchComment, GroupLayout.PREFERRED_SIZE, 100, GroupLayout.PREFERRED_SIZE)
945 .addPreferredGap(ComponentPlacement.RELATED)
946 .addGroup(gl_pnlSearchComment.createParallelGroup(GroupLayout.Alignment.BASELINE)
947 .addComponent(btnSearchCommentDel)
948 .addComponent(btnSearchCommentAdd))
949 .addContainerGap(16, Short.MAX_VALUE))
952 pnlSearchCache.setBorder(BorderFactory.createEtchedBorder());
954 lblSearchCache.setText("キャッシュ更新(秒)");
956 GroupLayout gl_pnlSearchCache = new GroupLayout(pnlSearchCache);
957 pnlSearchCache.setLayout(gl_pnlSearchCache);
958 gl_pnlSearchCache.setHorizontalGroup(
959 gl_pnlSearchCache.createParallelGroup(GroupLayout.Alignment.LEADING)
960 .addGroup(gl_pnlSearchCache.createSequentialGroup()
962 .addComponent(lblSearchCache)
963 .addPreferredGap(ComponentPlacement.RELATED)
964 .addComponent(fldSearchCache, GroupLayout.PREFERRED_SIZE, 55, GroupLayout.PREFERRED_SIZE)
965 .addContainerGap(269, Short.MAX_VALUE))
967 gl_pnlSearchCache.setVerticalGroup(
968 gl_pnlSearchCache.createParallelGroup(GroupLayout.Alignment.LEADING)
969 .addGroup(gl_pnlSearchCache.createSequentialGroup()
971 .addGroup(gl_pnlSearchCache.createParallelGroup(GroupLayout.Alignment.BASELINE)
972 .addComponent(lblSearchCache)
973 .addComponent(fldSearchCache, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
974 .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
977 GroupLayout gl_pnlSearch = new GroupLayout(pnlSearch);
978 pnlSearch.setLayout(gl_pnlSearch);
979 gl_pnlSearch.setHorizontalGroup(
980 gl_pnlSearch.createParallelGroup(GroupLayout.Alignment.LEADING)
981 .addGroup(GroupLayout.Alignment.TRAILING, gl_pnlSearch.createSequentialGroup()
983 .addGroup(gl_pnlSearch.createParallelGroup(GroupLayout.Alignment.TRAILING)
984 .addComponent(pnlSearchCache, GroupLayout.Alignment.LEADING, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
985 .addComponent(pnlSearchComment, GroupLayout.Alignment.LEADING, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
986 .addComponent(pnlSearchVideo, GroupLayout.Alignment.LEADING, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
989 gl_pnlSearch.setVerticalGroup(
990 gl_pnlSearch.createParallelGroup(GroupLayout.Alignment.LEADING)
991 .addGroup(gl_pnlSearch.createSequentialGroup()
993 .addComponent(pnlSearchVideo, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
994 .addPreferredGap(ComponentPlacement.RELATED)
995 .addComponent(pnlSearchComment, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
996 .addPreferredGap(ComponentPlacement.RELATED)
997 .addComponent(pnlSearchCache, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
998 .addContainerGap(27, Short.MAX_VALUE))
1001 tabbedPane.addTab("検索", pnlSearch);
1003 final JPanel pnlButton = new JPanel();
1004 final JButton btnOk = new JButton("OK");
1005 final JButton btnCancel = new JButton("Cancel");
1006 pnlButton.add(btnOk);
1007 pnlButton.add(btnCancel);
1009 GroupLayout layout = new GroupLayout(getContentPane());
1010 getContentPane().setLayout(layout);
1011 layout.setHorizontalGroup(
1012 layout.createParallelGroup(GroupLayout.Alignment.LEADING)
1013 .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 460, Short.MAX_VALUE)
1014 .addComponent(pnlButton)
1016 layout.setVerticalGroup(
1017 // layout.createParallelGroup(GroupLayout.Alignment.LEADING)
1018 // .addGroup(layout.createSequentialGroup()
1019 // .addComponent(jTabbedPane1, GroupLayout.DEFAULT_SIZE, 451, GroupLayout.PREFERRED_SIZE)
1020 // .addContainerGap(23, Short.MAX_VALUE))
1021 layout.createSequentialGroup()
1022 .addComponent(tabbedPane,GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
1023 .addComponent(pnlButton)
1027 setResizable(false); loadConfig();
1031 * @param args the command line arguments
1033 public static void main(String args[]) {
1034 /* Set the Nimbus look and feel */
1035 //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
1036 /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
1037 * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
1040 for (UIManager.LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {
1041 if ("Nimbus".equals(info.getName())) {
1042 UIManager.setLookAndFeel(info.getClassName());
1046 } catch (ClassNotFoundException ex) {
1047 java.util.logging.Logger.getLogger(ConfigDialog.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
1048 } catch (InstantiationException ex) {
1049 java.util.logging.Logger.getLogger(ConfigDialog.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
1050 } catch (IllegalAccessException ex) {
1051 java.util.logging.Logger.getLogger(ConfigDialog.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
1052 } catch (UnsupportedLookAndFeelException ex) {
1053 java.util.logging.Logger.getLogger(ConfigDialog.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
1057 /* Create and display the form */
1058 java.awt.EventQueue.invokeLater(new Runnable() {
1062 new ConfigDialog().setVisible(true);
1066 // Variables declaration - do not modify//GEN-BEGIN:variables
1067 private final JButton btnVideoDir;
1068 private final JButton btnNgWordDel;
1069 private final JButton btnNgIdAdd;
1070 private final JButton btnNgIdDel;
1071 private final JButton btnSearchCommentAdd;
1072 private final JButton btnSearchCommentDel;
1073 private final JButton btnCommentDir;
1074 private final JButton btnOutputDir;
1075 private final JButton btnFfmpegPath;
1076 private final JButton btnFfmpegDllPath;
1077 private final JButton btnFontPath;
1078 private final JButton btnSearchVideoAdd;
1079 private final JButton btnSearchVideoDel;
1080 private final JButton btnNgWordAdd;
1081 private final JCheckBox cbProxyUse;
1082 private final JCheckBox cbCommentDisplaySizeDefault;
1083 private final JCheckBox cbOutputDisplayProgress;
1084 private final JCheckBox cbFontSizeArrangeDisable;
1085 private final JCheckBox cbCommentOpaque;
1086 private final JCheckBox cbVideoLocal;
1087 private final JCheckBox cbCommentLocal;
1088 private final JCheckBox cbOutputEnable;
1089 private final JCheckBox cbCommentSizeAuto;
1090 private final JCheckBox cbCommentMinSizeAuto;
1091 private final JCheckBox cbOutputCommentOverlay;
1092 private final JCheckBox cbFfmpegOptionResize;
1093 private final JCheckBox cbFfmpegOptionKeepAspect;
1094 private final JComboBox cmbFfmpegOptionFile;
1095 private final JList<String> lstSearchVideo;
1096 private final DefaultListModel<String> mdlSearchVideo = new DefaultListModel<>();
1097 private final JList<String> lstSearchComment;
1098 private final DefaultListModel<String> mdlSearchComment = new DefaultListModel<>();
1099 private final JList<String> lstNgWord;
1100 private final DefaultListModel<String> mdlNgWord = new DefaultListModel<>();
1101 private final JList<String> lstNgId;
1102 private final DefaultListModel<String> mdlNgId = new DefaultListModel<>();
1103 private final JRadioButton rbFfmpegOptionFile;
1104 private final JRadioButton rbFfmpegOptionDirectInput;
1105 private final JTextField fldMail;
1106 private final JTextField fldOutputFileNamePattern;
1107 private final JTextField fldCommentSizeManual;
1108 private final JTextField fldCommentMinSizeManual;
1109 private final JTextField fldFfmpegPath;
1110 private final JTextField fldFfmpegDllPath;
1111 private final JTextField fldFfmpegOptionResizeWidth;
1112 private final JTextField fldFfmpegOptionResizeHeight;
1113 private final JTextField fldFfmpegOptionExtension;
1114 private final JTextField fldFfmpegOptionMain;
1115 private final JTextField fldFfmpegOptionIn;
1116 private final JTextField fldPassword;
1117 private final JTextField fldFfmpegOptionOut;
1118 private final JTextField fldFfmpegOptionAv;
1119 private final JTextField fldCommentDisplaySizeManual;
1120 private final JTextField fldFontPath;
1121 private final JTextField fldFontIndex;
1122 private final JTextField fldFontShadow;
1123 private final JTextField fldNgWord;
1124 private final JTextField fldNgId;
1125 private final JTextField fldSearchCache;
1126 private final JTextField fldProxyHost;
1127 private final JTextField fldProxyPort;
1128 private final JTextField fldVideoDir;
1129 private final JTextField fldVideoFileNamePattern;
1130 private final JTextField fldCommentDir;
1131 private final JTextField fldCommentFileNamePattern;
1132 private final JTextField fldOutputDir;
1133 // End of variables declaration//GEN-END:variables
1135 private void loadConfig() {
1136 final Config p = Config.INSTANCE;
1141 fldMail.setText(p.getId());
1142 fldPassword.setText(p.getPassword());
1147 cbProxyUse.setSelected(p.getProxyUse());
1148 fldProxyHost.setText(p.getProxyHost());
1149 fldProxyPort.setText(p.getProxyPort());
1154 fldVideoDir.setText(p.getVideoDir());
1155 fldVideoFileNamePattern.setText(p.getVideoFileNamePattern());
1156 cbVideoLocal.setSelected(p.getVideoUseLocal());
1161 fldCommentDir.setText(p.getCommentDir());
1162 fldCommentFileNamePattern.setText(p.getCommentFileNamePattern());
1163 cbCommentLocal.setSelected(p.getCommentUseLocal());
1168 fldOutputDir.setText(p.getOutputDir());
1169 fldOutputFileNamePattern.setText(p.getOutputFileNamePattern());
1170 cbOutputEnable.setSelected(p.getOutputEnable());
1171 cbOutputCommentOverlay.setSelected(p.getOutputCommentOverlay());
1172 cbOutputDisplayProgress.setSelected(p.getOutputDisplayProgress());
1177 cbCommentSizeAuto.setSelected(p.getCommentSizeAutosize());
1178 fldCommentSizeManual.setText(p.getCommentSizeManual());
1179 cbCommentMinSizeAuto.setSelected(p.getCommentMinSizeAutosize());
1180 fldCommentSizeManual.setText(p.getCommentMinSizeManual());
1181 cbCommentDisplaySizeDefault.setSelected(p.getCommentDisplaySizeDefault());
1182 fldCommentDisplaySizeManual.setText(p.getCommentDisplaySizeManual());
1187 fldFontPath.setText(p.getFontPath());
1188 fldFontIndex.setText(p.getFontIndex());
1189 // TODO 影の種類はコンボボックス
1190 cbFontSizeArrangeDisable.setSelected(p.getFontSizeArrangeDisable());
1191 cbCommentOpaque.setSelected(p.getCommentOpaque());
1196 fldFfmpegPath.setText(p.getFfmpegPath());
1197 fldFfmpegDllPath.setText(p.getFfmpegDllPath());
1200 * ffmpeg - ffmpegパラメータ
1202 rbFfmpegOptionFile.setSelected(!p.getFfmpegParamInputDirect());
1203 rbFfmpegOptionDirectInput.setSelected(p.getFfmpegParamInputDirect());
1204 // TODO cmbFfmpegOptionFile
1205 fldFfmpegOptionExtension.setText(p.getFfmpegExtension());
1206 fldFfmpegOptionMain.setText(p.getFfmpegMainOption());
1207 fldFfmpegOptionIn.setText(p.getFfmpegInOption());
1208 fldFfmpegOptionOut.setText(p.getFfmpegOutOption());
1209 fldFfmpegOptionAv.setText(p.getFfmpegAvOption());
1210 cbFfmpegOptionResize.setSelected(p.getFfmpegResizeEnable());
1211 fldFfmpegOptionResizeWidth.setText(p.getFfmpegResizeWidth());
1212 fldFfmpegOptionResizeHeight.setText(p.getFfmpegResizeHeight());
1213 cbFfmpegOptionKeepAspect.setSelected(p.getFfmpegKeepAspect());
1218 final List<String> ngWords = p.getNgWords();
1219 for (String s : ngWords) {
1220 mdlNgWord.addElement(s);
1222 final List<String> ngIds = p.getNgIds();
1223 for (String s : ngIds) {
1224 mdlNgId.addElement(s);
1227 private void saveConfig() {
1228 final Config p = Config.INSTANCE;
1234 p.setId(fldMail.getText());
1235 p.setPassword(fldPassword.getText());
1240 p.setProxyUse(cbProxyUse.isSelected());
1241 p.setProxyHost(fldProxyHost.getText());
1242 p.setProxyPort(fldProxyPort.getText());
1247 p.setVideoDir(fldVideoDir.getText());
1248 p.setVideoFileNamePattern(fldVideoFileNamePattern.getText());
1249 p.setVideoUseLocal(cbVideoLocal.isSelected());
1254 p.setCommentDir(fldCommentDir.getText());
1255 p.setCommentFileNamePattern(fldCommentFileNamePattern.getText());
1256 p.setCommentUseLocal(cbCommentLocal.isSelected());
1261 p.setOutputDir(fldOutputDir.getText());
1262 p.setOutputFileNamePattern(fldOutputFileNamePattern.getText());
1263 p.setOutputEnable(cbOutputEnable.isSelected());
1264 p.setOutputCommentOverlay(cbOutputCommentOverlay.isSelected());
1265 p.setOutputDisplayProgress(cbOutputDisplayProgress.isSelected());
1270 p.setCommentSizeAutosize(cbCommentSizeAuto.isSelected());
1271 p.setCommentSizeManual(fldCommentSizeManual.getText());
1272 p.setCommentMinSizeAutosize(cbCommentMinSizeAuto.isSelected());
1273 p.setCommentMinSizeManual(fldCommentSizeManual.getText());
1274 p.setCommentDisplaySizeDefault(cbCommentDisplaySizeDefault.isSelected());
1275 p.setCommentDisplaySizeManual(fldCommentDisplaySizeManual.getText());
1280 p.setFontPath(fldFontPath.getText());
1281 p.setFontIndex(fldFontIndex.getText());
1282 // TODO 影の種類はコンボボックス
1283 p.setFontSizeArrangeDisable(cbFontSizeArrangeDisable.isSelected());
1284 p.setCommentOpaque(cbCommentOpaque.isSelected());
1289 p.setFfmpegPath(fldFfmpegPath.getText());
1290 p.setFfmpegDllPath(fldFfmpegDllPath.getText());
1293 * ffmpeg - ffmpegパラメータ
1295 p.setFfmpegParamInputDirect(rbFfmpegOptionDirectInput.isSelected());
1296 // TODO cmbFfmpegOptionFile
1297 p.setFfmpegExtension(fldFfmpegOptionExtension.getText());
1298 p.setFfmpegMainOption(fldFfmpegOptionMain.getText());
1299 p.setFfmpegInOption(fldFfmpegOptionIn.getText());
1300 p.setFfmpegOutOption(fldFfmpegOptionOut.getText());
1301 p.setFfmpegAvOption(fldFfmpegOptionAv.getText());
1302 p.setFfmpegResizeEnable(cbFfmpegOptionResize.isSelected());
1303 p.setFfmpegResizeWidth(fldFfmpegOptionResizeWidth.getText());
1304 p.setFfmpegResizeHeight(fldFfmpegOptionResizeHeight.getText());
1305 p.setFfmpegKeepAspect(cbFfmpegOptionKeepAspect.isSelected());
1310 p.setNgWords(Arrays.asList((String[]) mdlNgWord.toArray()));
1311 p.setNgIds(Arrays.asList((String[])mdlNgId.toArray()));