+++ /dev/null
-package saccubus;
-
-import java.io.IOException;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-import javax.swing.SwingUtilities;
-import javax.swing.UIManager;
-
-import yukihane.inqubus.saccubus.prompt.Prompt;
-import yukihane.inqubus.gui.MainFrame;
-
-/**
- * <p>
- * タイトル: さきゅばす
- * </p>
- *
- * <p>
- * 説明: ニコニコ動画の動画をコメントつきで保存
- * </p>
- *
- * <p>
- * 著作権: Copyright (c) 2007 PSI
- * </p>
- *
- * <p>
- * 会社名:
- * </p>
- *
- * @author 未入力
- * @version 1.0
- */
-public class Saccubus {
-
- private static final Logger logger = Logger.getLogger(Saccubus.class.getName());
- boolean packFrame = false;
-
- /**
- * アプリケーションの構築と表示。
- */
- public Saccubus() {
- // メインフレームの準備
- MainFrame frame = new MainFrame();
- // validate() はサイズを調整する
- // pack() は有効なサイズ情報をレイアウトなどから取得する
- if (packFrame) {
- frame.pack();
- } else {
- frame.validate();
- }
-
- // ウィンドウを中央に配置
- frame.setLocationByPlatform(true);
-
- // スプラッシュは隠す
- // メインフレーム表示
- frame.setVisible(true);
- }
-
- /**
- * アプリケーションエントリポイント。
- *
- * @param args
- * String[]
- */
- public static void main(String[] args) throws Exception {
- //引数が有る場合はCUIで起動
- if (args.length > 0) {
- Prompt.main(args);
- return;
- }
- //引数が無い場合はGUIで起動
- SwingUtilities.invokeLater(new Runnable() {
- public void run() {
- try {
- UIManager.setLookAndFeel(UIManager
- .getSystemLookAndFeelClassName());
- } catch (Exception exception) {
- logger.log(Level.SEVERE, null, exception);
- }
-
- new Saccubus();
- }
- });
- }
-}
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-
-<Form version="1.3" maxVersion="1.7" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
- <NonVisualComponents>
- <Component class="javax.swing.ButtonGroup" name="inputCommentSaveGroup">
- </Component>
- <Component class="javax.swing.ButtonGroup" name="outputVideoSaveGroup">
- </Component>
- <Component class="javax.swing.ButtonGroup" name="inputTcommentSaveGroup">
- </Component>
- </NonVisualComponents>
- <AuxValues>
- <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
- <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
- <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
- <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
- <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
- <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
- <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
- <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
- <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
- </AuxValues>
-
- <Layout>
- <DimensionLayout dim="0">
- <Group type="103" groupAlignment="0" attributes="0">
- <Component id="saveTabbedPane" alignment="0" pref="374" max="32767" attributes="0"/>
- </Group>
- </DimensionLayout>
- <DimensionLayout dim="1">
- <Group type="103" groupAlignment="0" attributes="0">
- <Component id="saveTabbedPane" alignment="0" pref="297" max="32767" attributes="0"/>
- </Group>
- </DimensionLayout>
- </Layout>
- <SubComponents>
- <Container class="javax.swing.JTabbedPane" name="saveTabbedPane">
- <Properties>
- <Property name="name" type="java.lang.String" value="saveTabbedPane" noResource="true"/>
- </Properties>
-
- <Layout class="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout"/>
- <SubComponents>
- <Container class="javax.swing.JPanel" name="inputVideoTab">
- <Constraints>
- <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout" value="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout$JTabbedPaneConstraintsDescription">
- <JTabbedPaneConstraints tabName="入力動画">
- <Property name="tabTitle" type="java.lang.String" value="入力動画"/>
- </JTabbedPaneConstraints>
- </Constraint>
- </Constraints>
-
- <Layout>
- <DimensionLayout dim="0">
- <Group type="103" groupAlignment="0" attributes="0">
- <EmptySpace min="0" pref="369" max="32767" attributes="0"/>
- </Group>
- </DimensionLayout>
- <DimensionLayout dim="1">
- <Group type="103" groupAlignment="0" attributes="0">
- <EmptySpace min="0" pref="270" max="32767" attributes="0"/>
- </Group>
- </DimensionLayout>
- </Layout>
- </Container>
- <Container class="javax.swing.JPanel" name="inputCommentTab">
- <Constraints>
- <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout" value="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout$JTabbedPaneConstraintsDescription">
- <JTabbedPaneConstraints tabName="入力コメント">
- <Property name="tabTitle" type="java.lang.String" value="入力コメント"/>
- </JTabbedPaneConstraints>
- </Constraint>
- </Constraints>
-
- <Layout>
- <DimensionLayout dim="0">
- <Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" alignment="0" attributes="0">
- <EmptySpace max="-2" attributes="0"/>
- <Component id="commentSaveInfoPanel" max="32767" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
- </Group>
- </Group>
- </DimensionLayout>
- <DimensionLayout dim="1">
- <Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" alignment="0" attributes="0">
- <EmptySpace max="-2" attributes="0"/>
- <Component id="commentSaveInfoPanel" min="-2" max="-2" attributes="0"/>
- <EmptySpace pref="30" max="32767" attributes="0"/>
- </Group>
- </Group>
- </DimensionLayout>
- </Layout>
- <SubComponents>
- <Container class="javax.swing.JPanel" name="commentSaveInfoPanel">
- <Properties>
- <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
- <Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo">
- <TitledBorder title="コメント保存設定"/>
- </Border>
- </Property>
- </Properties>
-
- <Layout>
- <DimensionLayout dim="0">
- <Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" attributes="0">
- <Component id="savingCommentCheckBox" min="-2" max="-2" attributes="0"/>
- <EmptySpace min="-2" pref="79" max="-2" attributes="0"/>
- </Group>
- <Group type="102" alignment="0" attributes="0">
- <EmptySpace min="21" pref="21" max="21" attributes="0"/>
- <Component id="jPanel7" max="32767" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
- </Group>
- </Group>
- </DimensionLayout>
- <DimensionLayout dim="1">
- <Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" alignment="0" attributes="0">
- <Component id="savingCommentCheckBox" min="-2" max="-2" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
- <Component id="jPanel7" min="-2" max="-2" attributes="0"/>
- <EmptySpace max="32767" attributes="0"/>
- </Group>
- </Group>
- </DimensionLayout>
- </Layout>
- <SubComponents>
- <Component class="javax.swing.JCheckBox" name="savingCommentCheckBox">
- <Properties>
- <Property name="text" type="java.lang.String" value="コメントをダウンロードする"/>
- <Property name="name" type="java.lang.String" value="savingCommentCheckBox" noResource="true"/>
- </Properties>
- </Component>
- <Container class="javax.swing.JPanel" name="jPanel7">
-
- <Layout>
- <DimensionLayout dim="0">
- <Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" alignment="0" attributes="0">
- <Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" alignment="0" attributes="1">
- <EmptySpace min="21" pref="21" max="21" attributes="0"/>
- <Component id="jLabel1" min="-2" max="-2" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
- <Component id="commentNumField" min="-2" pref="60" max="-2" attributes="0"/>
- </Group>
- <Component id="delCommentCheckBox" alignment="0" min="-2" max="-2" attributes="0"/>
- <Component id="fixCommentNumCheckBox" alignment="0" min="-2" max="-2" attributes="0"/>
- <Component id="commentSaveFolderRadioButton" alignment="0" min="-2" max="-2" attributes="0"/>
- <Component id="commentSaveFileRadioButton" alignment="0" min="-2" max="-2" attributes="0"/>
- <Group type="102" alignment="0" attributes="0">
- <EmptySpace min="21" pref="21" max="-2" attributes="0"/>
- <Group type="103" groupAlignment="0" attributes="0">
- <Component id="commentSavedFileField" pref="197" max="32767" attributes="1"/>
- <Component id="commentSavedFolderField" alignment="0" pref="197" max="32767" attributes="1"/>
- </Group>
- <EmptySpace max="-2" attributes="0"/>
- <Group type="103" groupAlignment="1" attributes="0">
- <Component id="showSavingCommentFolderDialogButton" min="-2" max="-2" attributes="0"/>
- <Component id="showSavingCommentFileDialogButton" alignment="1" min="-2" max="-2" attributes="0"/>
- </Group>
- </Group>
- </Group>
- <EmptySpace max="-2" attributes="0"/>
- </Group>
- </Group>
- </DimensionLayout>
- <DimensionLayout dim="1">
- <Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" alignment="0" attributes="0">
- <EmptySpace max="-2" attributes="0"/>
- <Component id="delCommentCheckBox" min="-2" max="-2" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
- <Component id="fixCommentNumCheckBox" min="-2" max="-2" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
- <Group type="103" groupAlignment="3" attributes="0">
- <Component id="jLabel1" alignment="3" min="-2" max="-2" attributes="0"/>
- <Component id="commentNumField" alignment="3" min="-2" max="-2" attributes="0"/>
- </Group>
- <EmptySpace max="-2" attributes="0"/>
- <Component id="commentSaveFolderRadioButton" min="-2" max="-2" attributes="0"/>
- <EmptySpace min="-2" max="-2" attributes="0"/>
- <Group type="103" groupAlignment="3" attributes="0">
- <Component id="commentSavedFolderField" alignment="3" min="-2" max="-2" attributes="0"/>
- <Component id="showSavingCommentFolderDialogButton" alignment="3" min="-2" max="-2" attributes="0"/>
- </Group>
- <EmptySpace min="-2" max="-2" attributes="0"/>
- <Component id="commentSaveFileRadioButton" min="-2" max="-2" attributes="0"/>
- <EmptySpace min="-2" max="-2" attributes="0"/>
- <Group type="103" groupAlignment="3" attributes="0">
- <Component id="commentSavedFileField" alignment="3" min="-2" max="-2" attributes="0"/>
- <Component id="showSavingCommentFileDialogButton" alignment="3" min="-2" max="-2" attributes="0"/>
- </Group>
- <EmptySpace min="-2" max="-2" attributes="0"/>
- </Group>
- </Group>
- </DimensionLayout>
- </Layout>
- <SubComponents>
- <Component class="javax.swing.JCheckBox" name="delCommentCheckBox">
- <Properties>
- <Property name="text" type="java.lang.String" value="変換後にコメントファイルを削除する"/>
- <Property name="name" type="java.lang.String" value="delCommentCheckBox" noResource="true"/>
- </Properties>
- </Component>
- <Component class="javax.swing.JCheckBox" name="fixCommentNumCheckBox">
- <Properties>
- <Property name="text" type="java.lang.String" value="コメント取得数は自動で調整する"/>
- <Property name="name" type="java.lang.String" value="fixCommentNumCheckBox" noResource="true"/>
- </Properties>
- </Component>
- <Component class="javax.swing.JLabel" name="jLabel1">
- <Properties>
- <Property name="text" type="java.lang.String" value="取得コメント数"/>
- </Properties>
- </Component>
- <Component class="javax.swing.JTextField" name="commentNumField">
- <Properties>
- <Property name="name" type="java.lang.String" value="commentNumField" noResource="true"/>
- </Properties>
- </Component>
- <Component class="javax.swing.JRadioButton" name="commentSaveFolderRadioButton">
- <Properties>
- <Property name="buttonGroup" type="javax.swing.ButtonGroup" editor="org.netbeans.modules.form.RADComponent$ButtonGroupPropertyEditor">
- <ComponentRef name="inputCommentSaveGroup"/>
- </Property>
- <Property name="text" type="java.lang.String" value="保存するフォルダを指定し、ファイル名は自動で決定する"/>
- <Property name="name" type="java.lang.String" value="commentSaveFolderRadioButton" noResource="true"/>
- </Properties>
- </Component>
- <Component class="javax.swing.JTextField" name="commentSavedFolderField">
- <Properties>
- <Property name="name" type="java.lang.String" value="commentSavedFolderField" noResource="true"/>
- </Properties>
- </Component>
- <Component class="javax.swing.JButton" name="showSavingCommentFolderDialogButton">
- <Properties>
- <Property name="text" type="java.lang.String" value="参照..."/>
- <Property name="name" type="java.lang.String" value="showSavingCommentFolderDialogButton" noResource="true"/>
- </Properties>
- </Component>
- <Component class="javax.swing.JRadioButton" name="commentSaveFileRadioButton">
- <Properties>
- <Property name="buttonGroup" type="javax.swing.ButtonGroup" editor="org.netbeans.modules.form.RADComponent$ButtonGroupPropertyEditor">
- <ComponentRef name="inputCommentSaveGroup"/>
- </Property>
- <Property name="text" type="java.lang.String" value="保存するファイル名を指定する"/>
- <Property name="name" type="java.lang.String" value="commentSaveFileRadioButton" noResource="true"/>
- </Properties>
- </Component>
- <Component class="javax.swing.JTextField" name="commentSavedFileField">
- <Properties>
- <Property name="name" type="java.lang.String" value="commentSavedFileField" noResource="true"/>
- </Properties>
- </Component>
- <Component class="javax.swing.JButton" name="showSavingCommentFileDialogButton">
- <Properties>
- <Property name="text" type="java.lang.String" value="参照..."/>
- <Property name="name" type="java.lang.String" value="showSavingCommentFileDialogButton" noResource="true"/>
- </Properties>
- </Component>
- </SubComponents>
- </Container>
- </SubComponents>
- </Container>
- </SubComponents>
- </Container>
- <Container class="javax.swing.JPanel" name="inputTcommentTab">
- <Constraints>
- <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout" value="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout$JTabbedPaneConstraintsDescription">
- <JTabbedPaneConstraints tabName="入力投稿者コメント">
- <Property name="tabTitle" type="java.lang.String" value="入力投稿者コメント"/>
- </JTabbedPaneConstraints>
- </Constraint>
- </Constraints>
-
- <Layout>
- <DimensionLayout dim="0">
- <Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" alignment="0" attributes="0">
- <EmptySpace max="-2" attributes="0"/>
- <Component id="tcommentSaveInfoPanel" max="32767" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
- </Group>
- </Group>
- </DimensionLayout>
- <DimensionLayout dim="1">
- <Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" alignment="0" attributes="0">
- <EmptySpace max="-2" attributes="0"/>
- <Component id="tcommentSaveInfoPanel" min="-2" max="-2" attributes="0"/>
- <EmptySpace pref="74" max="32767" attributes="0"/>
- </Group>
- </Group>
- </DimensionLayout>
- </Layout>
- <SubComponents>
- <Container class="javax.swing.JPanel" name="tcommentSaveInfoPanel">
- <Properties>
- <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
- <Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo">
- <TitledBorder title="投稿者コメント保存設定"/>
- </Border>
- </Property>
- </Properties>
-
- <Layout>
- <DimensionLayout dim="0">
- <Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" alignment="0" attributes="0">
- <Component id="needDownloadTcomment" min="-2" max="-2" attributes="0"/>
- <EmptySpace min="-2" pref="79" max="-2" attributes="0"/>
- </Group>
- <Group type="102" alignment="0" attributes="0">
- <EmptySpace min="21" pref="21" max="21" attributes="0"/>
- <Component id="jPanel8" max="32767" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
- </Group>
- </Group>
- </DimensionLayout>
- <DimensionLayout dim="1">
- <Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" alignment="0" attributes="0">
- <Component id="needDownloadTcomment" min="-2" max="-2" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
- <Component id="jPanel8" min="-2" max="-2" attributes="0"/>
- <EmptySpace max="32767" attributes="0"/>
- </Group>
- </Group>
- </DimensionLayout>
- </Layout>
- <SubComponents>
- <Component class="javax.swing.JCheckBox" name="needDownloadTcomment">
- <Properties>
- <Property name="text" type="java.lang.String" value="コメントをダウンロードする"/>
- <Property name="name" type="java.lang.String" value="needDownloadTcomment" noResource="true"/>
- </Properties>
- </Component>
- <Container class="javax.swing.JPanel" name="jPanel8">
-
- <Layout>
- <DimensionLayout dim="0">
- <Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" attributes="0">
- <Group type="103" groupAlignment="0" attributes="0">
- <Component id="delTcomment" alignment="0" min="-2" max="-2" attributes="0"/>
- <Component id="tcommentSaveInFolder" alignment="0" min="-2" max="-2" attributes="0"/>
- <Group type="102" alignment="0" attributes="0">
- <EmptySpace max="-2" attributes="0"/>
- <Component id="tcommentFolder" pref="206" max="32767" attributes="1"/>
- <EmptySpace min="-2" max="-2" attributes="0"/>
- <Component id="tcoomentFolderChooserButton" min="-2" max="-2" attributes="0"/>
- </Group>
- <Component id="tcommentSaveToFile" alignment="0" min="-2" max="-2" attributes="0"/>
- <Group type="102" alignment="0" attributes="0">
- <EmptySpace max="-2" attributes="0"/>
- <Component id="tcommentFile" pref="206" max="32767" attributes="1"/>
- <EmptySpace min="-2" max="-2" attributes="0"/>
- <Component id="tcommentFileChooserButton" min="-2" max="-2" attributes="0"/>
- </Group>
- </Group>
- <EmptySpace max="-2" attributes="0"/>
- </Group>
- </Group>
- </DimensionLayout>
- <DimensionLayout dim="1">
- <Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" alignment="0" attributes="0">
- <EmptySpace max="-2" attributes="0"/>
- <Component id="delTcomment" min="-2" max="-2" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
- <Component id="tcommentSaveInFolder" min="-2" max="-2" attributes="0"/>
- <EmptySpace min="-2" max="-2" attributes="0"/>
- <Group type="103" groupAlignment="3" attributes="0">
- <Component id="tcommentFolder" alignment="3" min="-2" max="-2" attributes="0"/>
- <Component id="tcoomentFolderChooserButton" alignment="3" min="-2" max="-2" attributes="0"/>
- </Group>
- <EmptySpace min="-2" max="-2" attributes="0"/>
- <Component id="tcommentSaveToFile" min="-2" max="-2" attributes="0"/>
- <EmptySpace min="-2" max="-2" attributes="0"/>
- <Group type="103" groupAlignment="3" attributes="0">
- <Component id="tcommentFile" alignment="3" min="-2" max="-2" attributes="0"/>
- <Component id="tcommentFileChooserButton" alignment="3" min="-2" max="-2" attributes="0"/>
- </Group>
- <EmptySpace min="-2" max="-2" attributes="0"/>
- </Group>
- </Group>
- </DimensionLayout>
- </Layout>
- <SubComponents>
- <Component class="javax.swing.JCheckBox" name="delTcomment">
- <Properties>
- <Property name="text" type="java.lang.String" value="変換後にコメントファイルを削除する"/>
- <Property name="name" type="java.lang.String" value="delTcomment" noResource="true"/>
- </Properties>
- </Component>
- <Component class="javax.swing.JRadioButton" name="tcommentSaveInFolder">
- <Properties>
- <Property name="buttonGroup" type="javax.swing.ButtonGroup" editor="org.netbeans.modules.form.RADComponent$ButtonGroupPropertyEditor">
- <ComponentRef name="inputTcommentSaveGroup"/>
- </Property>
- <Property name="text" type="java.lang.String" value="保存するフォルダを指定し、ファイル名は自動で決定する"/>
- <Property name="name" type="java.lang.String" value="tcommentSaveInFolder" noResource="true"/>
- </Properties>
- </Component>
- <Component class="javax.swing.JTextField" name="tcommentFolder">
- <Properties>
- <Property name="name" type="java.lang.String" value="tcommentFolder" noResource="true"/>
- </Properties>
- </Component>
- <Component class="javax.swing.JButton" name="tcoomentFolderChooserButton">
- <Properties>
- <Property name="text" type="java.lang.String" value="参照..."/>
- <Property name="name" type="java.lang.String" value="tcoomentFolderChooserButton" noResource="true"/>
- </Properties>
- <Events>
- <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="tcoomentFolderChooserButtonActionPerformed"/>
- </Events>
- </Component>
- <Component class="javax.swing.JRadioButton" name="tcommentSaveToFile">
- <Properties>
- <Property name="buttonGroup" type="javax.swing.ButtonGroup" editor="org.netbeans.modules.form.RADComponent$ButtonGroupPropertyEditor">
- <ComponentRef name="inputTcommentSaveGroup"/>
- </Property>
- <Property name="text" type="java.lang.String" value="保存するファイル名を指定する"/>
- <Property name="name" type="java.lang.String" value="tcommentSaveToFile" noResource="true"/>
- </Properties>
- </Component>
- <Component class="javax.swing.JTextField" name="tcommentFile">
- <Properties>
- <Property name="name" type="java.lang.String" value="tcommentFile" noResource="true"/>
- </Properties>
- </Component>
- <Component class="javax.swing.JButton" name="tcommentFileChooserButton">
- <Properties>
- <Property name="text" type="java.lang.String" value="参照..."/>
- <Property name="name" type="java.lang.String" value="tcommentFileChooserButton" noResource="true"/>
- </Properties>
- <Events>
- <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="tcommentFileChooserButtonActionPerformed"/>
- </Events>
- </Component>
- </SubComponents>
- </Container>
- </SubComponents>
- </Container>
- </SubComponents>
- </Container>
- <Container class="javax.swing.JPanel" name="outputVideoTab">
- <Constraints>
- <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout" value="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout$JTabbedPaneConstraintsDescription">
- <JTabbedPaneConstraints tabName="出力コメント付き動画">
- <Property name="tabTitle" type="java.lang.String" value="出力コメント付き動画"/>
- </JTabbedPaneConstraints>
- </Constraint>
- </Constraints>
-
- <Layout>
- <DimensionLayout dim="0">
- <Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" alignment="0" attributes="0">
- <EmptySpace max="-2" attributes="0"/>
- <Component id="jPanel3" min="-2" max="-2" attributes="0"/>
- <EmptySpace pref="15" max="32767" attributes="0"/>
- </Group>
- </Group>
- </DimensionLayout>
- <DimensionLayout dim="1">
- <Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" alignment="0" attributes="0">
- <EmptySpace max="-2" attributes="0"/>
- <Component id="jPanel3" min="-2" max="-2" attributes="0"/>
- <EmptySpace pref="38" max="32767" attributes="0"/>
- </Group>
- </Group>
- </DimensionLayout>
- </Layout>
- <SubComponents>
- <Container class="javax.swing.JPanel" name="jPanel3">
- <Properties>
- <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
- <Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo">
- <TitledBorder title="コメント付き動画保存設定"/>
- </Border>
- </Property>
- </Properties>
-
- <Layout>
- <DimensionLayout dim="0">
- <Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" attributes="0">
- <Group type="103" groupAlignment="0" attributes="0">
- <Component id="savingConvertedVideoCheckBox" min="-2" max="-2" attributes="0"/>
- <Group type="102" alignment="0" attributes="0">
- <EmptySpace min="21" pref="21" max="21" attributes="0"/>
- <Component id="jPanel5" min="-2" max="-2" attributes="0"/>
- </Group>
- </Group>
- <EmptySpace min="-2" max="-2" attributes="0"/>
- </Group>
- </Group>
- </DimensionLayout>
- <DimensionLayout dim="1">
- <Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" alignment="0" attributes="0">
- <Component id="savingConvertedVideoCheckBox" min="-2" max="-2" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
- <Component id="jPanel5" min="-2" max="-2" attributes="0"/>
- <EmptySpace max="32767" attributes="0"/>
- </Group>
- </Group>
- </DimensionLayout>
- </Layout>
- <SubComponents>
- <Component class="javax.swing.JCheckBox" name="savingConvertedVideoCheckBox">
- <Properties>
- <Property name="text" type="java.lang.String" value="動画を変換する"/>
- <Property name="name" type="java.lang.String" value="savingConvertedVideoCheckBox" noResource="true"/>
- </Properties>
- </Component>
- <Container class="javax.swing.JPanel" name="jPanel5">
-
- <Layout>
- <DimensionLayout dim="0">
- <Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" attributes="0">
- <Group type="103" groupAlignment="0" attributes="0">
- <Component id="addComment" alignment="0" min="-2" max="-2" attributes="0"/>
- <Component id="addTcomment" alignment="0" min="-2" max="-2" attributes="0"/>
- <Component id="convSaveFileRadioButton" alignment="0" min="-2" max="-2" attributes="0"/>
- <Group type="102" alignment="1" attributes="0">
- <EmptySpace min="-2" pref="21" max="-2" attributes="0"/>
- <Component id="convertedVideoSavedFileField" pref="194" max="32767" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
- <Component id="showSavingConvertedVideoFileDialogButton" min="-2" max="-2" attributes="0"/>
- </Group>
- <Group type="102" alignment="0" attributes="1">
- <EmptySpace min="21" pref="21" max="21" attributes="0"/>
- <Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" alignment="1" attributes="0">
- <Component id="convertedVideoSavedFolderField" pref="194" max="32767" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
- <Component id="showSavingConvertedVideoFolderDialogButton" min="-2" max="-2" attributes="0"/>
- </Group>
- <Component id="notAddVideoIdConvVideoCheckBox" alignment="0" min="-2" max="-2" attributes="0"/>
- </Group>
- </Group>
- <Component id="convSaveFolderRadioButton" alignment="0" min="-2" max="-2" attributes="0"/>
- </Group>
- <EmptySpace max="-2" attributes="0"/>
- </Group>
- </Group>
- </DimensionLayout>
- <DimensionLayout dim="1">
- <Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" alignment="0" attributes="0">
- <Component id="addComment" min="-2" max="-2" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
- <Component id="addTcomment" min="-2" max="-2" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
- <Component id="convSaveFolderRadioButton" min="-2" max="-2" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
- <Component id="notAddVideoIdConvVideoCheckBox" min="-2" max="-2" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
- <Group type="103" groupAlignment="3" attributes="0">
- <Component id="convertedVideoSavedFolderField" alignment="3" min="-2" max="-2" attributes="0"/>
- <Component id="showSavingConvertedVideoFolderDialogButton" alignment="3" min="-2" max="-2" attributes="0"/>
- </Group>
- <EmptySpace max="-2" attributes="0"/>
- <Component id="convSaveFileRadioButton" min="-2" max="-2" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
- <Group type="103" groupAlignment="3" attributes="0">
- <Component id="convertedVideoSavedFileField" alignment="3" min="-2" max="-2" attributes="0"/>
- <Component id="showSavingConvertedVideoFileDialogButton" alignment="3" min="-2" max="-2" attributes="0"/>
- </Group>
- <EmptySpace max="32767" attributes="0"/>
- </Group>
- </Group>
- </DimensionLayout>
- </Layout>
- <SubComponents>
- <Component class="javax.swing.JCheckBox" name="addComment">
- <Properties>
- <Property name="text" type="java.lang.String" value="コメントをつける"/>
- <Property name="name" type="java.lang.String" value="addComment" noResource="true"/>
- </Properties>
- </Component>
- <Component class="javax.swing.JCheckBox" name="addTcomment">
- <Properties>
- <Property name="text" type="java.lang.String" value="投稿者コメントをつける"/>
- <Property name="name" type="java.lang.String" value="addTcomment" noResource="true"/>
- </Properties>
- </Component>
- <Component class="javax.swing.JRadioButton" name="convSaveFolderRadioButton">
- <Properties>
- <Property name="buttonGroup" type="javax.swing.ButtonGroup" editor="org.netbeans.modules.form.RADComponent$ButtonGroupPropertyEditor">
- <ComponentRef name="outputVideoSaveGroup"/>
- </Property>
- <Property name="text" type="java.lang.String" value="保存するフォルダを指定し、ファイル名は自動で決定する"/>
- <Property name="name" type="java.lang.String" value="convSaveFolderRadioButton" noResource="true"/>
- </Properties>
- </Component>
- <Component class="javax.swing.JCheckBox" name="notAddVideoIdConvVideoCheckBox">
- <Properties>
- <Property name="text" type="java.lang.String" value="ファイル名に動画IDを付加しない"/>
- <Property name="name" type="java.lang.String" value="notAddVideoIdConvVideoCheckBox" noResource="true"/>
- </Properties>
- </Component>
- <Component class="javax.swing.JTextField" name="convertedVideoSavedFolderField">
- <Properties>
- <Property name="name" type="java.lang.String" value="convertedVideoSavedFolderField" noResource="true"/>
- </Properties>
- </Component>
- <Component class="javax.swing.JButton" name="showSavingConvertedVideoFolderDialogButton">
- <Properties>
- <Property name="text" type="java.lang.String" value="参照..."/>
- </Properties>
- </Component>
- <Component class="javax.swing.JRadioButton" name="convSaveFileRadioButton">
- <Properties>
- <Property name="buttonGroup" type="javax.swing.ButtonGroup" editor="org.netbeans.modules.form.RADComponent$ButtonGroupPropertyEditor">
- <ComponentRef name="outputVideoSaveGroup"/>
- </Property>
- <Property name="text" type="java.lang.String" value="保存するファイル名を指定する"/>
- <Property name="name" type="java.lang.String" value="convSaveFileRadioButton" noResource="true"/>
- </Properties>
- </Component>
- <Component class="javax.swing.JTextField" name="convertedVideoSavedFileField">
- <Properties>
- <Property name="name" type="java.lang.String" value="convertedVideoSavedFileField" noResource="true"/>
- </Properties>
- </Component>
- <Component class="javax.swing.JButton" name="showSavingConvertedVideoFileDialogButton">
- <Properties>
- <Property name="text" type="java.lang.String" value="参照..."/>
- </Properties>
- </Component>
- </SubComponents>
- </Container>
- </SubComponents>
- </Container>
- </SubComponents>
- </Container>
- </SubComponents>
- </Container>
- </SubComponents>
-</Form>
+++ /dev/null
-/*
- * SavePanel.java
- *
- * Created on 2009/12/04, 21:06:09
- */
-package saccubus;
-
-import java.awt.GridLayout;
-import java.io.File;
-import javax.swing.JButton;
-import javax.swing.JCheckBox;
-import javax.swing.JFileChooser;
-import javax.swing.JRadioButton;
-import javax.swing.JTextField;
-
-/**
- *
- * @author yuki
- */
-public class SavePanel extends javax.swing.JPanel {
- private static final long serialVersionUID = 1L;
-
- private final VideoSaveInfoPanel videoSaveInfoPanel = new VideoSaveInfoPanel();
-
- /** Creates new form SavePanel */
- public SavePanel() {
- initComponents();
- inputVideoTab.setLayout(new GridLayout());
- inputVideoTab.add(videoSaveInfoPanel);
- }
-
- /** This method is called from within the constructor to
- * initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is
- * always regenerated by the Form Editor.
- */
- @SuppressWarnings("unchecked")
- // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
- private void initComponents() {
-
- inputCommentSaveGroup = new javax.swing.ButtonGroup();
- outputVideoSaveGroup = new javax.swing.ButtonGroup();
- inputTcommentSaveGroup = new javax.swing.ButtonGroup();
- saveTabbedPane = new javax.swing.JTabbedPane();
- inputVideoTab = new javax.swing.JPanel();
- inputCommentTab = new javax.swing.JPanel();
- commentSaveInfoPanel = new javax.swing.JPanel();
- savingCommentCheckBox = new javax.swing.JCheckBox();
- jPanel7 = new javax.swing.JPanel();
- delCommentCheckBox = new javax.swing.JCheckBox();
- fixCommentNumCheckBox = new javax.swing.JCheckBox();
- jLabel1 = new javax.swing.JLabel();
- commentNumField = new javax.swing.JTextField();
- commentSaveFolderRadioButton = new javax.swing.JRadioButton();
- commentSavedFolderField = new javax.swing.JTextField();
- showSavingCommentFolderDialogButton = new javax.swing.JButton();
- commentSaveFileRadioButton = new javax.swing.JRadioButton();
- commentSavedFileField = new javax.swing.JTextField();
- showSavingCommentFileDialogButton = new javax.swing.JButton();
- inputTcommentTab = new javax.swing.JPanel();
- tcommentSaveInfoPanel = new javax.swing.JPanel();
- needDownloadTcomment = new javax.swing.JCheckBox();
- jPanel8 = new javax.swing.JPanel();
- delTcomment = new javax.swing.JCheckBox();
- tcommentSaveInFolder = new javax.swing.JRadioButton();
- tcommentFolder = new javax.swing.JTextField();
- tcoomentFolderChooserButton = new javax.swing.JButton();
- tcommentSaveToFile = new javax.swing.JRadioButton();
- tcommentFile = new javax.swing.JTextField();
- tcommentFileChooserButton = new javax.swing.JButton();
- outputVideoTab = new javax.swing.JPanel();
- jPanel3 = new javax.swing.JPanel();
- savingConvertedVideoCheckBox = new javax.swing.JCheckBox();
- jPanel5 = new javax.swing.JPanel();
- addComment = new javax.swing.JCheckBox();
- addTcomment = new javax.swing.JCheckBox();
- convSaveFolderRadioButton = new javax.swing.JRadioButton();
- notAddVideoIdConvVideoCheckBox = new javax.swing.JCheckBox();
- convertedVideoSavedFolderField = new javax.swing.JTextField();
- showSavingConvertedVideoFolderDialogButton = new javax.swing.JButton();
- convSaveFileRadioButton = new javax.swing.JRadioButton();
- convertedVideoSavedFileField = new javax.swing.JTextField();
- showSavingConvertedVideoFileDialogButton = new javax.swing.JButton();
-
- saveTabbedPane.setName("saveTabbedPane"); // NOI18N
-
- javax.swing.GroupLayout inputVideoTabLayout = new javax.swing.GroupLayout(inputVideoTab);
- inputVideoTab.setLayout(inputVideoTabLayout);
- inputVideoTabLayout.setHorizontalGroup(
- inputVideoTabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGap(0, 369, Short.MAX_VALUE)
- );
- inputVideoTabLayout.setVerticalGroup(
- inputVideoTabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGap(0, 270, Short.MAX_VALUE)
- );
-
- saveTabbedPane.addTab("入力動画", inputVideoTab);
-
- commentSaveInfoPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("コメント保存設定"));
-
- savingCommentCheckBox.setText("コメントをダウンロードする");
- savingCommentCheckBox.setName("savingCommentCheckBox"); // NOI18N
-
- delCommentCheckBox.setText("変換後にコメントファイルを削除する");
- delCommentCheckBox.setName("delCommentCheckBox"); // NOI18N
-
- fixCommentNumCheckBox.setText("コメント取得数は自動で調整する");
- fixCommentNumCheckBox.setName("fixCommentNumCheckBox"); // NOI18N
-
- jLabel1.setText("取得コメント数");
-
- commentNumField.setName("commentNumField"); // NOI18N
-
- inputCommentSaveGroup.add(commentSaveFolderRadioButton);
- commentSaveFolderRadioButton.setText("保存するフォルダを指定し、ファイル名は自動で決定する");
- commentSaveFolderRadioButton.setName("commentSaveFolderRadioButton"); // NOI18N
-
- commentSavedFolderField.setName("commentSavedFolderField"); // NOI18N
-
- showSavingCommentFolderDialogButton.setText("参照...");
- showSavingCommentFolderDialogButton.setName("showSavingCommentFolderDialogButton"); // NOI18N
-
- inputCommentSaveGroup.add(commentSaveFileRadioButton);
- commentSaveFileRadioButton.setText("保存するファイル名を指定する");
- commentSaveFileRadioButton.setName("commentSaveFileRadioButton"); // NOI18N
-
- commentSavedFileField.setName("commentSavedFileField"); // NOI18N
-
- showSavingCommentFileDialogButton.setText("参照...");
- showSavingCommentFileDialogButton.setName("showSavingCommentFileDialogButton"); // NOI18N
-
- javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
- jPanel7.setLayout(jPanel7Layout);
- jPanel7Layout.setHorizontalGroup(
- jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel7Layout.createSequentialGroup()
- .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel7Layout.createSequentialGroup()
- .addGap(21, 21, 21)
- .addComponent(jLabel1)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(commentNumField, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addComponent(delCommentCheckBox)
- .addComponent(fixCommentNumCheckBox)
- .addComponent(commentSaveFolderRadioButton)
- .addComponent(commentSaveFileRadioButton)
- .addGroup(jPanel7Layout.createSequentialGroup()
- .addGap(21, 21, 21)
- .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(commentSavedFileField, javax.swing.GroupLayout.DEFAULT_SIZE, 197, Short.MAX_VALUE)
- .addComponent(commentSavedFolderField, javax.swing.GroupLayout.DEFAULT_SIZE, 197, Short.MAX_VALUE))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
- .addComponent(showSavingCommentFolderDialogButton)
- .addComponent(showSavingCommentFileDialogButton))))
- .addContainerGap())
- );
- jPanel7Layout.setVerticalGroup(
- jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel7Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(delCommentCheckBox)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(fixCommentNumCheckBox)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jLabel1)
- .addComponent(commentNumField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(commentSaveFolderRadioButton)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(commentSavedFolderField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(showSavingCommentFolderDialogButton))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(commentSaveFileRadioButton)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(commentSavedFileField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(showSavingCommentFileDialogButton))
- .addContainerGap())
- );
-
- javax.swing.GroupLayout commentSaveInfoPanelLayout = new javax.swing.GroupLayout(commentSaveInfoPanel);
- commentSaveInfoPanel.setLayout(commentSaveInfoPanelLayout);
- commentSaveInfoPanelLayout.setHorizontalGroup(
- commentSaveInfoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(commentSaveInfoPanelLayout.createSequentialGroup()
- .addComponent(savingCommentCheckBox)
- .addGap(79, 79, 79))
- .addGroup(commentSaveInfoPanelLayout.createSequentialGroup()
- .addGap(21, 21, 21)
- .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addContainerGap())
- );
- commentSaveInfoPanelLayout.setVerticalGroup(
- commentSaveInfoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(commentSaveInfoPanelLayout.createSequentialGroup()
- .addComponent(savingCommentCheckBox)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- );
-
- javax.swing.GroupLayout inputCommentTabLayout = new javax.swing.GroupLayout(inputCommentTab);
- inputCommentTab.setLayout(inputCommentTabLayout);
- inputCommentTabLayout.setHorizontalGroup(
- inputCommentTabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(inputCommentTabLayout.createSequentialGroup()
- .addContainerGap()
- .addComponent(commentSaveInfoPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addContainerGap())
- );
- inputCommentTabLayout.setVerticalGroup(
- inputCommentTabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(inputCommentTabLayout.createSequentialGroup()
- .addContainerGap()
- .addComponent(commentSaveInfoPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addContainerGap(30, Short.MAX_VALUE))
- );
-
- saveTabbedPane.addTab("入力コメント", inputCommentTab);
-
- tcommentSaveInfoPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("投稿者コメント保存設定"));
-
- needDownloadTcomment.setText("コメントをダウンロードする");
- needDownloadTcomment.setName("needDownloadTcomment"); // NOI18N
-
- delTcomment.setText("変換後にコメントファイルを削除する");
- delTcomment.setName("delTcomment"); // NOI18N
-
- inputTcommentSaveGroup.add(tcommentSaveInFolder);
- tcommentSaveInFolder.setText("保存するフォルダを指定し、ファイル名は自動で決定する");
- tcommentSaveInFolder.setName("tcommentSaveInFolder"); // NOI18N
-
- tcommentFolder.setName("tcommentFolder"); // NOI18N
-
- tcoomentFolderChooserButton.setText("参照...");
- tcoomentFolderChooserButton.setName("tcoomentFolderChooserButton"); // NOI18N
- tcoomentFolderChooserButton.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- tcoomentFolderChooserButtonActionPerformed(evt);
- }
- });
-
- inputTcommentSaveGroup.add(tcommentSaveToFile);
- tcommentSaveToFile.setText("保存するファイル名を指定する");
- tcommentSaveToFile.setName("tcommentSaveToFile"); // NOI18N
-
- tcommentFile.setName("tcommentFile"); // NOI18N
-
- tcommentFileChooserButton.setText("参照...");
- tcommentFileChooserButton.setName("tcommentFileChooserButton"); // NOI18N
- tcommentFileChooserButton.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- tcommentFileChooserButtonActionPerformed(evt);
- }
- });
-
- javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
- jPanel8.setLayout(jPanel8Layout);
- jPanel8Layout.setHorizontalGroup(
- jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel8Layout.createSequentialGroup()
- .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(delTcomment)
- .addComponent(tcommentSaveInFolder)
- .addGroup(jPanel8Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(tcommentFolder, javax.swing.GroupLayout.DEFAULT_SIZE, 206, Short.MAX_VALUE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(tcoomentFolderChooserButton))
- .addComponent(tcommentSaveToFile)
- .addGroup(jPanel8Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(tcommentFile, javax.swing.GroupLayout.DEFAULT_SIZE, 206, Short.MAX_VALUE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(tcommentFileChooserButton)))
- .addContainerGap())
- );
- jPanel8Layout.setVerticalGroup(
- jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel8Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(delTcomment)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(tcommentSaveInFolder)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(tcommentFolder, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(tcoomentFolderChooserButton))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(tcommentSaveToFile)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(tcommentFile, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(tcommentFileChooserButton))
- .addContainerGap())
- );
-
- javax.swing.GroupLayout tcommentSaveInfoPanelLayout = new javax.swing.GroupLayout(tcommentSaveInfoPanel);
- tcommentSaveInfoPanel.setLayout(tcommentSaveInfoPanelLayout);
- tcommentSaveInfoPanelLayout.setHorizontalGroup(
- tcommentSaveInfoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(tcommentSaveInfoPanelLayout.createSequentialGroup()
- .addComponent(needDownloadTcomment)
- .addGap(79, 79, 79))
- .addGroup(tcommentSaveInfoPanelLayout.createSequentialGroup()
- .addGap(21, 21, 21)
- .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addContainerGap())
- );
- tcommentSaveInfoPanelLayout.setVerticalGroup(
- tcommentSaveInfoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(tcommentSaveInfoPanelLayout.createSequentialGroup()
- .addComponent(needDownloadTcomment)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- );
-
- javax.swing.GroupLayout inputTcommentTabLayout = new javax.swing.GroupLayout(inputTcommentTab);
- inputTcommentTab.setLayout(inputTcommentTabLayout);
- inputTcommentTabLayout.setHorizontalGroup(
- inputTcommentTabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(inputTcommentTabLayout.createSequentialGroup()
- .addContainerGap()
- .addComponent(tcommentSaveInfoPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addContainerGap())
- );
- inputTcommentTabLayout.setVerticalGroup(
- inputTcommentTabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(inputTcommentTabLayout.createSequentialGroup()
- .addContainerGap()
- .addComponent(tcommentSaveInfoPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addContainerGap(74, Short.MAX_VALUE))
- );
-
- saveTabbedPane.addTab("入力投稿者コメント", inputTcommentTab);
-
- jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder("コメント付き動画保存設定"));
-
- savingConvertedVideoCheckBox.setText("動画を変換する");
- savingConvertedVideoCheckBox.setName("savingConvertedVideoCheckBox"); // NOI18N
-
- addComment.setText("コメントをつける");
- addComment.setName("addComment"); // NOI18N
-
- addTcomment.setText("投稿者コメントをつける");
- addTcomment.setName("addTcomment"); // NOI18N
-
- outputVideoSaveGroup.add(convSaveFolderRadioButton);
- convSaveFolderRadioButton.setText("保存するフォルダを指定し、ファイル名は自動で決定する");
- convSaveFolderRadioButton.setName("convSaveFolderRadioButton"); // NOI18N
-
- notAddVideoIdConvVideoCheckBox.setText("ファイル名に動画IDを付加しない");
- notAddVideoIdConvVideoCheckBox.setName("notAddVideoIdConvVideoCheckBox"); // NOI18N
-
- convertedVideoSavedFolderField.setName("convertedVideoSavedFolderField"); // NOI18N
-
- showSavingConvertedVideoFolderDialogButton.setText("参照...");
-
- outputVideoSaveGroup.add(convSaveFileRadioButton);
- convSaveFileRadioButton.setText("保存するファイル名を指定する");
- convSaveFileRadioButton.setName("convSaveFileRadioButton"); // NOI18N
-
- convertedVideoSavedFileField.setName("convertedVideoSavedFileField"); // NOI18N
-
- showSavingConvertedVideoFileDialogButton.setText("参照...");
-
- javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
- jPanel5.setLayout(jPanel5Layout);
- jPanel5Layout.setHorizontalGroup(
- jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel5Layout.createSequentialGroup()
- .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(addComment)
- .addComponent(addTcomment)
- .addComponent(convSaveFileRadioButton)
- .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()
- .addGap(21, 21, 21)
- .addComponent(convertedVideoSavedFileField, javax.swing.GroupLayout.DEFAULT_SIZE, 194, Short.MAX_VALUE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(showSavingConvertedVideoFileDialogButton))
- .addGroup(jPanel5Layout.createSequentialGroup()
- .addGap(21, 21, 21)
- .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()
- .addComponent(convertedVideoSavedFolderField, javax.swing.GroupLayout.DEFAULT_SIZE, 194, Short.MAX_VALUE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(showSavingConvertedVideoFolderDialogButton))
- .addComponent(notAddVideoIdConvVideoCheckBox)))
- .addComponent(convSaveFolderRadioButton))
- .addContainerGap())
- );
- jPanel5Layout.setVerticalGroup(
- jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel5Layout.createSequentialGroup()
- .addComponent(addComment)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(addTcomment)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(convSaveFolderRadioButton)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(notAddVideoIdConvVideoCheckBox)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(convertedVideoSavedFolderField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(showSavingConvertedVideoFolderDialogButton))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(convSaveFileRadioButton)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(convertedVideoSavedFileField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(showSavingConvertedVideoFileDialogButton))
- .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- );
-
- javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
- jPanel3.setLayout(jPanel3Layout);
- jPanel3Layout.setHorizontalGroup(
- jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel3Layout.createSequentialGroup()
- .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(savingConvertedVideoCheckBox)
- .addGroup(jPanel3Layout.createSequentialGroup()
- .addGap(21, 21, 21)
- .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
- .addContainerGap())
- );
- jPanel3Layout.setVerticalGroup(
- jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel3Layout.createSequentialGroup()
- .addComponent(savingConvertedVideoCheckBox)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- );
-
- javax.swing.GroupLayout outputVideoTabLayout = new javax.swing.GroupLayout(outputVideoTab);
- outputVideoTab.setLayout(outputVideoTabLayout);
- outputVideoTabLayout.setHorizontalGroup(
- outputVideoTabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(outputVideoTabLayout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addContainerGap(15, Short.MAX_VALUE))
- );
- outputVideoTabLayout.setVerticalGroup(
- outputVideoTabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(outputVideoTabLayout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addContainerGap(38, Short.MAX_VALUE))
- );
-
- saveTabbedPane.addTab("出力コメント付き動画", outputVideoTab);
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
- this.setLayout(layout);
- layout.setHorizontalGroup(
- layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(saveTabbedPane, javax.swing.GroupLayout.DEFAULT_SIZE, 374, Short.MAX_VALUE)
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(saveTabbedPane, javax.swing.GroupLayout.DEFAULT_SIZE, 297, Short.MAX_VALUE)
- );
- }// </editor-fold>//GEN-END:initComponents
-
- private void tcoomentFolderChooserButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tcoomentFolderChooserButtonActionPerformed
- showSaveDialog("投稿者コメントの保存先(フォルダ)", tcommentFolder, true, true);
- }//GEN-LAST:event_tcoomentFolderChooserButtonActionPerformed
-
- private void tcommentFileChooserButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tcommentFileChooserButtonActionPerformed
- showSaveDialog("投稿者コメントの保存先(ファイル)", tcommentFile, true, false);
- }//GEN-LAST:event_tcommentFileChooserButtonActionPerformed
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JCheckBox addComment;
- private javax.swing.JCheckBox addTcomment;
- private javax.swing.JTextField commentNumField;
- private javax.swing.JRadioButton commentSaveFileRadioButton;
- private javax.swing.JRadioButton commentSaveFolderRadioButton;
- private javax.swing.JPanel commentSaveInfoPanel;
- private javax.swing.JTextField commentSavedFileField;
- private javax.swing.JTextField commentSavedFolderField;
- private javax.swing.JRadioButton convSaveFileRadioButton;
- private javax.swing.JRadioButton convSaveFolderRadioButton;
- private javax.swing.JTextField convertedVideoSavedFileField;
- private javax.swing.JTextField convertedVideoSavedFolderField;
- private javax.swing.JCheckBox delCommentCheckBox;
- private javax.swing.JCheckBox delTcomment;
- private javax.swing.JCheckBox fixCommentNumCheckBox;
- private javax.swing.ButtonGroup inputCommentSaveGroup;
- private javax.swing.JPanel inputCommentTab;
- private javax.swing.ButtonGroup inputTcommentSaveGroup;
- private javax.swing.JPanel inputTcommentTab;
- private javax.swing.JPanel inputVideoTab;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JPanel jPanel3;
- private javax.swing.JPanel jPanel5;
- private javax.swing.JPanel jPanel7;
- private javax.swing.JPanel jPanel8;
- private javax.swing.JCheckBox needDownloadTcomment;
- private javax.swing.JCheckBox notAddVideoIdConvVideoCheckBox;
- private javax.swing.ButtonGroup outputVideoSaveGroup;
- private javax.swing.JPanel outputVideoTab;
- private javax.swing.JTabbedPane saveTabbedPane;
- private javax.swing.JCheckBox savingCommentCheckBox;
- private javax.swing.JCheckBox savingConvertedVideoCheckBox;
- private javax.swing.JButton showSavingCommentFileDialogButton;
- private javax.swing.JButton showSavingCommentFolderDialogButton;
- private javax.swing.JButton showSavingConvertedVideoFileDialogButton;
- private javax.swing.JButton showSavingConvertedVideoFolderDialogButton;
- private javax.swing.JTextField tcommentFile;
- private javax.swing.JButton tcommentFileChooserButton;
- private javax.swing.JTextField tcommentFolder;
- private javax.swing.JRadioButton tcommentSaveInFolder;
- private javax.swing.JPanel tcommentSaveInfoPanel;
- private javax.swing.JRadioButton tcommentSaveToFile;
- private javax.swing.JButton tcoomentFolderChooserButton;
- // End of variables declaration//GEN-END:variables
-
- /** @return 保存設定-入力コメント「コメントをダウンロードする」チェックボックス. */
- JCheckBox getSavingCommentCheckBox() {
- return savingCommentCheckBox;
- }
-
- /** @return 保存設定-入力コメント「変換後にコメントファイルを削除する」チェックボックス. */
- JCheckBox getDelCommentCheckBox() {
- return delCommentCheckBox;
- }
-
- /** @return 保存設定-入力コメント「コメント取得数は自動で調整する」チェックボックス. */
- JCheckBox getFixCommentNumCheckBox() {
- return fixCommentNumCheckBox;
- }
-
- /** @return 保存設定-入力コメント「取得コメント数」テキストフィールド. */
- JTextField getCommentNumField() {
- return commentNumField;
- }
-
- /** @return 保存設定-入力コメント「保存するフォルダを指定し、ファイル名は自動で決定する」ラジオボタン. */
- JRadioButton getCommentSaveFolderRadioButton() {
- return commentSaveFolderRadioButton;
- }
-
- /** @return 保存設定-入力コメント「ファイル名に動画IDを付加しない」チェックボックス. */
- JCheckBox getNotAddVideoIdConvVideoCheckBox() {
- return notAddVideoIdConvVideoCheckBox;
- }
-
- /** @return 保存設定-入力コメント「保存するフォルダを指定し、ファイル名は自動で決定する」テキストフィールド. */
- JTextField getCommentSavedFolderField() {
- return commentSavedFolderField;
- }
-
- /** @return 保存設定-入力コメント「保存するフォルダを指定し、ファイル名は自動で決定する」ファイルチューザボタン. */
- JButton getShowSavingCommentFolderDialogButton() {
- return showSavingCommentFolderDialogButton;
- }
-
- /** @return 保存設定-入力コメント「保存するファイル名を指定する」ラジオボタン. */
- JRadioButton getCommentSaveFileRadioButton() {
- return commentSaveFileRadioButton;
- }
-
- /** @return 保存設定-入力コメント「保存するファイル名を指定する」テキストフィールド. */
- JTextField getCommentSavedFileField() {
- return commentSavedFileField;
- }
-
- /** @return 保存設定-入力コメント「保存するファイル名を指定する」ファイルチューザボタン. */
- JButton getShowSavingCommentFileDialogButton() {
- return showSavingCommentFileDialogButton;
- }
-
- /** @return 保存設定-出力コメント付き動画「動画を変換する」チェックボックス. */
- JCheckBox getSavingConvertedVideoCheckBox() {
- return savingConvertedVideoCheckBox;
- }
-
- /** @return 保存設定-出力コメント付き動画「コメントをつける」チェックボックス. */
- JCheckBox getAddCommentCheckBox() {
- return addComment;
- }
-
- /** @return 保存設定-出力コメント付き動画「投稿者コメントをつける」チェックボックス. */
- JCheckBox getAddTcommentCheckBox() {
- return addTcomment;
- }
-
- /** @return 保存設定-出力コメント付き動画「保存するフォルダを指定し、ファイル名は自動で決定する」ラジオボタン. */
- JRadioButton getConvSaveFolderRadioButton() {
- return convSaveFolderRadioButton;
- }
-
- /** @return 保存設定-出力コメント付き動画「保存するフォルダを指定し、ファイル名は自動で決定する」テキストフィールド. */
- JTextField getConvertedVideoSavedFolderField() {
- return convertedVideoSavedFolderField;
- }
-
- /** @return 保存設定-出力コメント付き動画「保存するフォルダを指定し、ファイル名は自動で決定する」ファイルチューザボタン. */
- JButton getShowSavingConvertedVideoFolderDialogButton() {
- return showSavingConvertedVideoFolderDialogButton;
- }
-
- /** @return 保存設定-出力コメント付き動画「保存するファイル名を指定する」ラジオボタン. */
- JRadioButton getConvSaveFileRadioButton() {
- return convSaveFileRadioButton;
- }
-
- /** @return 保存設定-出力コメント付き動画「保存するファイル名を指定する」テキストフィールド. */
- JTextField getConvertedVideoSavedFileField() {
- return convertedVideoSavedFileField;
- }
-
- /** @return 保存設定-出力コメント付き動画「保存するファイル名を指定する」ファイルチューザボタン. */
- JButton getShowSavingConvertedVideoFileDialogButton() {
- return showSavingConvertedVideoFileDialogButton;
- }
-
- VideoSaveInfoPanel getVideoSaveInfoPanel() {
- return videoSaveInfoPanel;
- }
-
- /** @return 投稿者コメントをダウンロードするのであればtrue. */
- boolean isTcommentDownload() {
- return needDownloadTcomment.isSelected();
- }
-
- /** 「投稿者コメントをダウンロードする」に設定を行う. */
- void setTcommentDownload(boolean b) {
- needDownloadTcomment.setSelected(b);
- }
-
- /** @return 変換後に投稿者コメントを削除するのであればtrue. */
- boolean isTcommentDelete() {
- return delTcomment.isSelected();
- }
-
- /** 「変換後に投稿者コメントを削除する」に設定を行う. */
- void setTcommentDelete(boolean b) {
- delTcomment.setSelected(b);
- }
-
- /** @return 投稿者コメントのファイル名を自動で設定するのであればtrue, 直接指定するのであればfalse. */
- boolean isTcommentAutoFileName() {
- return tcommentSaveInFolder.isSelected();
- }
-
- /** @param b 投稿者コメントのファイル名を自動で設定するのであればtrue, 直接指定するのであればfalse. */
- void setTcommentAutoFileName(boolean b) {
- tcommentSaveInFolder.setSelected(b);
- tcommentSaveToFile.setSelected(!b);
- }
-
- /** @return 投稿者コメントの「保存するフォルダを指定し、ファイル名は自動で決定する」に設定してある文字列. */
- String getTcommentDirectoryName() {
- return tcommentFolder.getText();
- }
-
- /** @param t 投稿者コメントの「保存するフォルダを指定し、ファイル名は自動で決定する」に設定してある文字列. */
- void setTcommentDirectoryName(String t) {
- tcommentFolder.setText(t);
- }
-
- /** @return 投稿者コメントの「保存するファイル名を指定する」に設定してある文字列. */
- String getTcommentFileName() {
- return tcommentFile.getText();
- }
-
- /** @param b 投稿者コメントの「保存するファイル名を指定する」に設定してある文字列. */
- void setTcommentFileName(String t) {
- tcommentFile.setText(t);
- }
-
- private void showSaveDialog(String title, JTextField field, boolean isSave,
- boolean isDir) {
- File current = new File(field.getText());
- JFileChooser chooser = new JFileChooser(current);
- chooser.setDialogTitle(title);
- int code = 0;
- if (isDir) {
- chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
- }
- if (isSave) {
- code = chooser.showSaveDialog(this);
- } else {
- code = chooser.showOpenDialog(this);
- }
- if (code == JFileChooser.APPROVE_OPTION) {
- field.setText(chooser.getSelectedFile().getAbsolutePath());
- }
- }
-}
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-
-<Form version="1.3" maxVersion="1.7" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
- <NonVisualComponents>
- <Component class="javax.swing.ButtonGroup" name="videoSavingGroup">
- </Component>
- <Component class="javax.swing.ButtonGroup" name="videoNamingGroup">
- </Component>
- </NonVisualComponents>
- <Properties>
- <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
- <Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo">
- <TitledBorder title="動画保存設定"/>
- </Border>
- </Property>
- </Properties>
- <AuxValues>
- <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
- <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
- <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
- <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
- <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
- <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
- <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
- <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
- <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
- </AuxValues>
-
- <Layout>
- <DimensionLayout dim="0">
- <Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" attributes="0">
- <Group type="103" groupAlignment="0" attributes="0">
- <Component id="videoNoSaveButton" min="-2" max="-2" attributes="0"/>
- <Component id="videoSaveButton" alignment="0" min="-2" max="-2" attributes="0"/>
- </Group>
- <EmptySpace max="-2" attributes="0"/>
- </Group>
- <Group type="102" alignment="0" attributes="0">
- <Component id="videoUseNiBrButton" min="-2" max="-2" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
- </Group>
- <Group type="102" alignment="0" attributes="0">
- <EmptySpace min="-2" pref="21" max="-2" attributes="0"/>
- <Component id="basicSetting" max="32767" attributes="0"/>
- </Group>
- <Group type="102" alignment="0" attributes="0">
- <EmptySpace min="-2" pref="21" max="-2" attributes="0"/>
- <Component id="nibrExtendSetting" max="32767" attributes="0"/>
- </Group>
- </Group>
- </DimensionLayout>
- <DimensionLayout dim="1">
- <Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" alignment="0" attributes="0">
- <Component id="videoNoSaveButton" min="-2" max="-2" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
- <Component id="videoSaveButton" min="-2" max="-2" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
- <Component id="basicSetting" min="-2" max="-2" attributes="0"/>
- <EmptySpace type="unrelated" max="-2" attributes="0"/>
- <Component id="videoUseNiBrButton" min="-2" max="-2" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
- <Component id="nibrExtendSetting" min="-2" max="-2" attributes="0"/>
- </Group>
- </Group>
- </DimensionLayout>
- </Layout>
- <SubComponents>
- <Component class="javax.swing.JRadioButton" name="videoNoSaveButton">
- <Properties>
- <Property name="buttonGroup" type="javax.swing.ButtonGroup" editor="org.netbeans.modules.form.RADComponent$ButtonGroupPropertyEditor">
- <ComponentRef name="videoSavingGroup"/>
- </Property>
- <Property name="text" type="java.lang.String" value="動画をダウンロードしない"/>
- <Property name="name" type="java.lang.String" value="videoNoSaveButton" noResource="true"/>
- </Properties>
- </Component>
- <Component class="javax.swing.JRadioButton" name="videoSaveButton">
- <Properties>
- <Property name="buttonGroup" type="javax.swing.ButtonGroup" editor="org.netbeans.modules.form.RADComponent$ButtonGroupPropertyEditor">
- <ComponentRef name="videoSavingGroup"/>
- </Property>
- <Property name="text" type="java.lang.String" value="動画をダウンロードする"/>
- <Property name="name" type="java.lang.String" value="videoSaveButton" noResource="true"/>
- </Properties>
- </Component>
- <Container class="javax.swing.JPanel" name="basicSetting">
-
- <Layout>
- <DimensionLayout dim="0">
- <Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" attributes="0">
- <Group type="103" groupAlignment="0" attributes="0">
- <Component id="delVideoCheckBox" alignment="0" min="-2" max="-2" attributes="0"/>
- <Component id="saveFolderRadioButton" alignment="0" min="-2" max="-2" attributes="0"/>
- <Component id="saveFileRadioButton" alignment="0" min="-2" max="-2" attributes="0"/>
- <Group type="102" alignment="0" attributes="0">
- <EmptySpace min="21" pref="21" max="21" attributes="0"/>
- <Component id="videoSavedFileField" pref="205" max="32767" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
- <Component id="showSavingVideoFileDialogButton" min="-2" max="-2" attributes="0"/>
- </Group>
- <Group type="102" alignment="1" attributes="0">
- <EmptySpace min="-2" pref="21" max="-2" attributes="0"/>
- <Component id="videoSavedFolderField" pref="205" max="32767" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
- <Component id="showSavingVideoFolderDialogButton" min="-2" max="-2" attributes="0"/>
- </Group>
- </Group>
- <EmptySpace max="-2" attributes="0"/>
- </Group>
- </Group>
- </DimensionLayout>
- <DimensionLayout dim="1">
- <Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" alignment="0" attributes="0">
- <Component id="delVideoCheckBox" min="-2" max="-2" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
- <Component id="saveFolderRadioButton" min="-2" max="-2" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
- <Group type="103" groupAlignment="3" attributes="0">
- <Component id="videoSavedFolderField" alignment="3" min="-2" max="-2" attributes="0"/>
- <Component id="showSavingVideoFolderDialogButton" alignment="3" min="-2" max="-2" attributes="0"/>
- </Group>
- <EmptySpace min="-2" pref="8" max="-2" attributes="0"/>
- <Component id="saveFileRadioButton" min="-2" max="-2" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
- <Group type="103" groupAlignment="3" attributes="0">
- <Component id="videoSavedFileField" alignment="3" min="-2" max="-2" attributes="0"/>
- <Component id="showSavingVideoFileDialogButton" alignment="3" min="-2" max="-2" attributes="0"/>
- </Group>
- <EmptySpace max="32767" attributes="0"/>
- </Group>
- </Group>
- </DimensionLayout>
- </Layout>
- <SubComponents>
- <Component class="javax.swing.JCheckBox" name="delVideoCheckBox">
- <Properties>
- <Property name="text" type="java.lang.String" value="変換後に動画ファイルを削除する"/>
- <Property name="name" type="java.lang.String" value="delVideoCheckBox" noResource="true"/>
- </Properties>
- </Component>
- <Component class="javax.swing.JRadioButton" name="saveFolderRadioButton">
- <Properties>
- <Property name="buttonGroup" type="javax.swing.ButtonGroup" editor="org.netbeans.modules.form.RADComponent$ButtonGroupPropertyEditor">
- <ComponentRef name="videoNamingGroup"/>
- </Property>
- <Property name="text" type="java.lang.String" value="保存するフォルダを指定し、ファイル名は自動で決定する"/>
- <Property name="name" type="java.lang.String" value="saveFolderRadioButton" noResource="true"/>
- </Properties>
- </Component>
- <Component class="javax.swing.JTextField" name="videoSavedFolderField">
- <Properties>
- <Property name="name" type="java.lang.String" value="videoSavedFolderField" noResource="true"/>
- </Properties>
- </Component>
- <Component class="javax.swing.JButton" name="showSavingVideoFolderDialogButton">
- <Properties>
- <Property name="text" type="java.lang.String" value="参照..."/>
- <Property name="name" type="java.lang.String" value="showSavingVideoFolderDialogButton" noResource="true"/>
- </Properties>
- </Component>
- <Component class="javax.swing.JRadioButton" name="saveFileRadioButton">
- <Properties>
- <Property name="buttonGroup" type="javax.swing.ButtonGroup" editor="org.netbeans.modules.form.RADComponent$ButtonGroupPropertyEditor">
- <ComponentRef name="videoNamingGroup"/>
- </Property>
- <Property name="text" type="java.lang.String" value="保存するファイル名を指定する"/>
- <Property name="name" type="java.lang.String" value="saveFileRadioButton" noResource="true"/>
- </Properties>
- </Component>
- <Component class="javax.swing.JTextField" name="videoSavedFileField">
- <Properties>
- <Property name="name" type="java.lang.String" value="videoSavedFileField" noResource="true"/>
- </Properties>
- </Component>
- <Component class="javax.swing.JButton" name="showSavingVideoFileDialogButton">
- <Properties>
- <Property name="text" type="java.lang.String" value="参照..."/>
- <Property name="name" type="java.lang.String" value="showSavingVideoFileDialogButton" noResource="true"/>
- </Properties>
- </Component>
- </SubComponents>
- </Container>
- <Component class="javax.swing.JRadioButton" name="videoUseNiBrButton">
- <Properties>
- <Property name="buttonGroup" type="javax.swing.ButtonGroup" editor="org.netbeans.modules.form.RADComponent$ButtonGroupPropertyEditor">
- <ComponentRef name="videoSavingGroup"/>
- </Property>
- <Property name="text" type="java.lang.String" value="NicoBrowserダウンロードファイルを用いる"/>
- <Property name="name" type="java.lang.String" value="videoUseNiBrButton" noResource="true"/>
- </Properties>
- </Component>
- <Container class="javax.swing.JPanel" name="nibrExtendSetting">
-
- <Layout>
- <DimensionLayout dim="0">
- <Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" alignment="1" attributes="0">
- <Component id="nibrFileField" pref="226" max="32767" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
- <Component id="nibrFileChooserButton" min="-2" max="-2" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
- </Group>
- </Group>
- </DimensionLayout>
- <DimensionLayout dim="1">
- <Group type="103" groupAlignment="0" attributes="0">
- <Group type="103" groupAlignment="3" attributes="0">
- <Component id="nibrFileField" alignment="3" min="-2" max="-2" attributes="0"/>
- <Component id="nibrFileChooserButton" alignment="3" min="-2" max="-2" attributes="0"/>
- </Group>
- </Group>
- </DimensionLayout>
- </Layout>
- <SubComponents>
- <Component class="javax.swing.JTextField" name="nibrFileField">
- <Properties>
- <Property name="name" type="java.lang.String" value="nibrFileField" noResource="true"/>
- </Properties>
- </Component>
- <Component class="javax.swing.JButton" name="nibrFileChooserButton">
- <Properties>
- <Property name="text" type="java.lang.String" value="参照..."/>
- </Properties>
- </Component>
- </SubComponents>
- </Container>
- </SubComponents>
-</Form>
+++ /dev/null
-/* $Id$ */
-package saccubus;
-
-import javax.swing.JButton;
-import javax.swing.JCheckBox;
-import javax.swing.JFrame;
-import javax.swing.JRadioButton;
-import javax.swing.JTextField;
-import javax.swing.SwingUtilities;
-import javax.swing.UIManager;
-
-/**
- *
- * @author yuki
- */
-class VideoSaveInfoPanel extends javax.swing.JPanel {
- private static final long serialVersionUID = 1L;
-
- /** Creates new form VideoSaveInfoPanel */
- VideoSaveInfoPanel() {
- initComponents();
- }
-
- /** This method is called from within the constructor to
- * initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is
- * always regenerated by the Form Editor.
- */
- @SuppressWarnings("unchecked")
- // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
- private void initComponents() {
-
- videoSavingGroup = new javax.swing.ButtonGroup();
- videoNamingGroup = new javax.swing.ButtonGroup();
- videoNoSaveButton = new javax.swing.JRadioButton();
- videoSaveButton = new javax.swing.JRadioButton();
- basicSetting = new javax.swing.JPanel();
- delVideoCheckBox = new javax.swing.JCheckBox();
- saveFolderRadioButton = new javax.swing.JRadioButton();
- videoSavedFolderField = new javax.swing.JTextField();
- showSavingVideoFolderDialogButton = new javax.swing.JButton();
- saveFileRadioButton = new javax.swing.JRadioButton();
- videoSavedFileField = new javax.swing.JTextField();
- showSavingVideoFileDialogButton = new javax.swing.JButton();
- videoUseNiBrButton = new javax.swing.JRadioButton();
- nibrExtendSetting = new javax.swing.JPanel();
- nibrFileField = new javax.swing.JTextField();
- nibrFileChooserButton = new javax.swing.JButton();
-
- setBorder(javax.swing.BorderFactory.createTitledBorder("動画保存設定"));
-
- videoSavingGroup.add(videoNoSaveButton);
- videoNoSaveButton.setText("動画をダウンロードしない");
- videoNoSaveButton.setName("videoNoSaveButton"); // NOI18N
-
- videoSavingGroup.add(videoSaveButton);
- videoSaveButton.setText("動画をダウンロードする");
- videoSaveButton.setName("videoSaveButton"); // NOI18N
-
- delVideoCheckBox.setText("変換後に動画ファイルを削除する");
- delVideoCheckBox.setName("delVideoCheckBox"); // NOI18N
-
- videoNamingGroup.add(saveFolderRadioButton);
- saveFolderRadioButton.setText("保存するフォルダを指定し、ファイル名は自動で決定する");
- saveFolderRadioButton.setName("saveFolderRadioButton"); // NOI18N
-
- videoSavedFolderField.setName("videoSavedFolderField"); // NOI18N
-
- showSavingVideoFolderDialogButton.setText("参照...");
- showSavingVideoFolderDialogButton.setName("showSavingVideoFolderDialogButton"); // NOI18N
-
- videoNamingGroup.add(saveFileRadioButton);
- saveFileRadioButton.setText("保存するファイル名を指定する");
- saveFileRadioButton.setName("saveFileRadioButton"); // NOI18N
-
- videoSavedFileField.setName("videoSavedFileField"); // NOI18N
-
- showSavingVideoFileDialogButton.setText("参照...");
- showSavingVideoFileDialogButton.setName("showSavingVideoFileDialogButton"); // NOI18N
-
- javax.swing.GroupLayout basicSettingLayout = new javax.swing.GroupLayout(basicSetting);
- basicSetting.setLayout(basicSettingLayout);
- basicSettingLayout.setHorizontalGroup(
- basicSettingLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(basicSettingLayout.createSequentialGroup()
- .addGroup(basicSettingLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(delVideoCheckBox)
- .addComponent(saveFolderRadioButton)
- .addComponent(saveFileRadioButton)
- .addGroup(basicSettingLayout.createSequentialGroup()
- .addGap(21, 21, 21)
- .addComponent(videoSavedFileField, javax.swing.GroupLayout.DEFAULT_SIZE, 205, Short.MAX_VALUE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(showSavingVideoFileDialogButton))
- .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, basicSettingLayout.createSequentialGroup()
- .addGap(21, 21, 21)
- .addComponent(videoSavedFolderField, javax.swing.GroupLayout.DEFAULT_SIZE, 205, Short.MAX_VALUE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(showSavingVideoFolderDialogButton)))
- .addContainerGap())
- );
- basicSettingLayout.setVerticalGroup(
- basicSettingLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(basicSettingLayout.createSequentialGroup()
- .addComponent(delVideoCheckBox)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(saveFolderRadioButton)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(basicSettingLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(videoSavedFolderField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(showSavingVideoFolderDialogButton))
- .addGap(8, 8, 8)
- .addComponent(saveFileRadioButton)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(basicSettingLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(videoSavedFileField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(showSavingVideoFileDialogButton))
- .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- );
-
- videoSavingGroup.add(videoUseNiBrButton);
- videoUseNiBrButton.setText("NicoBrowserダウンロードファイルを用いる");
- videoUseNiBrButton.setName("videoUseNiBrButton"); // NOI18N
-
- nibrFileField.setName("nibrFileField"); // NOI18N
-
- nibrFileChooserButton.setText("参照...");
-
- javax.swing.GroupLayout nibrExtendSettingLayout = new javax.swing.GroupLayout(nibrExtendSetting);
- nibrExtendSetting.setLayout(nibrExtendSettingLayout);
- nibrExtendSettingLayout.setHorizontalGroup(
- nibrExtendSettingLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, nibrExtendSettingLayout.createSequentialGroup()
- .addComponent(nibrFileField, javax.swing.GroupLayout.DEFAULT_SIZE, 226, Short.MAX_VALUE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(nibrFileChooserButton)
- .addContainerGap())
- );
- nibrExtendSettingLayout.setVerticalGroup(
- nibrExtendSettingLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(nibrExtendSettingLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(nibrFileField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(nibrFileChooserButton))
- );
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
- this.setLayout(layout);
- layout.setHorizontalGroup(
- layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(videoNoSaveButton)
- .addComponent(videoSaveButton))
- .addContainerGap())
- .addGroup(layout.createSequentialGroup()
- .addComponent(videoUseNiBrButton)
- .addContainerGap())
- .addGroup(layout.createSequentialGroup()
- .addGap(21, 21, 21)
- .addComponent(basicSetting, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addGroup(layout.createSequentialGroup()
- .addGap(21, 21, 21)
- .addComponent(nibrExtendSetting, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(videoNoSaveButton)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(videoSaveButton)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(basicSetting, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addComponent(videoUseNiBrButton)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(nibrExtendSetting, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- );
- }// </editor-fold>//GEN-END:initComponents
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JPanel basicSetting;
- private javax.swing.JCheckBox delVideoCheckBox;
- private javax.swing.JPanel nibrExtendSetting;
- private javax.swing.JButton nibrFileChooserButton;
- private javax.swing.JTextField nibrFileField;
- private javax.swing.JRadioButton saveFileRadioButton;
- private javax.swing.JRadioButton saveFolderRadioButton;
- private javax.swing.JButton showSavingVideoFileDialogButton;
- private javax.swing.JButton showSavingVideoFolderDialogButton;
- private javax.swing.ButtonGroup videoNamingGroup;
- private javax.swing.JRadioButton videoNoSaveButton;
- private javax.swing.JRadioButton videoSaveButton;
- private javax.swing.JTextField videoSavedFileField;
- private javax.swing.JTextField videoSavedFolderField;
- private javax.swing.ButtonGroup videoSavingGroup;
- private javax.swing.JRadioButton videoUseNiBrButton;
- // End of variables declaration//GEN-END:variables
-
- /** @return 「動画をダウンロードしない」ラジオボタン. */
- JRadioButton getVideoNoSaveButton() {
- return videoNoSaveButton;
- }
-
- /** @return 「動画をダウンロードする」ラジオボタン. */
- JRadioButton getVideoSaveButton() {
- return videoSaveButton;
- }
-
- /** @return 「NicoBrowserダウンロードファイルを用いる」ラジオボタン. */
- JRadioButton getVideoUseNiBrButton() {
- return videoUseNiBrButton;
- }
-
- /** @return 「変換後に動画ファイルを削除する」チェックボックス. */
- JCheckBox getDelVideoCheckBox() {
- return delVideoCheckBox;
- }
-
- /** @return 「保存するフォルダを指定し、ファイル名は自動で決定する」ラジオボタン. */
- JRadioButton getSaveFolderRadioButton() {
- return saveFolderRadioButton;
- }
-
- /** @return 「保存するファイル名を指定する」ラジオボタン. */
- JRadioButton getSaveFileRadioButton() {
- return saveFileRadioButton;
- }
-
- /** @return 「保存するフォルダを指定し、ファイル名は自動で決定する」テキストフィールド. */
- JTextField getVideoSavedFolderField() {
- return videoSavedFolderField;
- }
-
- /** @return 「保存するフォルダを指定し、ファイル名は自動で決定する」ファイルチューザ起動ボタン. */
- JButton getShowSavingVideoFolderDialogButton() {
- return showSavingVideoFolderDialogButton;
- }
-
- /** @return 「保存するファイル名を指定する」テキストフィールド. */
- JTextField getVideoSavedFileField() {
- return videoSavedFileField;
- }
-
- /** @return 「保存するファイル名を指定する」ファイルチューザ起動ボタン. */
- JButton getShowSavingVideoFileDialogButton() {
- return showSavingVideoFileDialogButton;
- }
-
- /** @return 「NicoBrowserダウンロードファイルを用いる」テキストフィールド. */
- JTextField getNibrFileField() {
- return nibrFileField;
- }
-
- /** @return 「NicoBrowserダウンロードファイルを用いる」ファイルチューザ起動ボタン. */
- JButton getNibrFileChooserButton() {
- return nibrFileChooserButton;
- }
-
- public static void main(String[] args) {
- setLookAndFeel();
- SwingUtilities.invokeLater(new Runnable() {
-
- public void run() {
- JFrame frame = new JFrame();
- frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- frame.setContentPane(new VideoSaveInfoPanel());
- frame.pack();
- frame.setVisible(true);
- }
- });
- }
-
- private static void setLookAndFeel() {
- String lafClassName = UIManager.getSystemLookAndFeelClassName();
- try {
- UIManager.setLookAndFeel(lafClassName);
- } catch (Exception e) {
- throw new RuntimeException(e);
- }
- }
-}
+++ /dev/null
-/* $Id$ */
-package saccubus;
-
-/**
- *
- * @author yuki
- */
-public enum VideoSaveKind {
-
- NO_SAVE, SAVE, NICOBROWSER;
-}