4 import java.awt.dnd.DnDConstants;
5 import java.awt.dnd.DropTarget;
6 import java.awt.event.*;
9 import psi.lib.swing.PopupRightClick;
10 import saccubus.util.FileDropTarget;
12 import java.awt.GridBagLayout;
13 import java.awt.GridBagConstraints;
14 import java.awt.Insets;
15 import javax.swing.BorderFactory;
16 import javax.swing.JCheckBox;
17 import javax.swing.JPanel;
18 import javax.swing.border.EtchedBorder;
19 import javax.swing.border.TitledBorder;
21 import java.awt.Color;
22 import javax.swing.JTabbedPane;
23 import javax.swing.JComboBox;
24 import javax.swing.JButton;
25 import javax.swing.JLabel;
26 import javax.swing.JTextField;
27 import java.awt.event.KeyEvent;
31 *
\83^
\83C
\83g
\83\8b:
\82³
\82«
\82ã
\82Î
\82·
35 *
\90à
\96¾:
\83j
\83R
\83j
\83R
\93®
\89æ
\82Ì
\93®
\89æ
\82ð
\83R
\83\81\83\93\83g
\82Â
\82«
\82Å
\95Û
\91¶
39 *
\92\98\8dì
\8c : Copyright (c) 2007 PSI
46 * @author
\96¢
\93ü
\97Í
49 public class MainFrame extends JFrame {
53 private static final long serialVersionUID = 2564486741331062989L;
55 public static final Image WinIcon = Toolkit.getDefaultToolkit()
56 .createImage(saccubus.MainFrame.class.getResource("icon32.png"));
61 BorderLayout borderLayout1 = new BorderLayout();
63 JMenuBar jMenuBar1 = new JMenuBar();
65 JMenu jMenuFile = new JMenu();
67 JMenuItem jMenuFileExit = new JMenuItem();
69 JMenu jMenuHelp = new JMenu();
71 JMenuItem jMenuHelpAbout = new JMenuItem();
73 JLabel statusBar = new JLabel();
75 JTabbedPane MainTabbedPane = new JTabbedPane();
77 JPanel SavingInfoTabPanel = new JPanel();
79 JPanel FFMpegTabPanel = new JPanel();
81 JPanel VideoInfoPanel = new JPanel();
83 JTextField VideoID_TextField = new JTextField();
85 JButton DoButton = new JButton();
87 public static final String DoButtonDefString = "
\95Ï
\8a·";
89 public static final String DoButtonStopString = "
\92â
\8e~";
91 public static final String DoButtonWaitString = "
\91Ò
\8b@";
93 GridBagLayout gridBagLayout2 = new GridBagLayout();
95 JPanel UserInfoPanel = new JPanel();
97 GridBagLayout gridBagLayout3 = new GridBagLayout();
99 JLabel MailAddrLabel = new JLabel();
101 JTextField MailAddrField = new JTextField();
103 JLabel PasswordLabel = new JLabel();
105 JPasswordField PasswordField = new JPasswordField();
107 JPanel CommentSaveInfoPanel = new JPanel();
109 GridBagLayout gridBagLayout4 = new GridBagLayout();
111 JCheckBox SavingVideoCheckBox = new JCheckBox();
113 JTextField VideoSavedFileField = new JTextField();
115 JButton ShowSavingVideoFileDialogButton = new JButton();
117 JCheckBox SavingCommentCheckBox = new JCheckBox();
119 JTextField CommentSavedFileField = new JTextField();
121 JButton ShowSavingCommentFileDialogButton = new JButton();
123 JPanel ConvertedVideoSavingInfoPanel = new JPanel();
125 GridBagLayout gridBagLayout5 = new GridBagLayout();
127 JCheckBox SavingConvertedVideoCheckBox = new JCheckBox();
129 JTextField ConvertedVideoSavedFileField = new JTextField();
131 JButton ShowSavingConvertedVideoFileDialogButton = new JButton();
133 GridBagLayout gridBagLayout6 = new GridBagLayout();
135 ButtonGroup VideoSaveButtonGroup = new ButtonGroup();
137 ButtonGroup CommentSaveButtonGroup = new ButtonGroup();
139 ButtonGroup ConvSaveButtonGroup = new ButtonGroup();
143 setDefaultCloseOperation(EXIT_ON_CLOSE);
147 ConvertingSetting setting = ConvertingSetting.loadSetting(null,
149 this.setSetting(setting);
150 } catch (Exception exception) {
151 exception.printStackTrace();
156 *
\83R
\83\93\83|
\81[
\83l
\83\93\83g
\82Ì
\8f\89\8aú
\89»
\81B
158 * @throws java.lang.Exception
160 private void jbInit() throws Exception {
161 GridBagConstraints gridBagConstraints74 = new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 5), 0, 0);
162 gridBagConstraints74.gridwidth = 2;
163 GridBagConstraints gridBagConstraints73 = new GridBagConstraints();
164 gridBagConstraints73.fill = GridBagConstraints.HORIZONTAL;
165 gridBagConstraints73.gridy = 6;
166 gridBagConstraints73.weightx = 1.0;
167 gridBagConstraints73.gridwidth = 4;
168 gridBagConstraints73.insets = new Insets(0, 0, 0, 5);
169 gridBagConstraints73.gridx = 1;
170 GridBagConstraints gridBagConstraints72 = new GridBagConstraints();
171 gridBagConstraints72.gridx = 0;
172 gridBagConstraints72.anchor = GridBagConstraints.WEST;
173 gridBagConstraints72.insets = new Insets(0, 5, 0, 5);
174 gridBagConstraints72.fill = GridBagConstraints.NONE;
175 gridBagConstraints72.gridwidth = 1;
176 gridBagConstraints72.gridy = 6;
177 ShadowKindLabel = new JLabel();
178 ShadowKindLabel.setText("
\89e
\82Ì
\8eí
\97Þ");
179 ShadowKindLabel.setDisplayedMnemonic(KeyEvent.VK_UNDEFINED);
180 GridBagConstraints gridBagConstraints71 = new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 6);
181 gridBagConstraints71.fill = GridBagConstraints.BOTH;
182 gridBagConstraints71.ipady = 0;
183 GridBagConstraints gridBagConstraints70 = new GridBagConstraints();
184 gridBagConstraints70.fill = GridBagConstraints.HORIZONTAL;
185 gridBagConstraints70.gridy = 1;
186 gridBagConstraints70.ipadx = 0;
187 gridBagConstraints70.ipady = 0;
188 gridBagConstraints70.weightx = 1.0;
189 gridBagConstraints70.insets = new Insets(0, 0, 0, 0);
190 gridBagConstraints70.gridx = 1;
191 GridBagConstraints gridBagConstraints69 = new GridBagConstraints();
192 gridBagConstraints69.gridx = 0;
193 gridBagConstraints69.ipadx = 0;
194 gridBagConstraints69.ipady = 0;
195 gridBagConstraints69.insets = new Insets(0, 5, 0, 5);
196 gridBagConstraints69.anchor = GridBagConstraints.WEST;
197 gridBagConstraints69.gridy = 1;
198 GridBagConstraints gridBagConstraints68 = new GridBagConstraints();
199 gridBagConstraints68.fill = GridBagConstraints.BOTH;
200 gridBagConstraints68.gridy = 0;
201 gridBagConstraints68.ipady = 0;
202 gridBagConstraints68.weightx = 1.0;
203 gridBagConstraints68.insets = new Insets(0, 0, 0, 0);
204 gridBagConstraints68.gridx = 1;
205 GridBagConstraints gridBagConstraints67 = new GridBagConstraints();
206 gridBagConstraints67.gridx = 0;
207 gridBagConstraints67.ipadx = 0;
208 gridBagConstraints67.ipady = 0;
209 gridBagConstraints67.insets = new Insets(0, 5, 0, 5);
210 gridBagConstraints67.anchor = GridBagConstraints.WEST;
211 gridBagConstraints67.gridy = 0;
212 GridBagConstraints gridBagConstraints66 = new GridBagConstraints();
213 gridBagConstraints66.gridx = 0;
214 gridBagConstraints66.insets = new Insets(0, 5, 5, 5);
215 gridBagConstraints66.anchor = GridBagConstraints.WEST;
216 gridBagConstraints66.gridwidth = 2;
217 gridBagConstraints66.gridy = 1;
218 ViewCommentLabel = new JLabel();
219 ViewCommentLabel.setText("
\95\
\8e¦
\83R
\83\81\83\93\83g
\90\94");
220 GridBagConstraints gridBagConstraints65 = new GridBagConstraints();
221 gridBagConstraints65.fill = GridBagConstraints.HORIZONTAL;
222 gridBagConstraints65.gridy = 1;
223 gridBagConstraints65.weightx = 1.0;
224 gridBagConstraints65.gridwidth = 6;
225 gridBagConstraints65.insets = new Insets(0, 5, 5, 5);
226 gridBagConstraints65.gridx = 3;
227 GridBagConstraints gridBagConstraints64 = new GridBagConstraints(1, 1,
228 1, 1, 0.0, 0.0, GridBagConstraints.CENTER,
229 GridBagConstraints.BOTH, new Insets(0, 0, 0, 5), 0, 0);
230 gridBagConstraints64.gridy = 3;
231 gridBagConstraints64.fill = GridBagConstraints.HORIZONTAL;
232 gridBagConstraints64.gridx = 4;
233 GridBagConstraints gridBagConstraints63 = new GridBagConstraints(0, 4,
234 2, 1, 1.0, 0.0, GridBagConstraints.CENTER,
235 GridBagConstraints.HORIZONTAL, new Insets(0, 5, 0, 5), 0, 0);
236 gridBagConstraints63.gridy = 7;
237 gridBagConstraints63.gridx = 0;
238 gridBagConstraints63.gridwidth = 5;
239 GridBagConstraints gridBagConstraints62 = new GridBagConstraints(0, 3,
240 2, 1, 1.0, 0.0, GridBagConstraints.CENTER,
241 GridBagConstraints.BOTH, new Insets(0, 5, 5, 5), 0, 0);
242 gridBagConstraints62.gridy = 5;
243 gridBagConstraints62.gridx = 1;
244 gridBagConstraints62.fill = GridBagConstraints.HORIZONTAL;
245 gridBagConstraints62.insets = new Insets(0, 0, 5, 5);
246 gridBagConstraints62.gridwidth = 4;
247 GridBagConstraints gridBagConstraints61 = new GridBagConstraints(0, 2,
248 1, 1, 0.0, 0.0, GridBagConstraints.CENTER,
249 GridBagConstraints.BOTH, new Insets(5, 5, 5, 5), 0, 0);
250 gridBagConstraints61.gridy = 5;
251 gridBagConstraints61.gridx = 0;
252 gridBagConstraints61.fill = GridBagConstraints.VERTICAL;
253 gridBagConstraints61.anchor = GridBagConstraints.WEST;
254 gridBagConstraints61.gridwidth = 1;
255 GridBagConstraints gridBagConstraints60 = new GridBagConstraints(0, 1,
256 1, 1, 1.0, 0.0, GridBagConstraints.CENTER,
257 GridBagConstraints.BOTH, new Insets(0, 5, 0, 5), 0, 0);
258 gridBagConstraints60.gridy = 3;
259 gridBagConstraints60.gridx = 1;
260 gridBagConstraints60.fill = GridBagConstraints.HORIZONTAL;
261 gridBagConstraints60.insets = new Insets(0, 0, 0, 5);
262 gridBagConstraints60.gridwidth = 3;
263 GridBagConstraints gridBagConstraints59 = new GridBagConstraints(0, 0,
264 2, 1, 1.0, 0.0, GridBagConstraints.CENTER,
265 GridBagConstraints.HORIZONTAL, new Insets(0, 5, 5, 5), 0, 0);
266 gridBagConstraints59.gridy = 3;
267 gridBagConstraints59.insets = new Insets(5, 5, 5, 5);
268 gridBagConstraints59.gridx = 0;
269 gridBagConstraints59.fill = GridBagConstraints.NONE;
270 gridBagConstraints59.anchor = GridBagConstraints.WEST;
271 gridBagConstraints59.weightx = 0.0;
272 gridBagConstraints59.gridwidth = 1;
273 GridBagConstraints gridBagConstraints58 = new GridBagConstraints();
274 gridBagConstraints58.gridx = 0;
275 gridBagConstraints58.anchor = GridBagConstraints.WEST;
276 gridBagConstraints58.insets = new Insets(0, 5, 5, 5);
277 gridBagConstraints58.gridwidth = 5;
278 gridBagConstraints58.weightx = 1.0;
279 gridBagConstraints58.fill = GridBagConstraints.HORIZONTAL;
280 gridBagConstraints58.gridy = 0;
281 GridBagConstraints gridBagConstraints57 = new GridBagConstraints();
282 gridBagConstraints57.fill = GridBagConstraints.BOTH;
283 gridBagConstraints57.gridy = 2;
284 gridBagConstraints57.weightx = 1.0;
285 gridBagConstraints57.insets = new Insets(0, 0, 5, 5);
286 gridBagConstraints57.gridx = 1;
287 GridBagConstraints gridBagConstraints56 = new GridBagConstraints();
288 gridBagConstraints56.gridx = 0;
289 gridBagConstraints56.insets = new Insets(0, 5, 5, 5);
290 gridBagConstraints56.anchor = GridBagConstraints.WEST;
291 gridBagConstraints56.gridy = 2;
292 ExtOptionLabel = new JLabel();
293 ExtOptionLabel.setText("
\8fo
\97Í
\93®
\89æ
\82Ì
\8ag
\92£
\8eq");
294 GridBagConstraints gridBagConstraints55 = new GridBagConstraints();
295 gridBagConstraints55.gridx = 0;
296 gridBagConstraints55.fill = GridBagConstraints.HORIZONTAL;
297 gridBagConstraints55.weightx = 1.0;
298 gridBagConstraints55.gridwidth = 2;
299 gridBagConstraints55.gridy = 1;
300 GridBagConstraints gridBagConstraints54 = new GridBagConstraints(0, 2,
301 2, 1, 1.0, 0.0, GridBagConstraints.CENTER,
302 GridBagConstraints.BOTH, new Insets(5, 5, 5, 5), 0, 0);
303 gridBagConstraints54.gridwidth = 3;
304 GridBagConstraints gridBagConstraints53 = new GridBagConstraints(1, 3,
305 2, 1, 1.0, 0.0, GridBagConstraints.CENTER,
306 GridBagConstraints.BOTH, new Insets(0, 0, 5, 5), 0, 0);
307 gridBagConstraints53.gridy = 5;
308 gridBagConstraints53.gridheight = 1;
309 gridBagConstraints53.weightx = 1.0;
310 gridBagConstraints53.gridwidth = 1;
311 GridBagConstraints gridBagConstraints52 = new GridBagConstraints(2, 2,
312 1, 1, 1.0, 0.0, GridBagConstraints.CENTER,
313 GridBagConstraints.BOTH, new Insets(0, 0, 5, 5), 0, 0);
314 gridBagConstraints52.gridy = 4;
315 gridBagConstraints52.gridwidth = 1;
316 gridBagConstraints52.weightx = 1.0;
317 gridBagConstraints52.gridx = 1;
318 GridBagConstraints gridBagConstraints51 = new GridBagConstraints(2, 1,
319 1, 1, 1.0, 0.0, GridBagConstraints.CENTER,
320 GridBagConstraints.BOTH, new Insets(0, 0, 5, 5), 0, 0);
321 gridBagConstraints51.gridy = 3;
322 gridBagConstraints51.gridwidth = 1;
323 gridBagConstraints51.weightx = 1.0;
324 gridBagConstraints51.gridx = 1;
325 GridBagConstraints gridBagConstraints50 = new GridBagConstraints(0, 3,
326 1, 1, 0.0, 0.0, GridBagConstraints.WEST,
327 GridBagConstraints.BOTH, new Insets(0, 5, 5, 5), 0, 0);
328 gridBagConstraints50.gridy = 5;
329 GridBagConstraints gridBagConstraints49 = new GridBagConstraints(0, 2,
330 2, 1, 0.0, 0.0, GridBagConstraints.WEST,
331 GridBagConstraints.BOTH, new Insets(0, 5, 5, 5), 0, 0);
332 gridBagConstraints49.gridy = 4;
333 gridBagConstraints49.gridwidth = 1;
334 GridBagConstraints gridBagConstraints48 = new GridBagConstraints(0, 1,
335 1, 1, 0.0, 0.0, GridBagConstraints.WEST,
336 GridBagConstraints.BOTH, new Insets(0, 5, 5, 5), 0, 0);
337 gridBagConstraints48.gridy = 3;
338 GridBagConstraints gridBagConstraints45 = new GridBagConstraints(3, 5,
339 1, 1, 0.0, 0.0, GridBagConstraints.CENTER,
340 GridBagConstraints.NONE, new Insets(0, 0, 5, 5), 0, 0);
341 gridBagConstraints45.gridy = 7;
342 GridBagConstraints gridBagConstraints44 = new GridBagConstraints(3, 3,
343 1, 1, 0.0, 0.0, GridBagConstraints.CENTER,
344 GridBagConstraints.NONE, new Insets(0, 0, 0, 5), 0, 0);
345 gridBagConstraints44.gridy = 5;
346 GridBagConstraints gridBagConstraints43 = new GridBagConstraints(0, 5,
347 3, 1, 1.0, 0.0, GridBagConstraints.CENTER,
348 GridBagConstraints.BOTH, new Insets(3, 50, 5, 5), 0, 0);
349 gridBagConstraints43.gridy = 7;
350 GridBagConstraints gridBagConstraints42 = new GridBagConstraints(0, 4,
351 4, 1, 1.0, 0.0, GridBagConstraints.WEST,
352 GridBagConstraints.NONE, new Insets(0, 25, 0, 5), 0, 0);
353 gridBagConstraints42.gridy = 6;
354 GridBagConstraints gridBagConstraints41 = new GridBagConstraints(0, 3,
355 3, 1, 0.0, 0.0, GridBagConstraints.CENTER,
356 GridBagConstraints.BOTH, new Insets(0, 50, 0, 5), 0, 0);
357 gridBagConstraints41.gridy = 5;
358 GridBagConstraints gridBagConstraints40 = new GridBagConstraints(0, 2,
359 4, 1, 1.0, 0.0, GridBagConstraints.WEST,
360 GridBagConstraints.NONE, new Insets(0, 25, 0, 5), 0, 0);
361 gridBagConstraints40.gridy = 3;
362 GridBagConstraints gridBagConstraints39 = new GridBagConstraints();
363 gridBagConstraints39.gridx = 0;
364 gridBagConstraints39.insets = new Insets(0, 50, 0, 0);
365 gridBagConstraints39.fill = GridBagConstraints.HORIZONTAL;
366 gridBagConstraints39.weightx = 1.0;
367 gridBagConstraints39.gridwidth = 4;
368 gridBagConstraints39.gridy = 4;
369 GridBagConstraints gridBagConstraints35 = new GridBagConstraints();
370 gridBagConstraints35.fill = GridBagConstraints.BOTH;
371 gridBagConstraints35.weighty = 1.0;
372 gridBagConstraints35.weightx = 1.0;
373 GridBagConstraints gridBagConstraints33 = new GridBagConstraints();
374 gridBagConstraints33.gridx = 0;
375 gridBagConstraints33.fill = GridBagConstraints.HORIZONTAL;
376 gridBagConstraints33.weightx = 1.0;
377 gridBagConstraints33.insets = new Insets(0, 5, 5, 5);
378 gridBagConstraints33.gridwidth = 5;
379 gridBagConstraints33.gridy = 9;
380 GridBagConstraints gridBagConstraints26 = new GridBagConstraints();
381 gridBagConstraints26.gridx = 0;
382 gridBagConstraints26.gridwidth = 4;
383 gridBagConstraints26.insets = new Insets(0, 25, 0, 5);
384 gridBagConstraints26.weightx = 1.0;
385 gridBagConstraints26.fill = GridBagConstraints.HORIZONTAL;
386 gridBagConstraints26.gridy = 9;
387 GridBagConstraints gridBagConstraints25 = new GridBagConstraints();
388 gridBagConstraints25.gridx = 0;
389 gridBagConstraints25.gridwidth = 4;
390 gridBagConstraints25.fill = GridBagConstraints.HORIZONTAL;
391 gridBagConstraints25.insets = new Insets(0, 25, 0, 5);
392 gridBagConstraints25.weightx = 1.0;
393 gridBagConstraints25.gridy = 8;
394 GridBagConstraints gridBagConstraints24 = new GridBagConstraints(3, 10,
395 1, 1, 0.0, 0.0, GridBagConstraints.CENTER,
396 GridBagConstraints.NONE, new Insets(0, 0, 5, 5), 0, 0);
397 gridBagConstraints24.gridy = 14;
398 GridBagConstraints gridBagConstraints23 = new GridBagConstraints(3, 8,
399 1, 1, 0.0, 0.0, GridBagConstraints.CENTER,
400 GridBagConstraints.NONE, new Insets(0, 0, 0, 5), 0, 0);
401 gridBagConstraints23.gridy = 12;
402 GridBagConstraints gridBagConstraints22 = new GridBagConstraints(1, 6,
403 4, 1, 1.0, 0.0, GridBagConstraints.CENTER,
404 GridBagConstraints.BOTH, new Insets(0, 0, 0, 5), 0, 0);
405 gridBagConstraints22.gridy = 10;
406 GridBagConstraints gridBagConstraints21 = new GridBagConstraints(0, 10,
407 3, 1, 1.0, 0.0, GridBagConstraints.CENTER,
408 GridBagConstraints.BOTH, new Insets(0, 50, 5, 5), 0, 0);
409 gridBagConstraints21.gridy = 14;
410 GridBagConstraints gridBagConstraints20 = new GridBagConstraints(0, 9,
411 4, 1, 1.0, 0.0, GridBagConstraints.WEST,
412 GridBagConstraints.HORIZONTAL, new Insets(0, 25, 0, 5), 0, 0);
413 gridBagConstraints20.gridy = 13;
414 GridBagConstraints gridBagConstraints19 = new GridBagConstraints(0, 8,
415 3, 1, 1.0, 0.0, GridBagConstraints.CENTER,
416 GridBagConstraints.BOTH, new Insets(0, 50, 0, 5), 0, 0);
417 gridBagConstraints19.gridy = 12;
418 GridBagConstraints gridBagConstraints18 = new GridBagConstraints(0, 7,
419 4, 1, 1.0, 0.0, GridBagConstraints.CENTER,
420 GridBagConstraints.HORIZONTAL, new Insets(0, 25, 0, 5), 0, 0);
421 gridBagConstraints18.gridy = 11;
422 GridBagConstraints gridBagConstraints17 = new GridBagConstraints(0, 6,
423 1, 1, 0.0, 0.0, GridBagConstraints.CENTER,
424 GridBagConstraints.BOTH, new Insets(0, 5, 0, 5), 0, 0);
425 gridBagConstraints17.gridy = 10;
426 gridBagConstraints17.insets = new Insets(0, 50, 0, 5);
427 GridBagConstraints gridBagConstraints16 = new GridBagConstraints(0, 5,
428 4, 1, 1.0, 0.0, GridBagConstraints.WEST,
429 GridBagConstraints.BOTH, new Insets(5, 5, 5, 5), 0, 0);
430 gridBagConstraints16.gridy = 7;
431 GridBagConstraints gridBagConstraints14 = new GridBagConstraints();
432 gridBagConstraints14.gridx = 0;
433 gridBagConstraints14.anchor = GridBagConstraints.WEST;
434 gridBagConstraints14.fill = GridBagConstraints.HORIZONTAL;
435 gridBagConstraints14.weightx = 1.0;
436 gridBagConstraints14.gridwidth = 5;
437 gridBagConstraints14.insets = new Insets(0, 5, 0, 5);
438 gridBagConstraints14.gridy = 8;
439 GridBagConstraints gridBagConstraints7 = new GridBagConstraints(0, 0,
440 1, 1, 1.0, 1.0, GridBagConstraints.NORTH,
441 GridBagConstraints.HORIZONTAL, new Insets(0, 5, 0, 5), 0, 0);
442 gridBagConstraints7.weighty = 0.0;
443 GridBagConstraints gridBagConstraints6 = new GridBagConstraints();
444 gridBagConstraints6.gridx = 0;
445 gridBagConstraints6.weighty = 1.0;
446 gridBagConstraints6.weightx = 1.0;
447 gridBagConstraints6.insets = new Insets(0, 5, 0, 5);
448 gridBagConstraints6.fill = GridBagConstraints.HORIZONTAL;
449 gridBagConstraints6.anchor = GridBagConstraints.NORTH;
450 gridBagConstraints6.gridy = 1;
451 GridBagConstraints gridBagConstraints1 = new GridBagConstraints(0, 1,
452 1, 1, 1.0, 0.0, GridBagConstraints.CENTER,
453 GridBagConstraints.HORIZONTAL, new Insets(0, 5, 0, 5), 0, 0);
454 gridBagConstraints1.fill = GridBagConstraints.HORIZONTAL;
455 gridBagConstraints1.anchor = GridBagConstraints.NORTH;
456 gridBagConstraints1.weighty = 1.0;
457 this.setIconImage(WinIcon);
458 contentPane = (JPanel) this.getContentPane();
459 contentPane.setLayout(borderLayout1);
460 setSize(new Dimension(400, 560));
461 setTitle("
\82³
\82«
\82ã
\82Î
\82·");
462 this.addWindowListener(new MainFrame_this_windowAdapter(this));
463 statusBar.setText(" ");
464 jMenuFile.setText("
\83t
\83@
\83C
\83\8b");
465 jMenuFileExit.setText("
\8fI
\97¹");
467 .addActionListener(new MainFrame_jMenuFileExit_ActionAdapter(
469 jMenuHelp.setText("
\83w
\83\8b\83v");
470 jMenuHelpAbout.setText("
\83o
\81[
\83W
\83\87\83\93\8fî
\95ñ");
472 .addActionListener(new MainFrame_jMenuHelpAbout_ActionAdapter(
474 VideoInfoPanel.setLayout(gridBagLayout1);
475 VideoID_TextField.setText("http://www.nicovideo.jp/watch/");
476 DoButton.setText(DoButtonDefString);
477 DoButton.addActionListener(new MainFrame_DoButton_actionAdapter(this));
478 SavingInfoTabPanel.setLayout(gridBagLayout2);
479 UserInfoPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory
480 .createEtchedBorder(), "
\83\86\81[
\83U
\90Ý
\92è"));
481 UserInfoPanel.setLayout(gridBagLayout3);
482 MailAddrLabel.setText("
\83\81\81[
\83\8b\83A
\83h
\83\8c\83X");
483 PasswordLabel.setText("
\83p
\83X
\83\8f\81[
\83h");
484 CommentSaveInfoPanel.setBorder(BorderFactory.createTitledBorder(
485 BorderFactory.createEtchedBorder(EtchedBorder.LOWERED),
486 "
\83R
\83\81\83\93\83g
\95Û
\91¶
\90Ý
\92è", TitledBorder.LEADING, TitledBorder.TOP, new Font(
487 "MS UI Gothic", Font.PLAIN, 12), Color.black));
488 CommentSaveInfoPanel.setLayout(gridBagLayout4);
489 SavingVideoCheckBox.setText("
\93®
\89æ
\82ð
\83_
\83E
\83\93\83\8d\81[
\83h
\82·
\82é");
490 ShowSavingVideoFileDialogButton.setText("
\8eQ
\8fÆ");
491 ShowSavingVideoFileDialogButton
492 .addActionListener(new MainFrame_ShowSavingVideoDialogButton_actionAdapter(
494 SavingCommentCheckBox.setText("
\83R
\83\81\83\93\83g
\82ð
\83_
\83E
\83\93\83\8d\81[
\83h
\82·
\82é");
495 ShowSavingCommentFileDialogButton.setText("
\8eQ
\8fÆ");
496 ShowSavingCommentFileDialogButton
497 .addActionListener(new MainFrame_ShowSavingCommentDialogButton_actionAdapter(
499 ConvertedVideoSavingInfoPanel.setBorder(BorderFactory
500 .createTitledBorder(BorderFactory.createEtchedBorder(),
501 "
\83R
\83\81\83\93\83g
\95t
\82«
\93®
\89æ
\95Û
\91¶
\90Ý
\92è"));
502 ConvertedVideoSavingInfoPanel.setLayout(gridBagLayout5);
503 SavingConvertedVideoCheckBox.setText("
\83R
\83\81\83\93\83g
\95t
\82«
\93®
\89æ
\82É
\95Ï
\8a·
\82·
\82é");
504 ShowSavingConvertedVideoFileDialogButton.setText("
\8eQ
\8fÆ");
505 ShowSavingConvertedVideoFileDialogButton
506 .addActionListener(new MainFrame_ShowSavingConvertedVideoDialogButton_actionAdapter(
508 FFMpegTabPanel.setLayout(gridBagLayout6);
509 PathSettingPanel.setBorder(BorderFactory.createTitledBorder(
510 BorderFactory.createEtchedBorder(), "
\83v
\83\8d\83O
\83\89\83\80\82Ì
\88Ê
\92u
\82Ì
\90Ý
\92è"));
511 PathSettingPanel.setLayout(gridBagLayout7);
512 FFmpegPathLabel.setText("FFmpeg");
513 SettingFFmpegPathButton.setText("
\8eQ
\8fÆ");
514 SettingFFmpegPathButton
515 .addActionListener(new MainFrame_SettingFFmpegPathButton_actionAdapter(
517 VhookPathLabel.setText("
\8ag
\92£vhook
\83\89\83C
\83u
\83\89\83\8a");
518 SettingVhookPathButton.setText("
\8eQ
\8fÆ");
519 SettingVhookPathButton
520 .addActionListener(new MainFrame_SettingVhookPathButton_actionAdapter(
522 VhookSettingPanel.setLayout(gridBagLayout8);
523 VhookSettingPanel.setBorder(BorderFactory.createTitledBorder(
524 BorderFactory.createEtchedBorder(), "
\8ag
\92£vhook
\83\89\83C
\83u
\83\89\83\8a\82Ì
\90Ý
\92è"));
525 FFmpegSettingPanel.setBorder(BorderFactory.createTitledBorder(
526 BorderFactory.createEtchedBorder(), "FFmpeg
\82Ì
\90Ý
\92è"));
527 FFmpegSettingPanel.setLayout(gridBagLayout9);
528 FontPathLabel.setText("
\83t
\83H
\83\93\83g
\83p
\83X");
529 SettingFontPathButton.setText("
\8eQ
\8fÆ");
530 SettingFontPathButton
531 .addActionListener(new MainFrame_SettingFontPathButton_actionAdapter(
533 ShowConvVideoCheckBox.setText("
\95Ï
\8a·
\92\86\82Ì
\89æ
\91\9c\82ð
\95\
\8e¦
\82·
\82é");
534 InLabel.setText("
\93ü
\97Í
\83I
\83v
\83V
\83\87\83\93");
535 OutLabel.setText("
\8fo
\97Í
\83I
\83v
\83V
\83\87\83\93");
536 CommentNumLabel.setText("
\8eæ
\93¾
\83R
\83\81\83\93\83g
\90\94");
537 MainOptionLabel.setText("
\83\81\83C
\83\93\83I
\83v
\83V
\83\87\83\93");
538 FontIndexLabel.setText("
\83t
\83H
\83\93\83g
\94Ô
\8d\86");
539 VideoID_Label.setText("URL/ID");
540 WayBackLabel.setText("
\89ß
\8b\8e\83\8d\83O");
541 OpPanel.setLayout(new GridBagLayout());
542 Conv_SaveFileRadioButton.setText("
\95Û
\91¶
\82·
\82é
\83t
\83@
\83C
\83\8b\96¼
\82ð
\8ew
\92è
\82·
\82é");
543 Conv_SaveFolderRadioButton.setText("
\95Û
\91¶
\82·
\82é
\83t
\83H
\83\8b\83_
\82ð
\8ew
\92è
\82µ
\81A
\83t
\83@
\83C
\83\8b\96¼
\82Í
\8e©
\93®
\82Å
\8c\88\92è
\82·
\82é");
544 ShowSavingConvertedVideoFolderDialogButton.setText("
\8eQ
\8fÆ");
545 ShowSavingConvertedVideoFolderDialogButton
546 .addActionListener(new MainFrame_ShowSavingConvertedVideoFolderDialogButton_actionAdapter(
548 ShowSavingVideoFolderDialogButton.setText("
\8eQ
\8fÆ");
549 ShowSavingVideoFolderDialogButton
550 .addActionListener(new MainFrame_ShowSavingVideoFolderDialogButton_actionAdapter(
552 Video_SaveFolderRadioButton.setText("
\95Û
\91¶
\82·
\82é
\83t
\83H
\83\8b\83_
\82ð
\8ew
\92è
\82µ
\81A
\83t
\83@
\83C
\83\8b\96¼
\82Í
\8e©
\93®
\82Å
\8c\88\92è
\82·
\82é");
553 Video_SaveFileRadioButton.setText("
\95Û
\91¶
\82·
\82é
\83t
\83@
\83C
\83\8b\96¼
\82ð
\8ew
\92è
\82·
\82é");
554 Comment_SaveFileRadioButton.setText("
\95Û
\91¶
\82·
\82é
\83t
\83@
\83C
\83\8b\96¼
\82ð
\8ew
\92è
\82·
\82é");
555 ShowSavingCommentFolderDialogButton.setText("
\8eQ
\8fÆ");
556 ShowSavingCommentFolderDialogButton
557 .addActionListener(new MainFrame_ShowSavingCommentFolderDialogButton_actionAdapter(
559 Comment_SaveFolderRadioButton.setText("
\95Û
\91¶
\82·
\82é
\83t
\83H
\83\8b\83_
\82ð
\8ew
\92è
\82µ
\81A
\83t
\83@
\83C
\83\8b\96¼
\82Í
\8e©
\93®
\82Å
\8c\88\92è
\82·
\82é");
560 BasicInfoTabPanel.setLayout(gridBagLayout12);
561 jMenuBar1.add(jMenuFile);
562 jMenuFile.add(jMenuFileExit);
563 jMenuBar1.add(jMenuHelp);
564 jMenuHelp.add(jMenuHelpAbout);
565 setJMenuBar(jMenuBar1);
566 /*
\83r
\83f
\83I
\83O
\83\8b\81[
\83v */
567 VideoSaveButtonGroup.add(Video_SaveFileRadioButton);
568 VideoSaveButtonGroup.add(Video_SaveFolderRadioButton);
570 CommentSaveButtonGroup.add(Comment_SaveFileRadioButton);
571 CommentSaveButtonGroup.add(Comment_SaveFolderRadioButton);
573 ConvSaveButtonGroup.add(Conv_SaveFileRadioButton);
574 ConvSaveButtonGroup.add(Conv_SaveFolderRadioButton);
576 contentPane.add(statusBar, BorderLayout.SOUTH);
577 contentPane.add(MainTabbedPane, java.awt.BorderLayout.CENTER);
578 contentPane.add(VideoInfoPanel, java.awt.BorderLayout.NORTH);
579 UserInfoPanel.add(PasswordField, new GridBagConstraints(1, 1, 1, 1,
580 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH,
581 new Insets(0, 5, 5, 5), 0, 0));
582 UserInfoPanel.add(MailAddrField, new GridBagConstraints(1, 0, 1, 1,
583 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH,
584 new Insets(0, 5, 5, 5), 0, 0));
585 UserInfoPanel.add(PasswordLabel, new GridBagConstraints(0, 1, 1, 1,
586 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE,
587 new Insets(0, 5, 5, 0), 0, 0));
588 UserInfoPanel.add(MailAddrLabel, new GridBagConstraints(0, 0, 1, 1,
589 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE,
590 new Insets(0, 5, 5, 0), 0, 0));
591 PathSettingPanel.add(FFmpegPathField, new GridBagConstraints(0, 1, 1,
592 1, 1.0, 0.0, GridBagConstraints.CENTER,
593 GridBagConstraints.BOTH, new Insets(0, 5, 0, 5), 0, 0));
594 PathSettingPanel.add(SettingFFmpegPathButton, gridBagConstraints74);
595 PathSettingPanel.add(FFmpegPathLabel, new GridBagConstraints(0, 0, 2,
596 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE,
597 new Insets(0, 5, 5, 5), 0, 0));
598 PathSettingPanel.add(VhookPathField, new GridBagConstraints(0, 3, 1, 1,
599 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH,
600 new Insets(0, 5, 5, 5), 0, 0));
601 PathSettingPanel.add(SettingVhookPathButton, new GridBagConstraints(1,
602 3, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER,
603 GridBagConstraints.BOTH, new Insets(0, 0, 5, 5), 0, 0));
604 PathSettingPanel.add(VhookPathLabel, gridBagConstraints54);
605 FFmpegSettingPanel.add(CommandLineOutOptionField, gridBagConstraints53);
606 FFmpegSettingPanel.add(CommandLineInOptionField, gridBagConstraints52);
607 FFmpegSettingPanel.add(MainOptionField, gridBagConstraints51);
608 FFmpegSettingPanel.add(MainOptionLabel, gridBagConstraints48);
609 FFmpegSettingPanel.add(InLabel, gridBagConstraints49);
610 FFmpegSettingPanel.add(OutLabel, gridBagConstraints50);
611 FFmpegSettingPanel.add(getFFmpegOptionComboBoxPanel(),
612 gridBagConstraints55);
613 FFmpegSettingPanel.add(ExtOptionLabel, gridBagConstraints56);
614 FFmpegSettingPanel.add(getExtOptionField(), gridBagConstraints57);
615 VideoInfoPanel.add(DoButton, gridBagConstraints71);
616 VideoInfoPanel.add(OpPanel, new GridBagConstraints(0, 0, 1, 1, 1.0,
617 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH,
618 new Insets(0, 0, 0, 0), 0, 0));
619 OpPanel.add(VideoID_Label, gridBagConstraints67);
620 OpPanel.add(VideoID_TextField, gridBagConstraints68);
621 OpPanel.add(WayBackLabel, gridBagConstraints69);
622 OpPanel.add(WayBackField, gridBagConstraints70);
623 ConvertedVideoSavingInfoPanel.add(SavingConvertedVideoCheckBox,
624 new GridBagConstraints(0, 0, 3, 1, 1.0, 0.0,
625 GridBagConstraints.CENTER, GridBagConstraints.BOTH,
626 new Insets(0, 5, 0, 5), 0, 0));
627 MainTabbedPane.add(BasicInfoTabPanel, "
\8aî
\96{
\90Ý
\92è");
628 MainTabbedPane.add(SavingInfoTabPanel, "
\95Û
\91¶
\90Ý
\92è");
629 MainTabbedPane.add(FFMpegTabPanel, "
\93®
\89æ
\90Ý
\92è");
630 MainTabbedPane.addTab("
\95Ï
\8a·
\90Ý
\92è", null, getConvertingSettingPanel(), null);
631 SavingInfoTabPanel.add(getSaveInfoTabPaneEach(), gridBagConstraints35);
632 BasicInfoTabPanel.add(UserInfoPanel, gridBagConstraints7);
633 BasicInfoTabPanel.add(getProxyInfoPanel(), gridBagConstraints6);
634 VhookSettingPanel.add(FontPathLabel, gridBagConstraints59);
635 VhookSettingPanel.add(ShowConvVideoCheckBox, gridBagConstraints63);
636 VhookSettingPanel.add(FontPathField, gridBagConstraints60);
637 VhookSettingPanel.add(FontIndexField, gridBagConstraints62);
638 VhookSettingPanel.add(FontIndexLabel, gridBagConstraints61);
639 VhookSettingPanel.add(SettingFontPathButton, gridBagConstraints64);
640 VhookSettingPanel.add(getFixFontSizeCheckBox(), gridBagConstraints14);
641 VhookSettingPanel.add(getOpaqueCommentCheckBox(), gridBagConstraints33);
642 VhookSettingPanel.add(getNotUseVhookCheckBox(), gridBagConstraints58);
643 VhookSettingPanel.add(getViewCommentField(), gridBagConstraints65);
644 VhookSettingPanel.add(ViewCommentLabel, gridBagConstraints66);
645 VhookSettingPanel.add(ShadowKindLabel, gridBagConstraints72);
646 VhookSettingPanel.add(getShadowComboBox(), gridBagConstraints73);
647 CommentSaveInfoPanel.add(CommentNumLabel, gridBagConstraints17);
648 CommentSaveInfoPanel.add(SavingCommentCheckBox, gridBagConstraints16);
649 ConvertedVideoSavingInfoPanel.add(Conv_SaveFolderRadioButton,
650 gridBagConstraints40);
651 CommentSaveInfoPanel.add(CommentNumField, gridBagConstraints22);
652 CommentSaveInfoPanel.add(Comment_SaveFolderRadioButton,
653 gridBagConstraints18);
654 CommentSaveInfoPanel.add(Comment_SaveFileRadioButton,
655 gridBagConstraints20);
656 CommentSaveInfoPanel.add(CommentSavedFolderField, gridBagConstraints19);
657 CommentSaveInfoPanel.add(ShowSavingCommentFolderDialogButton,
658 gridBagConstraints23);
659 CommentSaveInfoPanel.add(CommentSavedFileField, gridBagConstraints21);
660 CommentSaveInfoPanel.add(ShowSavingCommentFileDialogButton,
661 gridBagConstraints24);
662 CommentSaveInfoPanel.add(getDelCommentCheckBox(), gridBagConstraints25);
663 CommentSaveInfoPanel.add(getFixCommentNumCheckBox(),
664 gridBagConstraints26);
665 ConvertedVideoSavingInfoPanel.add(Conv_SaveFileRadioButton,
666 gridBagConstraints42);
667 ConvertedVideoSavingInfoPanel.add(ConvertedVideoSavedFolderField,
668 gridBagConstraints41);
669 ConvertedVideoSavingInfoPanel.add(
670 ShowSavingConvertedVideoFolderDialogButton,
671 gridBagConstraints44);
672 ConvertedVideoSavingInfoPanel.add(ConvertedVideoSavedFileField,
673 gridBagConstraints43);
674 ConvertedVideoSavingInfoPanel.add(
675 ShowSavingConvertedVideoFileDialogButton, gridBagConstraints45);
676 ConvertedVideoSavingInfoPanel.add(getNotAddVideoID_ConvVideoCheckBox(),
677 gridBagConstraints39);
678 FFMpegTabPanel.add(PathSettingPanel, new GridBagConstraints(0, 0, 1, 1,
679 1.0, 0.0, GridBagConstraints.NORTHEAST,
680 GridBagConstraints.HORIZONTAL, new Insets(0, 5, 0, 5), 0, 0));
681 FFMpegTabPanel.add(FFmpegSettingPanel, gridBagConstraints1);
684 private void setPopup() {
685 MainOptionField.addMouseListener(new PopupRightClick(
686 this.MainOptionField));
687 CommandLineInOptionField.addMouseListener(new PopupRightClick(
688 this.CommandLineInOptionField));
689 CommandLineOutOptionField.addMouseListener(new PopupRightClick(
690 this.CommandLineOutOptionField));
691 CommentNumField.addMouseListener(new PopupRightClick(
692 this.CommentNumField));
694 CommentSavedFileField.addMouseListener(new PopupRightClick(
695 this.CommentSavedFileField));
696 CommentSavedFolderField.addMouseListener(new PopupRightClick(
697 this.CommentSavedFolderField));
699 ConvertedVideoSavedFileField.addMouseListener(new PopupRightClick(
700 this.ConvertedVideoSavedFileField));
701 ConvertedVideoSavedFolderField.addMouseListener(new PopupRightClick(
702 this.ConvertedVideoSavedFolderField));
704 VideoSavedFileField.addMouseListener(new PopupRightClick(
705 this.VideoSavedFileField));
706 VideoSavedFolderField.addMouseListener(new PopupRightClick(
707 this.VideoSavedFolderField));
709 FFmpegPathField.addMouseListener(new PopupRightClick(
710 this.FFmpegPathField));
712 .addMouseListener(new PopupRightClick(this.VhookPathField));
713 VideoID_TextField.addMouseListener(new PopupRightClick(
714 this.VideoID_TextField));
715 ViewCommentField.addMouseListener(new PopupRightClick(
716 this.ViewCommentField));
717 FontPathField.addMouseListener(new PopupRightClick(this.FontPathField));
718 MailAddrField.addMouseListener(new PopupRightClick(this.MailAddrField));
719 PasswordField.addMouseListener(new PopupRightClick(this.PasswordField));
720 WayBackField.addMouseListener(new PopupRightClick(this.WayBackField));
723 .addMouseListener(new PopupRightClick(this.ProxyTextField));
724 ProxyPortTextField.addMouseListener(new PopupRightClick(
725 this.ProxyPortTextField));
728 .addMouseListener(new PopupRightClick(this.FontIndexField));
730 NGWordTextField.addMouseListener(new PopupRightClick(
731 this.NGWordTextField));
732 NGIDTextField.addMouseListener(new PopupRightClick(this.NGIDTextField));
735 private void setDropTarget() {
736 addTarget(VideoSavedFileField, false);
737 addTarget(VideoSavedFolderField, true);
739 addTarget(CommentSavedFileField, false);
740 addTarget(CommentSavedFolderField, true);
742 addTarget(ConvertedVideoSavedFileField, false);
743 addTarget(ConvertedVideoSavedFolderField, true);
745 addTarget(FFmpegPathField, false);
746 addTarget(VhookPathField, false);
747 addTarget(FontPathField, false);
751 private DropTarget addTarget(JTextField c, boolean isDir) {
752 return new DropTarget(c, DnDConstants.ACTION_COPY, new FileDropTarget(
756 private File CurrentDir = new File(".");
758 JPanel PathSettingPanel = new JPanel();
760 JLabel FFmpegPathLabel = new JLabel();
762 GridBagLayout gridBagLayout7 = new GridBagLayout();
764 JTextField FFmpegPathField = new JTextField();
766 JButton SettingFFmpegPathButton = new JButton();
768 JLabel VhookPathLabel = new JLabel();
770 JTextField VhookPathField = new JTextField();
772 JButton SettingVhookPathButton = new JButton();
774 JPanel VhookSettingPanel = new JPanel();
776 GridBagLayout gridBagLayout8 = new GridBagLayout();
778 JPanel FFmpegSettingPanel = new JPanel();
780 GridBagLayout gridBagLayout9 = new GridBagLayout();
782 JLabel FontPathLabel = new JLabel();
784 JTextField FontPathField = new JTextField();
786 JButton SettingFontPathButton = new JButton();
788 JCheckBox ShowConvVideoCheckBox = new JCheckBox();
790 JTextField CommandLineOutOptionField = new JTextField();
792 private void showSaveDialog(String title, JTextField field, boolean isSave,
794 JFileChooser chooser = new JFileChooser(CurrentDir);
795 chooser.setDialogTitle(title);
798 chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
801 code = chooser.showSaveDialog(this);
803 code = chooser.showOpenDialog(this);
805 if (code == JFileChooser.APPROVE_OPTION) {
807 CurrentDir = chooser.getCurrentDirectory();
808 field.setText(CurrentDir.getAbsolutePath());
810 File selected = chooser.getSelectedFile();
811 CurrentDir = chooser.getCurrentDirectory();
812 field.setText(selected.getAbsolutePath());
817 private ConvertingSetting getSetting() {
820 back_comment = Integer.parseInt(CommentNumField.getText());
821 } catch (NumberFormatException ex) {
826 proxy_port = Integer.parseInt(ProxyPortTextField.getText());
827 } catch (NumberFormatException e) {
830 ConvertingSetting setting = new ConvertingSetting(MailAddrField
831 .getText(), new String(PasswordField.getPassword()),
832 SavingVideoCheckBox.isSelected(),
833 VideoSavedFileField.getText(), SavingCommentCheckBox
834 .isSelected(), CommentSavedFileField.getText(),
835 SavingConvertedVideoCheckBox.isSelected(),
836 ConvertedVideoSavedFileField.getText(), ViewCommentField
837 .getText(), FFmpegPathField.getText(), VhookPathField
838 .getText(), ExtOptionField.getText(), MainOptionField
839 .getText(), CommandLineInOptionField.getText(),
840 CommandLineOutOptionField.getText(), Integer
841 .toString(back_comment), FontPathField.getText(),
842 Integer.parseInt(FontIndexField.getText()),
843 ShowConvVideoCheckBox.isSelected(), DelVideoCheckBox
845 Video_SaveFolderRadioButton.isSelected(), VideoSavedFolderField
846 .getText(), DelCommentCheckBox.isSelected(),
847 Comment_SaveFolderRadioButton.isSelected(),
848 CommentSavedFolderField.getText(),
849 NotAddVideoID_ConvVideoCheckBox.isSelected(),
850 Conv_SaveFolderRadioButton.isSelected(),
851 ConvertedVideoSavedFolderField.getText(), NGWordTextField
852 .getText(), NGIDTextField.getText(), UseProxyCheckBox
853 .isSelected(), ProxyTextField.getText(), proxy_port,
854 FixFontSizeCheckBox.isSelected(), FixCommentNumCheckBox
855 .isSelected(), OpaqueCommentCheckBox.isSelected(),
856 FFmpegOptionModel.getSelectedFile(), NotUseVhookCheckBox
857 .isSelected(),ShadowComboBox.getSelectedIndex());
861 private void setSetting(ConvertingSetting setting) {
862 MailAddrField.setText(setting.getMailAddress());
863 PasswordField.setText(setting.getPassword());
864 SavingVideoCheckBox.setSelected(setting.isSaveVideo());
865 VideoSavedFileField.setText(setting.getVideoFile().getPath());
866 SavingCommentCheckBox.setSelected(setting.isSaveComment());
867 CommentSavedFileField.setText(setting.getCommentFile().getPath());
868 SavingConvertedVideoCheckBox.setSelected(setting.isSaveConverted());
869 ConvertedVideoSavedFileField.setText(setting.getConvertedVideoFile()
871 ViewCommentField.setText(setting.getVideoShowNum());
872 FFmpegPathField.setText(setting.getFFmpegPath());
873 VhookPathField.setText(setting.getVhookPath());
874 ExtOptionField.setText(setting.getCmdLineOptionExt());
875 MainOptionField.setText(setting.getCmdLineOptionMain());
876 CommandLineOutOptionField.setText(setting.getCmdLineOptionOut());
877 CommandLineInOptionField.setText(setting.getCmdLineOptionIn());
878 CommentNumField.setText(setting.getBackComment());
879 FontPathField.setText(setting.getFontPath());
880 FontIndexField.setText(setting.getFontIndex());
881 ShowConvVideoCheckBox
882 .setSelected(setting.isVhook_ShowConvertingVideo());
883 VideoSavedFolderField.setText(setting.getVideoFixFileNameFolder()
885 CommentSavedFolderField.setText(setting.getCommentFixFileNameFolder()
887 ConvertedVideoSavedFolderField.setText(setting
888 .getConvFixFileNameFolder().getPath());
889 DelVideoCheckBox.setSelected(setting.isDeleteVideoAfterConverting());
891 .setSelected(setting.isDeleteCommentAfterConverting());
892 NotAddVideoID_ConvVideoCheckBox.setSelected(setting
893 .isNotAddVideoID_Conv());
894 if (setting.isVideoFixFileName()) {
895 Video_SaveFileRadioButton.setSelected(false);
896 Video_SaveFolderRadioButton.setSelected(true);
898 Video_SaveFileRadioButton.setSelected(true);
899 Video_SaveFolderRadioButton.setSelected(false);
901 if (setting.isCommentFixFileName()) {
902 Comment_SaveFileRadioButton.setSelected(false);
903 Comment_SaveFolderRadioButton.setSelected(true);
905 Comment_SaveFileRadioButton.setSelected(true);
906 Comment_SaveFolderRadioButton.setSelected(false);
908 if (setting.isConvFixFileName()) {
909 Conv_SaveFileRadioButton.setSelected(false);
910 Conv_SaveFolderRadioButton.setSelected(true);
912 Conv_SaveFileRadioButton.setSelected(true);
913 Conv_SaveFolderRadioButton.setSelected(false);
915 NGWordTextField.setText(setting.getNG_Word());
916 NGIDTextField.setText(setting.getNG_ID());
917 //
\83v
\83\8d\83L
\83V
\8aÖ
\98A
918 UseProxyCheckBox.setSelected(setting.useProxy());
919 ProxyTextField.setText(setting.getProxy());
920 int proxy_port = setting.getProxyPort();
921 if (proxy_port >= 0 && proxy_port <= 65535) {
922 ProxyPortTextField.setText(Integer.toString(proxy_port));
924 ProxyPortTextField.setText("");
926 FixFontSizeCheckBox.setSelected(setting.isFixFontSize());
927 FixCommentNumCheckBox.setSelected(setting.isFixCommentNum());
928 OpaqueCommentCheckBox.setSelected(setting.isOpaqueComment());
929 FFmpegOptionModel.reload(setting.getOptionFile());
930 NotUseVhookCheckBox.setSelected(setting.isVhookDisabled());
931 ShadowComboBox.setSelectedIndex(setting.getShadowIndex());
935 * [
\83t
\83@
\83C
\83\8b|
\8fI
\97¹]
\83A
\83N
\83V
\83\87\83\93\82ª
\8eÀ
\8ds
\82³
\82ê
\82Ü
\82µ
\82½
\81B
940 void jMenuFileExit_actionPerformed(ActionEvent actionEvent) {
941 ConvertingSetting setting = this.getSetting();
942 ConvertingSetting.saveSetting(setting);
947 * [
\83w
\83\8b\83v|
\83o
\81[
\83W
\83\87\83\93\8fî
\95ñ]
\83A
\83N
\83V
\83\87\83\93\82ª
\8eÀ
\8ds
\82³
\82ê
\82Ü
\82µ
\82½
\81B
952 void jMenuHelpAbout_actionPerformed(ActionEvent actionEvent) {
953 MainFrame_AboutBox dlg = new MainFrame_AboutBox(this);
955 dlg.setLocationRelativeTo(this);
956 dlg.setVisible(true);
959 /*
\95Ï
\8a·
\81E
\95Û
\91¶
\82·
\82é */
960 Converter Converter = null;
962 JTextField CommandLineInOptionField = new JTextField();
964 JLabel InLabel = new JLabel();
966 JLabel OutLabel = new JLabel();
968 JLabel CommentNumLabel = new JLabel();
970 JTextField CommentNumField = new JTextField();
972 JLabel MainOptionLabel = new JLabel();
974 JTextField MainOptionField = new JTextField();
976 JLabel FontIndexLabel = new JLabel();
978 JTextField FontIndexField = new JTextField();
980 JLabel VideoID_Label = new JLabel();
982 JLabel WayBackLabel = new JLabel();
984 JTextField WayBackField = new JTextField();
986 GridBagLayout gridBagLayout10 = new GridBagLayout();
988 GridBagLayout gridBagLayout11 = new GridBagLayout();
990 GridBagLayout gridBagLayout1 = new GridBagLayout();
992 JPanel OpPanel = new JPanel();
994 GridLayout gridLayout1 = new GridLayout();
996 JRadioButton Conv_SaveFileRadioButton = new JRadioButton();
998 JRadioButton Conv_SaveFolderRadioButton = new JRadioButton();
1000 JTextField ConvertedVideoSavedFolderField = new JTextField();
1002 JButton ShowSavingConvertedVideoFolderDialogButton = new JButton();
1004 JTextField VideoSavedFolderField = new JTextField();
1006 JButton ShowSavingVideoFolderDialogButton = new JButton();
1008 JRadioButton Video_SaveFolderRadioButton = new JRadioButton();
1010 JRadioButton Video_SaveFileRadioButton = new JRadioButton();
1012 JRadioButton Comment_SaveFileRadioButton = new JRadioButton();
1014 JTextField CommentSavedFolderField = new JTextField();
1016 JButton ShowSavingCommentFolderDialogButton = new JButton();
1018 JRadioButton Comment_SaveFolderRadioButton = new JRadioButton();
1020 JPanel BasicInfoTabPanel = new JPanel();
1022 GridBagLayout gridBagLayout12 = new GridBagLayout();
1024 private JPanel ConvertingSettingPanel = null;
1026 private JPanel NGWordSettingPanel = null;
1028 private JLabel NGWordLavel = null;
1030 private JTextField NGWordTextField = null;
1032 private JLabel NGIDLabel = null;
1034 private JTextField NGIDTextField = null;
1036 private JPanel ProxyInfoPanel = null;
1038 private JLabel ProxyLabel = null;
1040 private JTextField ProxyTextField = null;
1042 private JLabel ProxyPortLabel = null;
1044 private JTextField ProxyPortTextField = null;
1046 private JCheckBox UseProxyCheckBox = null;
1048 private JCheckBox FixFontSizeCheckBox = null;
1050 private JCheckBox DelVideoCheckBox = null;
1052 private JCheckBox DelCommentCheckBox = null;
1054 private JCheckBox FixCommentNumCheckBox = null;
1056 private JCheckBox OpaqueCommentCheckBox = null;
1058 private JPanel VideoSaveInfoPanel = null;
1060 private JTabbedPane SaveInfoTabPaneEach = null;
1062 private JPanel VideoSavingTabbedPanel = null;
1064 private JPanel ConvertedVideoSavingTabbedPanel = null;
1066 private JCheckBox NotAddVideoID_ConvVideoCheckBox = null;
1068 private JComboBox FFmpegOptionComboBox = null;
1070 private JButton FFmpegOptionReloadButton = null;
1072 private JPanel FFmpegOptionComboBoxPanel = null;
1074 public void DoButton_actionPerformed(ActionEvent e) {
1075 if (Converter == null || Converter.isConverted()) {
1076 Converter = new Converter(VideoID_TextField.getText(), WayBackField
1077 .getText(), this.getSetting(), this.statusBar,
1078 new ConvertStopFlag(this.DoButton, DoButtonStopString,
1079 DoButtonWaitString, DoButtonDefString));
1081 } else { /*
\8aJ
\8en
\82µ
\82Ä
\82¢
\82é
\82Ì
\82Å
\81A
\83X
\83g
\83b
\83v
\82·
\82é
\81B */
1082 final ConvertStopFlag flag = Converter.getStopFlag();
1083 if (!flag.needStop()) { /*
\82Ü
\82¾
\83X
\83g
\83b
\83v
\82µ
\82Ä
\82¢
\82È
\82¢
\81B */
1089 /*
\83r
\83f
\83I
\81E
\83Z
\81[
\83u
\83_
\83C
\83A
\83\8d\83O */
1090 public void ShowSavingVideoDialogButton_actionPerformed(ActionEvent e) {
1091 showSaveDialog("
\93®
\89æ
\82Ì
\95Û
\91¶
\90æ(
\83t
\83@
\83C
\83\8b)", VideoSavedFileField, true, false);
1094 /*
\83R
\83\81\83\93\83g
\81E
\83Z
\81[
\83u
\83_
\83C
\83A
\83\8d\83O */
1095 public void ShowSavingCommentDialogButton_actionPerformed(ActionEvent e) {
1096 showSaveDialog("
\83R
\83\81\83\93\83g
\82Ì
\95Û
\91¶
\90æ(
\83t
\83@
\83C
\83\8b)", CommentSavedFileField, true, false);
1099 /*
\83R
\83\81\83\93\83g
\95t
\82«
\83r
\83f
\83I
\81E
\83Z
\81[
\83u
\83_
\83C
\83A
\83\8d\83O */
1100 public void ShowSavingConvertedVideoDialogButton_actionPerformed(
1102 showSaveDialog("
\83R
\83\81\83\93\83g
\95t
\82«
\93®
\89æ
\82Ì
\95Û
\91¶
\90æ(
\83t
\83@
\83C
\83\8b)", ConvertedVideoSavedFileField,
1106 /* FFmpeg
\82Ö
\82Ì
\83p
\83X */
1107 public void SettingFFmpegPathButton_actionPerformed(ActionEvent e) {
1108 showSaveDialog("FFmpeg
\82Ö
\82Ì
\83p
\83X", FFmpegPathField, false, false);
1111 public void SettingVhookPathButton_actionPerformed(ActionEvent e) {
1112 showSaveDialog("
\8ag
\92£vhook
\83\89\83C
\83u
\83\89\83\8a\82Ö
\82Ì
\83p
\83X", VhookPathField, false, false);
1115 public void SettingFontPathButton_actionPerformed(ActionEvent e) {
1116 showSaveDialog("
\83t
\83H
\83\93\83g
\82Ö
\82Ì
\83p
\83X", FontPathField, false, false);
1119 public void this_windowClosing(WindowEvent e) {
1120 this.jMenuFileExit_actionPerformed(null);
1123 public void ShowSavingConvertedVideoFolderDialogButton_actionPerformed(
1125 /*
\83t
\83H
\83\8b\83_ */
1126 showSaveDialog("
\83R
\83\81\83\93\83g
\95t
\82«
\93®
\89æ
\82Ì
\95Û
\91¶
\90æ(
\83t
\83H
\83\8b\83_)", ConvertedVideoSavedFolderField,
1130 public void ShowSavingCommentFolderDialogButton_actionPerformed(
1132 showSaveDialog("
\83R
\83\81\83\93\83g
\82Ì
\95Û
\91¶
\90æ(
\83t
\83H
\83\8b\83_)", CommentSavedFolderField, true, true);
1135 public void ShowSavingVideoFolderDialogButton_actionPerformed(ActionEvent e) {
1136 showSaveDialog("
\93®
\89æ
\82Ì
\95Û
\91¶
\90æ(
\83t
\83H
\83\8b\83_)", VideoSavedFolderField, true, true);
1140 * This method initializes ConvertingSettingPanel
1142 * @return javax.swing.JPanel
1144 private JPanel getConvertingSettingPanel() {
1145 if (ConvertingSettingPanel == null) {
1146 GridBagConstraints gridBagConstraints11 = new GridBagConstraints();
1147 gridBagConstraints11.weighty = 1.0;
1148 gridBagConstraints11.weightx = 1.0;
1149 gridBagConstraints11.insets = new Insets(0, 5, 0, 5);
1150 gridBagConstraints11.gridy = 1;
1151 gridBagConstraints11.gridx = 0;
1152 gridBagConstraints11.anchor = GridBagConstraints.NORTH;
1153 gridBagConstraints11.fill = GridBagConstraints.HORIZONTAL;
1154 GridBagConstraints gridBagConstraints = new GridBagConstraints(0,
1155 2, 1, 1, 1.0, 1.0, GridBagConstraints.NORTH,
1156 GridBagConstraints.HORIZONTAL, new Insets(0, 5, 0, 5), 0, 0);
1157 gridBagConstraints.gridx = 0;
1158 gridBagConstraints.anchor = GridBagConstraints.CENTER;
1159 gridBagConstraints.weighty = 0.0;
1160 gridBagConstraints.gridy = 0;
1161 ConvertingSettingPanel = new JPanel();
1162 ConvertingSettingPanel.setLayout(new GridBagLayout());
1163 ConvertingSettingPanel.add(getNGWordSettingPanel(),
1164 gridBagConstraints11);
1165 ConvertingSettingPanel.add(VhookSettingPanel, gridBagConstraints);
1167 return ConvertingSettingPanel;
1171 * This method initializes NGWordSettingPanel
1173 * @return javax.swing.JPanel
1175 private JPanel getNGWordSettingPanel() {
1176 if (NGWordSettingPanel == null) {
1177 GridBagConstraints gridBagConstraints5 = new GridBagConstraints();
1178 gridBagConstraints5.fill = GridBagConstraints.HORIZONTAL;
1179 gridBagConstraints5.gridy = 1;
1180 gridBagConstraints5.weightx = 1.0;
1181 gridBagConstraints5.insets = new Insets(0, 5, 5, 5);
1182 gridBagConstraints5.gridx = 1;
1183 GridBagConstraints gridBagConstraints4 = new GridBagConstraints();
1184 gridBagConstraints4.gridx = 0;
1185 gridBagConstraints4.anchor = GridBagConstraints.WEST;
1186 gridBagConstraints4.insets = new Insets(0, 5, 5, 0);
1187 gridBagConstraints4.gridy = 1;
1188 NGIDLabel = new JLabel();
1189 NGIDLabel.setText("NG ID");
1190 GridBagConstraints gridBagConstraints3 = new GridBagConstraints();
1191 gridBagConstraints3.fill = GridBagConstraints.HORIZONTAL;
1192 gridBagConstraints3.gridy = 0;
1193 gridBagConstraints3.weightx = 1.0;
1194 gridBagConstraints3.insets = new Insets(0, 5, 5, 5);
1195 gridBagConstraints3.gridx = 1;
1196 GridBagConstraints gridBagConstraints2 = new GridBagConstraints();
1197 gridBagConstraints2.gridx = 0;
1198 gridBagConstraints2.insets = new Insets(0, 5, 5, 0);
1199 gridBagConstraints2.gridy = 0;
1200 NGWordLavel = new JLabel();
1201 NGWordLavel.setText("NG
\83\8f\81[
\83h");
1202 NGWordSettingPanel = new JPanel();
1203 NGWordSettingPanel.setLayout(new GridBagLayout());
1204 NGWordSettingPanel.setBorder(BorderFactory.createTitledBorder(null,
1205 "NG
\83\8f\81[
\83h
\81EID
\90Ý
\92è"));
1206 NGWordSettingPanel.add(NGWordLavel, gridBagConstraints2);
1207 NGWordSettingPanel.add(getNGWordTextField(), gridBagConstraints3);
1208 NGWordSettingPanel.add(NGIDLabel, gridBagConstraints4);
1209 NGWordSettingPanel.add(getNGIDTextField(), gridBagConstraints5);
1211 return NGWordSettingPanel;
1215 * This method initializes NGWordTextField
1217 * @return javax.swing.JTextField
1219 private JTextField getNGWordTextField() {
1220 if (NGWordTextField == null) {
1221 NGWordTextField = new JTextField();
1223 return NGWordTextField;
1227 * This method initializes NGIDTextField
1229 * @return javax.swing.JTextField
1231 private JTextField getNGIDTextField() {
1232 if (NGIDTextField == null) {
1233 NGIDTextField = new JTextField();
1235 return NGIDTextField;
1239 * This method initializes ProxyInfoPanel
1241 * @return javax.swing.JPanel
1243 private JPanel getProxyInfoPanel() {
1244 if (ProxyInfoPanel == null) {
1245 GridBagConstraints gridBagConstraints13 = new GridBagConstraints();
1246 gridBagConstraints13.gridx = 0;
1247 gridBagConstraints13.gridwidth = 2;
1248 gridBagConstraints13.weightx = 1.0;
1249 gridBagConstraints13.fill = GridBagConstraints.HORIZONTAL;
1250 gridBagConstraints13.insets = new Insets(0, 5, 0, 5);
1251 gridBagConstraints13.gridy = 0;
1252 GridBagConstraints gridBagConstraints12 = new GridBagConstraints();
1253 gridBagConstraints12.fill = GridBagConstraints.HORIZONTAL;
1254 gridBagConstraints12.gridy = 2;
1255 gridBagConstraints12.weightx = 1.0;
1256 gridBagConstraints12.insets = new Insets(5, 0, 5, 5);
1257 gridBagConstraints12.gridx = 1;
1258 GridBagConstraints gridBagConstraints10 = new GridBagConstraints();
1259 gridBagConstraints10.gridx = 0;
1260 gridBagConstraints10.insets = new Insets(5, 5, 5, 5);
1261 gridBagConstraints10.gridy = 2;
1262 ProxyPortLabel = new JLabel();
1263 ProxyPortLabel.setText("
\83|
\81[
\83g
\94Ô
\8d\86");
1264 GridBagConstraints gridBagConstraints9 = new GridBagConstraints();
1265 gridBagConstraints9.fill = GridBagConstraints.BOTH;
1266 gridBagConstraints9.gridy = 1;
1267 gridBagConstraints9.weightx = 1.0;
1268 gridBagConstraints9.insets = new Insets(0, 0, 0, 5);
1269 gridBagConstraints9.gridx = 1;
1270 GridBagConstraints gridBagConstraints8 = new GridBagConstraints();
1271 gridBagConstraints8.gridx = 0;
1272 gridBagConstraints8.insets = new Insets(0, 5, 0, 5);
1273 gridBagConstraints8.fill = GridBagConstraints.NONE;
1274 gridBagConstraints8.anchor = GridBagConstraints.EAST;
1275 gridBagConstraints8.gridy = 1;
1276 ProxyLabel = new JLabel();
1277 ProxyLabel.setText("
\83v
\83\8d\83L
\83V");
1278 ProxyInfoPanel = new JPanel();
1279 ProxyInfoPanel.setLayout(new GridBagLayout());
1280 ProxyInfoPanel.setBorder(BorderFactory.createTitledBorder(null,
1281 "
\83v
\83\8d\83L
\83V
\90Ý
\92è"));
1282 ProxyInfoPanel.add(ProxyLabel, gridBagConstraints8);
1283 ProxyInfoPanel.add(getProxyTextField(), gridBagConstraints9);
1284 ProxyInfoPanel.add(ProxyPortLabel, gridBagConstraints10);
1285 ProxyInfoPanel.add(getProxyPortTextField(), gridBagConstraints12);
1286 ProxyInfoPanel.add(getUseProxyCheckBox(), gridBagConstraints13);
1288 return ProxyInfoPanel;
1292 * This method initializes ProxyTextField
1294 * @return javax.swing.JTextField
1296 private JTextField getProxyTextField() {
1297 if (ProxyTextField == null) {
1298 ProxyTextField = new JTextField();
1300 return ProxyTextField;
1304 * This method initializes ProxyPortTextField
1306 * @return javax.swing.JTextField
1308 private JTextField getProxyPortTextField() {
1309 if (ProxyPortTextField == null) {
1310 ProxyPortTextField = new JTextField();
1312 return ProxyPortTextField;
1316 * This method initializes UseProxyCheckBox
1318 * @return javax.swing.JCheckBox
1320 private JCheckBox getUseProxyCheckBox() {
1321 if (UseProxyCheckBox == null) {
1322 UseProxyCheckBox = new JCheckBox();
1323 UseProxyCheckBox.setText("
\83v
\83\8d\83L
\83V
\82ð
\8eg
\82¤");
1325 return UseProxyCheckBox;
1329 * This method initializes FixFontSizeCheckBox
1331 * @return javax.swing.JCheckBox
1333 private JCheckBox getFixFontSizeCheckBox() {
1334 if (FixFontSizeCheckBox == null) {
1335 FixFontSizeCheckBox = new JCheckBox();
1336 FixFontSizeCheckBox.setText("
\83t
\83H
\83\93\83g
\83T
\83C
\83Y
\82ð
\89æ
\96Ê
\82É
\82 \82í
\82¹
\82Ä
\8e©
\93®
\92²
\90®
\82·
\82é");
1338 return FixFontSizeCheckBox;
1342 * This method initializes DelVideoCheckBoc
1344 * @return javax.swing.JCheckBox
1346 private JCheckBox getDelVideoCheckBox() {
1347 if (DelVideoCheckBox == null) {
1348 DelVideoCheckBox = new JCheckBox();
1349 DelVideoCheckBox.setText("
\95Ï
\8a·
\8cã
\82É
\93®
\89æ
\83t
\83@
\83C
\83\8b\82ð
\8dí
\8f\9c\82·
\82é");
1351 return DelVideoCheckBox;
1355 * This method initializes DelCommentCheckBox
1357 * @return javax.swing.JCheckBox
1359 private JCheckBox getDelCommentCheckBox() {
1360 if (DelCommentCheckBox == null) {
1361 DelCommentCheckBox = new JCheckBox();
1362 DelCommentCheckBox.setText("
\95Ï
\8a·
\8cã
\82É
\83R
\83\81\83\93\83g
\83t
\83@
\83C
\83\8b\82ð
\8dí
\8f\9c\82·
\82é");
1364 return DelCommentCheckBox;
1368 * This method initializes FixCommentNumCheckBox
1370 * @return javax.swing.JCheckBox
1372 private JCheckBox getFixCommentNumCheckBox() {
1373 if (FixCommentNumCheckBox == null) {
1374 FixCommentNumCheckBox = new JCheckBox();
1375 FixCommentNumCheckBox.setText("
\83R
\83\81\83\93\83g
\8eæ
\93¾
\90\94\82Í
\8e©
\93®
\82Å
\92²
\90®
\82·
\82é");
1377 return FixCommentNumCheckBox;
1381 * This method initializes OpaqueCommentCheckBox
1383 * @return javax.swing.JCheckBox
1385 private JCheckBox getOpaqueCommentCheckBox() {
1386 if (OpaqueCommentCheckBox == null) {
1387 OpaqueCommentCheckBox = new JCheckBox();
1388 OpaqueCommentCheckBox.setText("
\91S
\82Ä
\82Ì
\83R
\83\81\83\93\83g
\82ð
\95s
\93§
\96¾
\82É
\82·
\82é");
1390 return OpaqueCommentCheckBox;
1394 * This method initializes VideoSaveInfoPanel
1396 * @return javax.swing.JPanel
1398 private JPanel getVideoSaveInfoPanel() {
1399 if (VideoSaveInfoPanel == null) {
1400 GridBagConstraints gridBagConstraints15 = new GridBagConstraints();
1401 gridBagConstraints15.fill = GridBagConstraints.HORIZONTAL;
1402 gridBagConstraints15.gridwidth = 4;
1403 gridBagConstraints15.gridx = 0;
1404 gridBagConstraints15.gridy = 1;
1405 gridBagConstraints15.weightx = 1.0;
1406 gridBagConstraints15.insets = new Insets(0, 25, 0, 5);
1407 GridBagConstraints gridBagConstraints32 = new GridBagConstraints(3,
1408 4, 1, 1, 0.0, 0.0, GridBagConstraints.SOUTH,
1409 GridBagConstraints.NONE, new Insets(0, 0, 0, 5), 0, 0);
1410 gridBagConstraints32.gridx = 3;
1411 gridBagConstraints32.insets = new Insets(0, 0, 5, 5);
1412 gridBagConstraints32.gridy = 5;
1413 GridBagConstraints gridBagConstraints30 = new GridBagConstraints(0,
1414 4, 3, 1, 1.0, 0.0, GridBagConstraints.CENTER,
1415 GridBagConstraints.BOTH, new Insets(0, 50, 0, 5), 0, 0);
1416 gridBagConstraints30.gridx = 0;
1417 gridBagConstraints30.insets = new Insets(0, 50, 5, 5);
1418 gridBagConstraints30.gridy = 5;
1419 GridBagConstraints gridBagConstraints29 = new GridBagConstraints(0,
1420 3, 4, 1, 1.0, 0.0, GridBagConstraints.CENTER,
1421 GridBagConstraints.BOTH, new Insets(0, 25, 0, 5), 0, 0);
1422 gridBagConstraints29.gridx = 0;
1423 gridBagConstraints29.gridy = 4;
1424 GridBagConstraints gridBagConstraints28 = new GridBagConstraints(0,
1425 2, 3, 1, 1.0, 0.0, GridBagConstraints.WEST,
1426 GridBagConstraints.BOTH, new Insets(0, 50, 0, 5), 0, 0);
1427 gridBagConstraints28.gridx = 0;
1428 gridBagConstraints28.gridy = 3;
1429 GridBagConstraints gridBagConstraints27 = new GridBagConstraints(0,
1430 1, 4, 1, 1.0, 0.0, GridBagConstraints.WEST,
1431 GridBagConstraints.HORIZONTAL, new Insets(0, 25, 0, 5), 0,
1433 gridBagConstraints27.gridx = 0;
1434 gridBagConstraints27.gridy = 2;
1435 GridBagConstraints gridBagConstraints34 = new GridBagConstraints();
1436 gridBagConstraints34.insets = new Insets(0, 5, 0, 5);
1437 gridBagConstraints34.gridy = 0;
1438 gridBagConstraints34.weightx = 1.0;
1439 gridBagConstraints34.fill = GridBagConstraints.HORIZONTAL;
1440 gridBagConstraints34.gridx = 0;
1441 GridBagConstraints gridBagConstraints31 = new GridBagConstraints(3,
1442 2, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER,
1443 GridBagConstraints.NONE, new Insets(0, 0, 0, 5), 0, 0);
1444 gridBagConstraints31.gridy = 3;
1445 gridBagConstraints31.gridx = 3;
1446 VideoSaveInfoPanel = new JPanel();
1447 VideoSaveInfoPanel.setLayout(new GridBagLayout());
1448 VideoSaveInfoPanel.setBorder(BorderFactory.createTitledBorder(null,
1449 "
\93®
\89æ
\95Û
\91¶
\90Ý
\92è", TitledBorder.DEFAULT_JUSTIFICATION,
1450 TitledBorder.DEFAULT_POSITION, new Font("MS UI Gothic",
1451 Font.PLAIN, 12), Color.black));
1452 VideoSaveInfoPanel.add(SavingVideoCheckBox, gridBagConstraints34);
1453 VideoSaveInfoPanel.add(Video_SaveFolderRadioButton,
1454 gridBagConstraints27);
1455 VideoSaveInfoPanel.add(ShowSavingVideoFolderDialogButton,
1456 gridBagConstraints31);
1457 VideoSaveInfoPanel.add(VideoSavedFolderField, gridBagConstraints28);
1458 VideoSaveInfoPanel.add(Video_SaveFileRadioButton,
1459 gridBagConstraints29);
1460 VideoSaveInfoPanel.add(VideoSavedFileField, gridBagConstraints30);
1461 VideoSaveInfoPanel.add(ShowSavingVideoFileDialogButton,
1462 gridBagConstraints32);
1463 VideoSaveInfoPanel.add(getDelVideoCheckBox(), gridBagConstraints15);
1465 return VideoSaveInfoPanel;
1469 * This method initializes SaveInfoTabPaneEach
1471 * @return javax.swing.JTabbedPane
1473 private JTabbedPane getSaveInfoTabPaneEach() {
1474 if (SaveInfoTabPaneEach == null) {
1475 SaveInfoTabPaneEach = new JTabbedPane();
1476 SaveInfoTabPaneEach.addTab("
\93®
\89æ
\81E
\83R
\83\81\83\93\83g", null,
1477 getVideoSavingTabbedPanel(), null);
1478 SaveInfoTabPaneEach.addTab("
\83R
\83\81\83\93\83g
\95t
\82«
\93®
\89æ", null,
1479 getConvertedVideoSavingTabbedPanel(), null);
1481 return SaveInfoTabPaneEach;
1485 * This method initializes VideoSavingTabbedPanel
1487 * @return javax.swing.JPanel
1489 private JPanel getVideoSavingTabbedPanel() {
1490 if (VideoSavingTabbedPanel == null) {
1491 GridBagConstraints gridBagConstraints36 = new GridBagConstraints();
1492 gridBagConstraints36.weighty = 0.0;
1493 gridBagConstraints36.weightx = 1.0;
1494 gridBagConstraints36.fill = GridBagConstraints.HORIZONTAL;
1495 gridBagConstraints36.insets = new Insets(0, 5, 0, 5);
1496 gridBagConstraints36.anchor = GridBagConstraints.NORTH;
1497 GridBagConstraints gridBagConstraints37 = new GridBagConstraints(0,
1498 1, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER,
1499 GridBagConstraints.BOTH, new Insets(0, 5, 0, 5), 0, 0);
1500 gridBagConstraints37.anchor = GridBagConstraints.NORTH;
1501 gridBagConstraints37.gridx = 0;
1502 gridBagConstraints37.gridy = 1;
1503 gridBagConstraints37.weighty = 1.0;
1504 gridBagConstraints37.fill = GridBagConstraints.HORIZONTAL;
1505 VideoSavingTabbedPanel = new JPanel();
1506 VideoSavingTabbedPanel.setLayout(new GridBagLayout());
1507 VideoSavingTabbedPanel.add(getVideoSaveInfoPanel(),
1508 gridBagConstraints36);
1509 VideoSavingTabbedPanel.add(CommentSaveInfoPanel,
1510 gridBagConstraints37);
1512 return VideoSavingTabbedPanel;
1516 * This method initializes ConvertedVideoSavingTabbedPanel
1518 * @return javax.swing.JPanel
1520 private JPanel getConvertedVideoSavingTabbedPanel() {
1521 if (ConvertedVideoSavingTabbedPanel == null) {
1522 GridBagConstraints gridBagConstraints38 = new GridBagConstraints(0,
1523 2, 1, 1, 1.0, 1.0, GridBagConstraints.NORTH,
1524 GridBagConstraints.HORIZONTAL, new Insets(0, 5, 0, 5), 0, 0);
1525 gridBagConstraints38.gridx = -1;
1526 gridBagConstraints38.fill = GridBagConstraints.HORIZONTAL;
1527 gridBagConstraints38.gridy = -1;
1528 ConvertedVideoSavingTabbedPanel = new JPanel();
1529 ConvertedVideoSavingTabbedPanel.setLayout(new GridBagLayout());
1530 ConvertedVideoSavingTabbedPanel.add(ConvertedVideoSavingInfoPanel,
1531 gridBagConstraints38);
1533 return ConvertedVideoSavingTabbedPanel;
1537 * This method initializes NotAddVideoID_ConvVideoCheckBox
1539 * @return javax.swing.JCheckBox
1541 private JCheckBox getNotAddVideoID_ConvVideoCheckBox() {
1542 if (NotAddVideoID_ConvVideoCheckBox == null) {
1543 NotAddVideoID_ConvVideoCheckBox = new JCheckBox();
1544 NotAddVideoID_ConvVideoCheckBox.setText("
\83t
\83@
\83C
\83\8b\96¼
\82É
\93®
\89æID
\82ð
\95t
\89Á
\82µ
\82È
\82¢");
1546 return NotAddVideoID_ConvVideoCheckBox;
1550 * This method initializes FFmpegOptionComboBox
1552 * @return javax.swing.JComboBox
1554 private final FFmpegComboBoxModel FFmpegOptionModel = new FFmpegComboBoxModel();
1556 private JLabel ExtOptionLabel = null;
1558 private JTextField ExtOptionField = null;
1560 private JCheckBox NotUseVhookCheckBox = null;
1562 private JTextField ViewCommentField = null;
1564 private JLabel ViewCommentLabel = null;
1566 private JLabel ShadowKindLabel = null;
1568 private JComboBox ShadowComboBox = null;
1570 private JComboBox getFFmpegOptionComboBox() {
1571 if (FFmpegOptionComboBox == null) {
1572 FFmpegOptionComboBox = new JComboBox(FFmpegOptionModel);
1573 FFmpegOptionComboBox
1574 .addActionListener(new java.awt.event.ActionListener() {
1575 public void actionPerformed(java.awt.event.ActionEvent e) {
1576 if (FFmpegOptionModel.isFile()) {//
\83t
\83@
\83C
\83\8b
1577 ExtOptionField.setEnabled(false);
1578 MainOptionField.setEnabled(false);
1579 CommandLineInOptionField.setEnabled(false);
1580 CommandLineOutOptionField.setEnabled(false);
1581 } else {//
\83t
\83@
\83C
\83\8b\82Å
\82È
\82¢
1582 ExtOptionField.setEnabled(true);
1583 MainOptionField.setEnabled(true);
1584 CommandLineInOptionField.setEnabled(true);
1585 CommandLineOutOptionField.setEnabled(true);
1590 return FFmpegOptionComboBox;
1594 * This method initializes FFmpegOptionReloadButton
1596 * @return javax.swing.JButton
1598 private JButton getFFmpegOptionReloadButton() {
1599 if (FFmpegOptionReloadButton == null) {
1600 FFmpegOptionReloadButton = new JButton();
1601 FFmpegOptionReloadButton.setText("
\8dX
\90V");
1602 FFmpegOptionReloadButton
1603 .addActionListener(new java.awt.event.ActionListener() {
1604 public void actionPerformed(java.awt.event.ActionEvent e) {
1605 FFmpegOptionModel.reload();
1609 return FFmpegOptionReloadButton;
1613 * This method initializes FFmpegOptionComboBoxPanel
1615 * @return javax.swing.JPanel
1617 private JPanel getFFmpegOptionComboBoxPanel() {
1618 if (FFmpegOptionComboBoxPanel == null) {
1619 GridBagConstraints gridBagConstraints47 = new GridBagConstraints();
1620 gridBagConstraints47.fill = GridBagConstraints.BOTH;
1621 gridBagConstraints47.gridx = -1;
1622 gridBagConstraints47.gridy = -1;
1623 gridBagConstraints47.insets = new Insets(0, 0, 5, 5);
1624 GridBagConstraints gridBagConstraints46 = new GridBagConstraints();
1625 gridBagConstraints46.fill = GridBagConstraints.HORIZONTAL;
1626 gridBagConstraints46.gridwidth = 3;
1627 gridBagConstraints46.gridx = -1;
1628 gridBagConstraints46.gridy = -1;
1629 gridBagConstraints46.weightx = 1.0;
1630 gridBagConstraints46.insets = new Insets(0, 5, 5, 5);
1631 FFmpegOptionComboBoxPanel = new JPanel();
1632 FFmpegOptionComboBoxPanel.setLayout(new GridBagLayout());
1633 FFmpegOptionComboBoxPanel.add(getFFmpegOptionComboBox(),
1634 gridBagConstraints46);
1635 FFmpegOptionComboBoxPanel.add(getFFmpegOptionReloadButton(),
1636 gridBagConstraints47);
1638 return FFmpegOptionComboBoxPanel;
1642 * This method initializes ExtOptionField
1644 * @return javax.swing.JTextField
1646 private JTextField getExtOptionField() {
1647 if (ExtOptionField == null) {
1648 ExtOptionField = new JTextField();
1650 return ExtOptionField;
1654 * This method initializes NotUseVhookCheckBox
1656 * @return javax.swing.JCheckBox
1658 private JCheckBox getNotUseVhookCheckBox() {
1659 if (NotUseVhookCheckBox == null) {
1660 NotUseVhookCheckBox = new JCheckBox();
1661 NotUseVhookCheckBox.setText("
\8ag
\92£vhook
\83\89\83C
\83u
\83\89\83\8a\82ð
\96³
\8cø
\82É
\82·
\82é
\81i
\83f
\83o
\83b
\83O
\97p
\81j");
1663 return NotUseVhookCheckBox;
1667 * This method initializes ViewCommentField
1669 * @return javax.swing.JTextField
1671 private JTextField getViewCommentField() {
1672 if (ViewCommentField == null) {
1673 ViewCommentField = new JTextField();
1675 return ViewCommentField;
1679 * This method initializes ShadowComboBox
1681 * @return javax.swing.JComboBox
1684 private JComboBox getShadowComboBox() {
1685 if (ShadowComboBox == null) {
1686 ShadowComboBox = new JComboBox(ConvertingSetting.ShadowKindArray);
1688 return ShadowComboBox;
1693 class MainFrame_ShowSavingVideoFolderDialogButton_actionAdapter implements
1695 private MainFrame adaptee;
1697 MainFrame_ShowSavingVideoFolderDialogButton_actionAdapter(MainFrame adaptee) {
1698 this.adaptee = adaptee;
1701 public void actionPerformed(ActionEvent e) {
1702 adaptee.ShowSavingVideoFolderDialogButton_actionPerformed(e);
1706 class MainFrame_ShowSavingCommentFolderDialogButton_actionAdapter implements
1708 private MainFrame adaptee;
1710 MainFrame_ShowSavingCommentFolderDialogButton_actionAdapter(
1711 MainFrame adaptee) {
1712 this.adaptee = adaptee;
1715 public void actionPerformed(ActionEvent e) {
1716 adaptee.ShowSavingCommentFolderDialogButton_actionPerformed(e);
1720 class MainFrame_ShowSavingConvertedVideoFolderDialogButton_actionAdapter
1721 implements ActionListener {
1722 private MainFrame adaptee;
1724 MainFrame_ShowSavingConvertedVideoFolderDialogButton_actionAdapter(
1725 MainFrame adaptee) {
1726 this.adaptee = adaptee;
1729 public void actionPerformed(ActionEvent e) {
1730 adaptee.ShowSavingConvertedVideoFolderDialogButton_actionPerformed(e);
1734 class MainFrame_this_windowAdapter extends WindowAdapter {
1735 private MainFrame adaptee;
1737 MainFrame_this_windowAdapter(MainFrame adaptee) {
1738 this.adaptee = adaptee;
1741 public void windowClosing(WindowEvent e) {
1742 adaptee.this_windowClosing(e);
1746 class MainFrame_SettingFontPathButton_actionAdapter implements ActionListener {
1747 private MainFrame adaptee;
1749 MainFrame_SettingFontPathButton_actionAdapter(MainFrame adaptee) {
1750 this.adaptee = adaptee;
1753 public void actionPerformed(ActionEvent e) {
1754 adaptee.SettingFontPathButton_actionPerformed(e);
1758 class MainFrame_SettingVhookPathButton_actionAdapter implements ActionListener {
1759 private MainFrame adaptee;
1761 MainFrame_SettingVhookPathButton_actionAdapter(MainFrame adaptee) {
1762 this.adaptee = adaptee;
1765 public void actionPerformed(ActionEvent e) {
1766 adaptee.SettingVhookPathButton_actionPerformed(e);
1770 class MainFrame_SettingFFmpegPathButton_actionAdapter implements ActionListener {
1771 private MainFrame adaptee;
1773 MainFrame_SettingFFmpegPathButton_actionAdapter(MainFrame adaptee) {
1774 this.adaptee = adaptee;
1777 public void actionPerformed(ActionEvent e) {
1778 adaptee.SettingFFmpegPathButton_actionPerformed(e);
1782 class MainFrame_ShowSavingConvertedVideoDialogButton_actionAdapter implements
1784 private MainFrame adaptee;
1786 MainFrame_ShowSavingConvertedVideoDialogButton_actionAdapter(
1787 MainFrame adaptee) {
1788 this.adaptee = adaptee;
1791 public void actionPerformed(ActionEvent e) {
1792 adaptee.ShowSavingConvertedVideoDialogButton_actionPerformed(e);
1796 class MainFrame_ShowSavingCommentDialogButton_actionAdapter implements
1798 private MainFrame adaptee;
1800 MainFrame_ShowSavingCommentDialogButton_actionAdapter(MainFrame adaptee) {
1801 this.adaptee = adaptee;
1804 public void actionPerformed(ActionEvent e) {
1805 adaptee.ShowSavingCommentDialogButton_actionPerformed(e);
1809 class MainFrame_ShowSavingVideoDialogButton_actionAdapter implements
1811 private MainFrame adaptee;
1813 MainFrame_ShowSavingVideoDialogButton_actionAdapter(MainFrame adaptee) {
1814 this.adaptee = adaptee;
1817 public void actionPerformed(ActionEvent e) {
1818 adaptee.ShowSavingVideoDialogButton_actionPerformed(e);
1822 class MainFrame_DoButton_actionAdapter implements ActionListener {
1823 private MainFrame adaptee;
1825 MainFrame_DoButton_actionAdapter(MainFrame adaptee) {
1826 this.adaptee = adaptee;
1829 public void actionPerformed(ActionEvent e) {
1830 adaptee.DoButton_actionPerformed(e);
1834 class MainFrame_jMenuFileExit_ActionAdapter implements ActionListener {
1837 MainFrame_jMenuFileExit_ActionAdapter(MainFrame adaptee) {
1838 this.adaptee = adaptee;
1841 public void actionPerformed(ActionEvent actionEvent) {
1842 adaptee.jMenuFileExit_actionPerformed(actionEvent);
1846 class MainFrame_jMenuHelpAbout_ActionAdapter implements ActionListener {
1849 MainFrame_jMenuHelpAbout_ActionAdapter(MainFrame adaptee) {
1850 this.adaptee = adaptee;
1853 public void actionPerformed(ActionEvent actionEvent) {
1854 adaptee.jMenuHelpAbout_actionPerformed(actionEvent);