OSDN Git Service

r74までのコメントのみに関わる変更.
[coroid/inqubus.git] / frontend / src / saccubus / MainFrame.java
1 package saccubus;
2
3 import java.awt.*;
4 import java.awt.dnd.DnDConstants;
5 import java.awt.dnd.DropTarget;
6 import java.awt.event.*;
7 import javax.swing.*;
8 import java.io.File;
9 import saccubus.util.FileDropTarget;
10 import saccubus.util.PopupRightClick;
11
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;
20 import java.awt.Font;
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;
28
29 /**
30  * <p>
31  * \83^\83C\83g\83\8b\82³\82«\82ã\82Î\82·
32  * </p>
33  * 
34  * <p>
35  * \90à\96¾: \83j\83R\83j\83R\93®\89æ\82Ì\93®\89æ\82ð\83R\83\81\83\93\83g\82Â\82«\82Å\95Û\91
36  * </p>
37  * 
38  * <p>
39  * \92\98\8dì\8c : Copyright (c) 2007 PSI
40  * </p>
41  * 
42  * <p>
43  * \89ï\8eÐ\96¼:
44  * </p>
45  * 
46  * @author \96¢\93ü\97Í
47  * @version 1.0
48  */
49 public class MainFrame extends JFrame {
50         /**
51          * 
52          */
53         private static final long serialVersionUID = 2564486741331062989L;
54
55         public static final Image WinIcon = Toolkit.getDefaultToolkit()
56                         .createImage(saccubus.MainFrame.class.getResource("icon32.png"));
57
58         
59         JPanel contentPane;
60
61         BorderLayout borderLayout1 = new BorderLayout();
62
63         JMenuBar jMenuBar1 = new JMenuBar();
64
65         JMenu jMenuFile = new JMenu();
66
67         JMenuItem jMenuFileExit = new JMenuItem();
68
69         JMenu jMenuHelp = new JMenu();
70
71         JMenuItem jMenuHelpAbout = new JMenuItem();
72
73         JLabel statusBar = new JLabel();
74
75         JTabbedPane MainTabbedPane = new JTabbedPane();
76
77         JPanel SavingInfoTabPanel = new JPanel();
78
79         JPanel FFMpegTabPanel = new JPanel();
80
81         JPanel VideoInfoPanel = new JPanel();
82
83         JTextField VideoID_TextField = new JTextField();
84
85         JButton DoButton = new JButton();
86
87         public static final String DoButtonDefString = "\95Ï\8a·";
88
89         public static final String DoButtonStopString = "\92â\8e~";
90
91         public static final String DoButtonWaitString = "\91Ò\8b@";
92
93         GridBagLayout gridBagLayout2 = new GridBagLayout();
94
95         JPanel UserInfoPanel = new JPanel();
96
97         GridBagLayout gridBagLayout3 = new GridBagLayout();
98
99         JLabel MailAddrLabel = new JLabel();
100
101         JTextField MailAddrField = new JTextField();
102
103         JLabel PasswordLabel = new JLabel();
104
105         JPasswordField PasswordField = new JPasswordField();
106
107         JPanel CommentSaveInfoPanel = new JPanel();
108
109         GridBagLayout gridBagLayout4 = new GridBagLayout();
110
111         JCheckBox SavingVideoCheckBox = new JCheckBox();
112
113         JTextField VideoSavedFileField = new JTextField();
114
115         JButton ShowSavingVideoFileDialogButton = new JButton();
116
117         JCheckBox SavingCommentCheckBox = new JCheckBox();
118
119         JTextField CommentSavedFileField = new JTextField();
120
121         JButton ShowSavingCommentFileDialogButton = new JButton();
122
123         JPanel ConvertedVideoSavingInfoPanel = new JPanel();
124
125         GridBagLayout gridBagLayout5 = new GridBagLayout();
126
127         JCheckBox SavingConvertedVideoCheckBox = new JCheckBox();
128
129         JTextField ConvertedVideoSavedFileField = new JTextField();
130
131         JButton ShowSavingConvertedVideoFileDialogButton = new JButton();
132
133         GridBagLayout gridBagLayout6 = new GridBagLayout();
134
135         ButtonGroup VideoSaveButtonGroup = new ButtonGroup();
136
137         ButtonGroup CommentSaveButtonGroup = new ButtonGroup();
138
139         ButtonGroup ConvSaveButtonGroup = new ButtonGroup();
140
141         public MainFrame() {
142                 try {
143                         setDefaultCloseOperation(EXIT_ON_CLOSE);
144                         jbInit();
145                         setPopup();
146                         setDropTarget();
147                         ConvertingSetting setting = ConvertingSetting.loadSetting(null,
148                                         null);
149                         this.setSetting(setting);
150                 } catch (Exception exception) {
151                         exception.printStackTrace();
152                 }
153         }
154
155         /**
156          * \83R\83\93\83|\81[\83l\83\93\83g\82Ì\8f\89\8aú\89»\81B
157          * 
158          * @throws java.lang.Exception
159          */
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¹");
466                 jMenuFileExit
467                                 .addActionListener(new MainFrame_jMenuFileExit_ActionAdapter(
468                                                 this));
469                 jMenuHelp.setText("\83w\83\8b\83v");
470                 jMenuHelpAbout.setText("\83o\81[\83W\83\87\83\93\8fî\95ñ");
471                 jMenuHelpAbout
472                                 .addActionListener(new MainFrame_jMenuHelpAbout_ActionAdapter(
473                                                 this));
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(
493                                                 this));
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(
498                                                 this));
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(
507                                                 this));
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(
516                                                 this));
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(
521                                                 this));
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(
532                                                 this));
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(
547                                                 this));
548                 ShowSavingVideoFolderDialogButton.setText("\8eQ\8fÆ");
549                 ShowSavingVideoFolderDialogButton
550                                 .addActionListener(new MainFrame_ShowSavingVideoFolderDialogButton_actionAdapter(
551                                                 this));
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(
558                                                 this));
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);
569
570                 CommentSaveButtonGroup.add(Comment_SaveFileRadioButton);
571                 CommentSaveButtonGroup.add(Comment_SaveFolderRadioButton);
572
573                 ConvSaveButtonGroup.add(Conv_SaveFileRadioButton);
574                 ConvSaveButtonGroup.add(Conv_SaveFolderRadioButton);
575
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);
682         }
683
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));
693
694                 CommentSavedFileField.addMouseListener(new PopupRightClick(
695                                 this.CommentSavedFileField));
696                 CommentSavedFolderField.addMouseListener(new PopupRightClick(
697                                 this.CommentSavedFolderField));
698
699                 ConvertedVideoSavedFileField.addMouseListener(new PopupRightClick(
700                                 this.ConvertedVideoSavedFileField));
701                 ConvertedVideoSavedFolderField.addMouseListener(new PopupRightClick(
702                                 this.ConvertedVideoSavedFolderField));
703
704                 VideoSavedFileField.addMouseListener(new PopupRightClick(
705                                 this.VideoSavedFileField));
706                 VideoSavedFolderField.addMouseListener(new PopupRightClick(
707                                 this.VideoSavedFolderField));
708
709                 FFmpegPathField.addMouseListener(new PopupRightClick(
710                                 this.FFmpegPathField));
711                 VhookPathField
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));
721
722                 ProxyTextField
723                                 .addMouseListener(new PopupRightClick(this.ProxyTextField));
724                 ProxyPortTextField.addMouseListener(new PopupRightClick(
725                                 this.ProxyPortTextField));
726
727                 FontIndexField
728                                 .addMouseListener(new PopupRightClick(this.FontIndexField));
729
730                 NGWordTextField.addMouseListener(new PopupRightClick(
731                                 this.NGWordTextField));
732                 NGIDTextField.addMouseListener(new PopupRightClick(this.NGIDTextField));
733         }
734
735         private void setDropTarget() {
736                 addTarget(VideoSavedFileField, false);
737                 addTarget(VideoSavedFolderField, true);
738
739                 addTarget(CommentSavedFileField, false);
740                 addTarget(CommentSavedFolderField, true);
741
742                 addTarget(ConvertedVideoSavedFileField, false);
743                 addTarget(ConvertedVideoSavedFolderField, true);
744
745                 addTarget(FFmpegPathField, false);
746                 addTarget(VhookPathField, false);
747                 addTarget(FontPathField, false);
748
749         }
750
751         private DropTarget addTarget(JTextField c, boolean isDir) {
752                 return new DropTarget(c, DnDConstants.ACTION_COPY, new FileDropTarget(
753                                 c, isDir), true);
754         }
755
756         private File CurrentDir = new File(".");
757
758         JPanel PathSettingPanel = new JPanel();
759
760         JLabel FFmpegPathLabel = new JLabel();
761
762         GridBagLayout gridBagLayout7 = new GridBagLayout();
763
764         JTextField FFmpegPathField = new JTextField();
765
766         JButton SettingFFmpegPathButton = new JButton();
767
768         JLabel VhookPathLabel = new JLabel();
769
770         JTextField VhookPathField = new JTextField();
771
772         JButton SettingVhookPathButton = new JButton();
773
774         JPanel VhookSettingPanel = new JPanel();
775
776         GridBagLayout gridBagLayout8 = new GridBagLayout();
777
778         JPanel FFmpegSettingPanel = new JPanel();
779
780         GridBagLayout gridBagLayout9 = new GridBagLayout();
781
782         JLabel FontPathLabel = new JLabel();
783
784         JTextField FontPathField = new JTextField();
785
786         JButton SettingFontPathButton = new JButton();
787
788         JCheckBox ShowConvVideoCheckBox = new JCheckBox();
789
790         JTextField CommandLineOutOptionField = new JTextField();
791
792         private void showSaveDialog(String title, JTextField field, boolean isSave,
793                         boolean isDir) {
794                 JFileChooser chooser = new JFileChooser(CurrentDir);
795                 chooser.setDialogTitle(title);
796                 int code = 0;
797                 if (isDir) {
798                         chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
799                 }
800                 if (isSave) {
801                         code = chooser.showSaveDialog(this);
802                 } else {
803                         code = chooser.showOpenDialog(this);
804                 }
805                 if (code == JFileChooser.APPROVE_OPTION) {
806                         if (isDir) {
807                                 CurrentDir = chooser.getCurrentDirectory();
808                                 field.setText(CurrentDir.getAbsolutePath());
809                         } else {
810                                 File selected = chooser.getSelectedFile();
811                                 CurrentDir = chooser.getCurrentDirectory();
812                                 field.setText(selected.getAbsolutePath());
813                         }
814                 }
815         }
816
817         private ConvertingSetting getSetting() {
818                 int back_comment;
819                 try {
820                         back_comment = Integer.parseInt(CommentNumField.getText());
821                 } catch (NumberFormatException ex) {
822                         back_comment = 500;
823                 }
824                 int proxy_port;
825                 try {
826                         proxy_port = Integer.parseInt(ProxyPortTextField.getText());
827                 } catch (NumberFormatException e) {
828                         proxy_port = -1;
829                 }
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
844                                                 .isSelected(),
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());
858                 return setting;
859         }
860
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()
870                                 .getPath());
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()
884                                 .getPath());
885                 CommentSavedFolderField.setText(setting.getCommentFixFileNameFolder()
886                                 .getPath());
887                 ConvertedVideoSavedFolderField.setText(setting
888                                 .getConvFixFileNameFolder().getPath());
889                 DelVideoCheckBox.setSelected(setting.isDeleteVideoAfterConverting());
890                 DelCommentCheckBox
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);
897                 } else {
898                         Video_SaveFileRadioButton.setSelected(true);
899                         Video_SaveFolderRadioButton.setSelected(false);
900                 }
901                 if (setting.isCommentFixFileName()) {
902                         Comment_SaveFileRadioButton.setSelected(false);
903                         Comment_SaveFolderRadioButton.setSelected(true);
904                 } else {
905                         Comment_SaveFileRadioButton.setSelected(true);
906                         Comment_SaveFolderRadioButton.setSelected(false);
907                 }
908                 if (setting.isConvFixFileName()) {
909                         Conv_SaveFileRadioButton.setSelected(false);
910                         Conv_SaveFolderRadioButton.setSelected(true);
911                 } else {
912                         Conv_SaveFileRadioButton.setSelected(true);
913                         Conv_SaveFolderRadioButton.setSelected(false);
914                 }
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));
923                 } else {
924                         ProxyPortTextField.setText("");
925                 }
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());
932         }
933
934         /**
935          * [\83t\83@\83C\83\8b|\8fI\97¹] \83A\83N\83V\83\87\83\93\82ª\8eÀ\8ds\82³\82ê\82Ü\82µ\82½\81B
936          * 
937          * @param actionEvent
938          *            ActionEvent
939          */
940         void jMenuFileExit_actionPerformed(ActionEvent actionEvent) {
941                 ConvertingSetting setting = this.getSetting();
942                 ConvertingSetting.saveSetting(setting);
943                 System.exit(0);
944         }
945
946         /**
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
948          * 
949          * @param actionEvent
950          *            ActionEvent
951          */
952         void jMenuHelpAbout_actionPerformed(ActionEvent actionEvent) {
953                 MainFrame_AboutBox dlg = new MainFrame_AboutBox(this);
954                 dlg.pack();
955                 dlg.setLocationRelativeTo(this);
956                 dlg.setVisible(true);
957         }
958
959         /* \95Ï\8a·\81E\95Û\91\82·\82é */
960         Converter Converter = null;
961
962         JTextField CommandLineInOptionField = new JTextField();
963
964         JLabel InLabel = new JLabel();
965
966         JLabel OutLabel = new JLabel();
967
968         JLabel CommentNumLabel = new JLabel();
969
970         JTextField CommentNumField = new JTextField();
971
972         JLabel MainOptionLabel = new JLabel();
973
974         JTextField MainOptionField = new JTextField();
975
976         JLabel FontIndexLabel = new JLabel();
977
978         JTextField FontIndexField = new JTextField();
979
980         JLabel VideoID_Label = new JLabel();
981
982         JLabel WayBackLabel = new JLabel();
983
984         JTextField WayBackField = new JTextField();
985
986         GridBagLayout gridBagLayout10 = new GridBagLayout();
987
988         GridBagLayout gridBagLayout11 = new GridBagLayout();
989
990         GridBagLayout gridBagLayout1 = new GridBagLayout();
991
992         JPanel OpPanel = new JPanel();
993
994         GridLayout gridLayout1 = new GridLayout();
995
996         JRadioButton Conv_SaveFileRadioButton = new JRadioButton();
997
998         JRadioButton Conv_SaveFolderRadioButton = new JRadioButton();
999
1000         JTextField ConvertedVideoSavedFolderField = new JTextField();
1001
1002         JButton ShowSavingConvertedVideoFolderDialogButton = new JButton();
1003
1004         JTextField VideoSavedFolderField = new JTextField();
1005
1006         JButton ShowSavingVideoFolderDialogButton = new JButton();
1007
1008         JRadioButton Video_SaveFolderRadioButton = new JRadioButton();
1009
1010         JRadioButton Video_SaveFileRadioButton = new JRadioButton();
1011
1012         JRadioButton Comment_SaveFileRadioButton = new JRadioButton();
1013
1014         JTextField CommentSavedFolderField = new JTextField();
1015
1016         JButton ShowSavingCommentFolderDialogButton = new JButton();
1017
1018         JRadioButton Comment_SaveFolderRadioButton = new JRadioButton();
1019
1020         JPanel BasicInfoTabPanel = new JPanel();
1021
1022         GridBagLayout gridBagLayout12 = new GridBagLayout();
1023
1024         private JPanel ConvertingSettingPanel = null;
1025
1026         private JPanel NGWordSettingPanel = null;
1027
1028         private JLabel NGWordLavel = null;
1029
1030         private JTextField NGWordTextField = null;
1031
1032         private JLabel NGIDLabel = null;
1033
1034         private JTextField NGIDTextField = null;
1035
1036         private JPanel ProxyInfoPanel = null;
1037
1038         private JLabel ProxyLabel = null;
1039
1040         private JTextField ProxyTextField = null;
1041
1042         private JLabel ProxyPortLabel = null;
1043
1044         private JTextField ProxyPortTextField = null;
1045
1046         private JCheckBox UseProxyCheckBox = null;
1047
1048         private JCheckBox FixFontSizeCheckBox = null;
1049
1050         private JCheckBox DelVideoCheckBox = null;
1051
1052         private JCheckBox DelCommentCheckBox = null;
1053
1054         private JCheckBox FixCommentNumCheckBox = null;
1055
1056         private JCheckBox OpaqueCommentCheckBox = null;
1057
1058         private JPanel VideoSaveInfoPanel = null;
1059
1060         private JTabbedPane SaveInfoTabPaneEach = null;
1061
1062         private JPanel VideoSavingTabbedPanel = null;
1063
1064         private JPanel ConvertedVideoSavingTabbedPanel = null;
1065
1066         private JCheckBox NotAddVideoID_ConvVideoCheckBox = null;
1067
1068         private JComboBox FFmpegOptionComboBox = null;
1069
1070         private JButton FFmpegOptionReloadButton = null;
1071
1072         private JPanel FFmpegOptionComboBoxPanel = null;
1073
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));
1080                         Converter.start();
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 */
1084                                 flag.stop();
1085                         }
1086                 }
1087         }
1088
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);
1092         }
1093
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);
1097         }
1098
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(
1101                         ActionEvent e) {
1102                 showSaveDialog("\83R\83\81\83\93\83g\95t\82«\93®\89æ\82Ì\95Û\91\90æ(\83t\83@\83C\83\8b)", ConvertedVideoSavedFileField,
1103                                 true, false);
1104         }
1105
1106         /* FFmpeg\82Ö\82Ì\83p\83X */
1107         public void SettingFFmpegPathButton_actionPerformed(ActionEvent e) {
1108                 showSaveDialog("FFmpeg\82Ö\82Ì\83p\83X", FFmpegPathField, false, false);
1109         }
1110
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);
1113         }
1114
1115         public void SettingFontPathButton_actionPerformed(ActionEvent e) {
1116                 showSaveDialog("\83t\83H\83\93\83g\82Ö\82Ì\83p\83X", FontPathField, false, false);
1117         }
1118
1119         public void this_windowClosing(WindowEvent e) {
1120                 this.jMenuFileExit_actionPerformed(null);
1121         }
1122
1123         public void ShowSavingConvertedVideoFolderDialogButton_actionPerformed(
1124                         ActionEvent e) {
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,
1127                                 true, true);
1128         }
1129
1130         public void ShowSavingCommentFolderDialogButton_actionPerformed(
1131                         ActionEvent e) {
1132                 showSaveDialog("\83R\83\81\83\93\83g\82Ì\95Û\91\90æ(\83t\83H\83\8b\83_)", CommentSavedFolderField, true, true);
1133         }
1134
1135         public void ShowSavingVideoFolderDialogButton_actionPerformed(ActionEvent e) {
1136                 showSaveDialog("\93®\89æ\82Ì\95Û\91\90æ(\83t\83H\83\8b\83_)", VideoSavedFolderField, true, true);
1137         }
1138
1139         /**
1140          * This method initializes ConvertingSettingPanel
1141          * 
1142          * @return javax.swing.JPanel
1143          */
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);
1166                 }
1167                 return ConvertingSettingPanel;
1168         }
1169
1170         /**
1171          * This method initializes NGWordSettingPanel
1172          * 
1173          * @return javax.swing.JPanel
1174          */
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);
1210                 }
1211                 return NGWordSettingPanel;
1212         }
1213
1214         /**
1215          * This method initializes NGWordTextField
1216          * 
1217          * @return javax.swing.JTextField
1218          */
1219         private JTextField getNGWordTextField() {
1220                 if (NGWordTextField == null) {
1221                         NGWordTextField = new JTextField();
1222                 }
1223                 return NGWordTextField;
1224         }
1225
1226         /**
1227          * This method initializes NGIDTextField
1228          * 
1229          * @return javax.swing.JTextField
1230          */
1231         private JTextField getNGIDTextField() {
1232                 if (NGIDTextField == null) {
1233                         NGIDTextField = new JTextField();
1234                 }
1235                 return NGIDTextField;
1236         }
1237
1238         /**
1239          * This method initializes ProxyInfoPanel
1240          * 
1241          * @return javax.swing.JPanel
1242          */
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);
1287                 }
1288                 return ProxyInfoPanel;
1289         }
1290
1291         /**
1292          * This method initializes ProxyTextField
1293          * 
1294          * @return javax.swing.JTextField
1295          */
1296         private JTextField getProxyTextField() {
1297                 if (ProxyTextField == null) {
1298                         ProxyTextField = new JTextField();
1299                 }
1300                 return ProxyTextField;
1301         }
1302
1303         /**
1304          * This method initializes ProxyPortTextField
1305          * 
1306          * @return javax.swing.JTextField
1307          */
1308         private JTextField getProxyPortTextField() {
1309                 if (ProxyPortTextField == null) {
1310                         ProxyPortTextField = new JTextField();
1311                 }
1312                 return ProxyPortTextField;
1313         }
1314
1315         /**
1316          * This method initializes UseProxyCheckBox
1317          * 
1318          * @return javax.swing.JCheckBox
1319          */
1320         private JCheckBox getUseProxyCheckBox() {
1321                 if (UseProxyCheckBox == null) {
1322                         UseProxyCheckBox = new JCheckBox();
1323                         UseProxyCheckBox.setText("\83v\83\8d\83L\83V\82ð\8eg\82¤");
1324                 }
1325                 return UseProxyCheckBox;
1326         }
1327
1328         /**
1329          * This method initializes FixFontSizeCheckBox
1330          * 
1331          * @return javax.swing.JCheckBox
1332          */
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é");
1337                 }
1338                 return FixFontSizeCheckBox;
1339         }
1340
1341         /**
1342          * This method initializes DelVideoCheckBoc
1343          * 
1344          * @return javax.swing.JCheckBox
1345          */
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é");
1350                 }
1351                 return DelVideoCheckBox;
1352         }
1353
1354         /**
1355          * This method initializes DelCommentCheckBox
1356          * 
1357          * @return javax.swing.JCheckBox
1358          */
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é");
1363                 }
1364                 return DelCommentCheckBox;
1365         }
1366
1367         /**
1368          * This method initializes FixCommentNumCheckBox
1369          * 
1370          * @return javax.swing.JCheckBox
1371          */
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é");
1376                 }
1377                 return FixCommentNumCheckBox;
1378         }
1379
1380         /**
1381          * This method initializes OpaqueCommentCheckBox
1382          * 
1383          * @return javax.swing.JCheckBox
1384          */
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é");
1389                 }
1390                 return OpaqueCommentCheckBox;
1391         }
1392
1393         /**
1394          * This method initializes VideoSaveInfoPanel
1395          * 
1396          * @return javax.swing.JPanel
1397          */
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,
1432                                         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);
1464                 }
1465                 return VideoSaveInfoPanel;
1466         }
1467
1468         /**
1469          * This method initializes SaveInfoTabPaneEach
1470          * 
1471          * @return javax.swing.JTabbedPane
1472          */
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);
1480                 }
1481                 return SaveInfoTabPaneEach;
1482         }
1483
1484         /**
1485          * This method initializes VideoSavingTabbedPanel
1486          * 
1487          * @return javax.swing.JPanel
1488          */
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);
1511                 }
1512                 return VideoSavingTabbedPanel;
1513         }
1514
1515         /**
1516          * This method initializes ConvertedVideoSavingTabbedPanel
1517          * 
1518          * @return javax.swing.JPanel
1519          */
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);
1532                 }
1533                 return ConvertedVideoSavingTabbedPanel;
1534         }
1535
1536         /**
1537          * This method initializes NotAddVideoID_ConvVideoCheckBox
1538          * 
1539          * @return javax.swing.JCheckBox
1540          */
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¢");
1545                 }
1546                 return NotAddVideoID_ConvVideoCheckBox;
1547         }
1548
1549         /**
1550          * This method initializes FFmpegOptionComboBox
1551          * 
1552          * @return javax.swing.JComboBox
1553          */
1554         private final OptionComboBoxModel FFmpegOptionModel = new OptionComboBoxModel();
1555
1556         private JLabel ExtOptionLabel = null;
1557
1558         private JTextField ExtOptionField = null;
1559
1560         private JCheckBox NotUseVhookCheckBox = null;
1561
1562         private JTextField ViewCommentField = null;
1563
1564         private JLabel ViewCommentLabel = null;
1565
1566         private JLabel ShadowKindLabel = null;
1567
1568         private JComboBox ShadowComboBox = null;
1569
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);
1586                                                         }
1587                                                 }
1588                                         });
1589                 }
1590                 return FFmpegOptionComboBox;
1591         }
1592
1593         /**
1594          * This method initializes FFmpegOptionReloadButton
1595          * 
1596          * @return javax.swing.JButton
1597          */
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();
1606                                                 }
1607                                         });
1608                 }
1609                 return FFmpegOptionReloadButton;
1610         }
1611
1612         /**
1613          * This method initializes FFmpegOptionComboBoxPanel
1614          * 
1615          * @return javax.swing.JPanel
1616          */
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);
1637                 }
1638                 return FFmpegOptionComboBoxPanel;
1639         }
1640
1641         /**
1642          * This method initializes ExtOptionField
1643          * 
1644          * @return javax.swing.JTextField
1645          */
1646         private JTextField getExtOptionField() {
1647                 if (ExtOptionField == null) {
1648                         ExtOptionField = new JTextField();
1649                 }
1650                 return ExtOptionField;
1651         }
1652
1653         /**
1654          * This method initializes NotUseVhookCheckBox
1655          * 
1656          * @return javax.swing.JCheckBox
1657          */
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");
1662                 }
1663                 return NotUseVhookCheckBox;
1664         }
1665
1666         /**
1667          * This method initializes ViewCommentField     
1668          *      
1669          * @return javax.swing.JTextField       
1670          */
1671         private JTextField getViewCommentField() {
1672                 if (ViewCommentField == null) {
1673                         ViewCommentField = new JTextField();
1674                 }
1675                 return ViewCommentField;
1676         }
1677
1678         /**
1679          * This method initializes ShadowComboBox       
1680          *      
1681          * @return javax.swing.JComboBox        
1682          */
1683
1684         private JComboBox getShadowComboBox() {
1685                 if (ShadowComboBox == null) {
1686                         ShadowComboBox = new JComboBox(ConvertingSetting.ShadowKindArray);
1687                 }
1688                 return ShadowComboBox;
1689         }
1690
1691 }
1692
1693 class MainFrame_ShowSavingVideoFolderDialogButton_actionAdapter implements
1694                 ActionListener {
1695         private MainFrame adaptee;
1696
1697         MainFrame_ShowSavingVideoFolderDialogButton_actionAdapter(MainFrame adaptee) {
1698                 this.adaptee = adaptee;
1699         }
1700
1701         public void actionPerformed(ActionEvent e) {
1702                 adaptee.ShowSavingVideoFolderDialogButton_actionPerformed(e);
1703         }
1704 }
1705
1706 class MainFrame_ShowSavingCommentFolderDialogButton_actionAdapter implements
1707                 ActionListener {
1708         private MainFrame adaptee;
1709
1710         MainFrame_ShowSavingCommentFolderDialogButton_actionAdapter(
1711                         MainFrame adaptee) {
1712                 this.adaptee = adaptee;
1713         }
1714
1715         public void actionPerformed(ActionEvent e) {
1716                 adaptee.ShowSavingCommentFolderDialogButton_actionPerformed(e);
1717         }
1718 }
1719
1720 class MainFrame_ShowSavingConvertedVideoFolderDialogButton_actionAdapter
1721                 implements ActionListener {
1722         private MainFrame adaptee;
1723
1724         MainFrame_ShowSavingConvertedVideoFolderDialogButton_actionAdapter(
1725                         MainFrame adaptee) {
1726                 this.adaptee = adaptee;
1727         }
1728
1729         public void actionPerformed(ActionEvent e) {
1730                 adaptee.ShowSavingConvertedVideoFolderDialogButton_actionPerformed(e);
1731         }
1732 }
1733
1734 class MainFrame_this_windowAdapter extends WindowAdapter {
1735         private MainFrame adaptee;
1736
1737         MainFrame_this_windowAdapter(MainFrame adaptee) {
1738                 this.adaptee = adaptee;
1739         }
1740
1741     @Override
1742         public void windowClosing(WindowEvent e) {
1743                 adaptee.this_windowClosing(e);
1744         }
1745 }
1746
1747 class MainFrame_SettingFontPathButton_actionAdapter implements ActionListener {
1748         private MainFrame adaptee;
1749
1750         MainFrame_SettingFontPathButton_actionAdapter(MainFrame adaptee) {
1751                 this.adaptee = adaptee;
1752         }
1753
1754         public void actionPerformed(ActionEvent e) {
1755                 adaptee.SettingFontPathButton_actionPerformed(e);
1756         }
1757 }
1758
1759 class MainFrame_SettingVhookPathButton_actionAdapter implements ActionListener {
1760         private MainFrame adaptee;
1761
1762         MainFrame_SettingVhookPathButton_actionAdapter(MainFrame adaptee) {
1763                 this.adaptee = adaptee;
1764         }
1765
1766         public void actionPerformed(ActionEvent e) {
1767                 adaptee.SettingVhookPathButton_actionPerformed(e);
1768         }
1769 }
1770
1771 class MainFrame_SettingFFmpegPathButton_actionAdapter implements ActionListener {
1772         private MainFrame adaptee;
1773
1774         MainFrame_SettingFFmpegPathButton_actionAdapter(MainFrame adaptee) {
1775                 this.adaptee = adaptee;
1776         }
1777
1778         public void actionPerformed(ActionEvent e) {
1779                 adaptee.SettingFFmpegPathButton_actionPerformed(e);
1780         }
1781 }
1782
1783 class MainFrame_ShowSavingConvertedVideoDialogButton_actionAdapter implements
1784                 ActionListener {
1785         private MainFrame adaptee;
1786
1787         MainFrame_ShowSavingConvertedVideoDialogButton_actionAdapter(
1788                         MainFrame adaptee) {
1789                 this.adaptee = adaptee;
1790         }
1791
1792         public void actionPerformed(ActionEvent e) {
1793                 adaptee.ShowSavingConvertedVideoDialogButton_actionPerformed(e);
1794         }
1795 }
1796
1797 class MainFrame_ShowSavingCommentDialogButton_actionAdapter implements
1798                 ActionListener {
1799         private MainFrame adaptee;
1800
1801         MainFrame_ShowSavingCommentDialogButton_actionAdapter(MainFrame adaptee) {
1802                 this.adaptee = adaptee;
1803         }
1804
1805         public void actionPerformed(ActionEvent e) {
1806                 adaptee.ShowSavingCommentDialogButton_actionPerformed(e);
1807         }
1808 }
1809
1810 class MainFrame_ShowSavingVideoDialogButton_actionAdapter implements
1811                 ActionListener {
1812         private MainFrame adaptee;
1813
1814         MainFrame_ShowSavingVideoDialogButton_actionAdapter(MainFrame adaptee) {
1815                 this.adaptee = adaptee;
1816         }
1817
1818         public void actionPerformed(ActionEvent e) {
1819                 adaptee.ShowSavingVideoDialogButton_actionPerformed(e);
1820         }
1821 }
1822
1823 class MainFrame_DoButton_actionAdapter implements ActionListener {
1824         private MainFrame adaptee;
1825
1826         MainFrame_DoButton_actionAdapter(MainFrame adaptee) {
1827                 this.adaptee = adaptee;
1828         }
1829
1830         public void actionPerformed(ActionEvent e) {
1831                 adaptee.DoButton_actionPerformed(e);
1832         }
1833 }
1834
1835 class MainFrame_jMenuFileExit_ActionAdapter implements ActionListener {
1836         MainFrame adaptee;
1837
1838         MainFrame_jMenuFileExit_ActionAdapter(MainFrame adaptee) {
1839                 this.adaptee = adaptee;
1840         }
1841
1842         public void actionPerformed(ActionEvent actionEvent) {
1843                 adaptee.jMenuFileExit_actionPerformed(actionEvent);
1844         }
1845 }
1846
1847 class MainFrame_jMenuHelpAbout_ActionAdapter implements ActionListener {
1848         MainFrame adaptee;
1849
1850         MainFrame_jMenuHelpAbout_ActionAdapter(MainFrame adaptee) {
1851                 this.adaptee = adaptee;
1852         }
1853
1854         public void actionPerformed(ActionEvent actionEvent) {
1855                 adaptee.jMenuHelpAbout_actionPerformed(actionEvent);
1856         }
1857 }