import javax.swing.JLabel;
import javax.swing.JTextField;
import java.awt.event.KeyEvent;
+import nicobrowser.entity.NicoContent;
+import yukihane.nicovideo.NicoDBFinder;
/**
* <p>
* @version 1.0
*/
public class MainFrame extends JFrame {
- /**
- *
- */
private static final long serialVersionUID = 2564486741331062989L;
+ public static final String VERSION = "1.22r NicoBrowser\8ag\92£ 0.0.0";
public static final Image WinIcon = Toolkit.getDefaultToolkit()
.createImage(saccubus.MainFrame.class.getResource("icon32.png"));
GridBagLayout gridBagLayout4 = new GridBagLayout();
- JCheckBox SavingVideoCheckBox = new JCheckBox();
-
- JTextField VideoSavedFileField = new JTextField();
-
- JButton ShowSavingVideoFileDialogButton = new JButton();
-
JCheckBox SavingCommentCheckBox = new JCheckBox();
JTextField CommentSavedFileField = new JTextField();
GridBagLayout gridBagLayout6 = new GridBagLayout();
- ButtonGroup VideoSaveButtonGroup = new ButtonGroup();
-
ButtonGroup CommentSaveButtonGroup = new ButtonGroup();
ButtonGroup ConvSaveButtonGroup = new ButtonGroup();
this.setIconImage(WinIcon);
contentPane = (JPanel) this.getContentPane();
contentPane.setLayout(borderLayout1);
- setSize(new Dimension(400, 560));
- setTitle("\82³\82«\82ã\82Î\82·");
+ setSize(new Dimension(400, 630));
+ setTitle("\82³\82«\82ã\82Î\82· " + VERSION);
this.addWindowListener(new MainFrame_this_windowAdapter(this));
statusBar.setText(" ");
jMenuFile.setText("\83t\83@\83C\83\8b");
"\83R\83\81\83\93\83g\95Û\91¶\90Ý\92è", TitledBorder.LEADING, TitledBorder.TOP, new Font(
"MS UI Gothic", Font.PLAIN, 12), Color.black));
CommentSaveInfoPanel.setLayout(gridBagLayout4);
- SavingVideoCheckBox.setText("\93®\89æ\82ð\83_\83E\83\93\83\8d\81[\83h\82·\82é");
- ShowSavingVideoFileDialogButton.setText("\8eQ\8fÆ");
- ShowSavingVideoFileDialogButton
- .addActionListener(new MainFrame_ShowSavingVideoDialogButton_actionAdapter(
- this));
+
+ final ActionListener videoSavePanelButtonListener = new VideoSavePanelButtonListener();
+ videoSaveInfoPanel.getShowSavingVideoFolderDialogButton().addActionListener(videoSavePanelButtonListener);
+ videoSaveInfoPanel.getShowSavingVideoFileDialogButton().addActionListener(videoSavePanelButtonListener);
+ videoSaveInfoPanel.getNibrFileChooserButton().addActionListener(videoSavePanelButtonListener);
+
+ final ActionListener videoUseRadioButtonListener = new VideoUseRadioButtonListener();
+ videoSaveInfoPanel.getVideoNoSaveButton().addActionListener(videoUseRadioButtonListener);
+ videoSaveInfoPanel.getVideoSaveButton().addActionListener(videoUseRadioButtonListener);
+ videoSaveInfoPanel.getVideoUseNiBrButton().addActionListener(videoUseRadioButtonListener);
+
SavingCommentCheckBox.setText("\83R\83\81\83\93\83g\82ð\83_\83E\83\93\83\8d\81[\83h\82·\82é");
ShowSavingCommentFileDialogButton.setText("\8eQ\8fÆ");
ShowSavingCommentFileDialogButton
ShowSavingConvertedVideoFolderDialogButton
.addActionListener(new MainFrame_ShowSavingConvertedVideoFolderDialogButton_actionAdapter(
this));
- ShowSavingVideoFolderDialogButton.setText("\8eQ\8fÆ");
- ShowSavingVideoFolderDialogButton
- .addActionListener(new MainFrame_ShowSavingVideoFolderDialogButton_actionAdapter(
- this));
- 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é");
- Video_SaveFileRadioButton.setText("\95Û\91¶\82·\82é\83t\83@\83C\83\8b\96¼\82ð\8ew\92è\82·\82é");
Comment_SaveFileRadioButton.setText("\95Û\91¶\82·\82é\83t\83@\83C\83\8b\96¼\82ð\8ew\92è\82·\82é");
ShowSavingCommentFolderDialogButton.setText("\8eQ\8fÆ");
ShowSavingCommentFolderDialogButton
jMenuBar1.add(jMenuHelp);
jMenuHelp.add(jMenuHelpAbout);
setJMenuBar(jMenuBar1);
- /* \83r\83f\83I\83O\83\8b\81[\83v */
- VideoSaveButtonGroup.add(Video_SaveFileRadioButton);
- VideoSaveButtonGroup.add(Video_SaveFolderRadioButton);
CommentSaveButtonGroup.add(Comment_SaveFileRadioButton);
CommentSaveButtonGroup.add(Comment_SaveFolderRadioButton);
ConvertedVideoSavedFolderField.addMouseListener(new PopupRightClick(
this.ConvertedVideoSavedFolderField));
- VideoSavedFileField.addMouseListener(new PopupRightClick(
- this.VideoSavedFileField));
- VideoSavedFolderField.addMouseListener(new PopupRightClick(
- this.VideoSavedFolderField));
+ videoSaveInfoPanel.getVideoSavedFileField().addMouseListener(new PopupRightClick(
+ videoSaveInfoPanel.getVideoSavedFileField()));
+ videoSaveInfoPanel.getVideoSavedFolderField().addMouseListener(new PopupRightClick(
+ videoSaveInfoPanel.getVideoSavedFolderField()));
+ videoSaveInfoPanel.getNibrFileField().addMouseListener(
+ new PopupRightClick(videoSaveInfoPanel.getNibrFileField()));
FFmpegPathField.addMouseListener(new PopupRightClick(
this.FFmpegPathField));
}
private void setDropTarget() {
- addTarget(VideoSavedFileField, false);
- addTarget(VideoSavedFolderField, true);
+ addTarget(videoSaveInfoPanel.getVideoSavedFileField(), false);
+ addTarget(videoSaveInfoPanel.getVideoSavedFolderField(), true);
+ addTarget(videoSaveInfoPanel.getNibrFileField(), false);
addTarget(CommentSavedFileField, false);
addTarget(CommentSavedFolderField, true);
}
+ /**
+ * \83e\83L\83X\83g\83t\83B\81[\83\8b\83h\82É\91Î\82µ\83h\83\8d\83b\83v\82ð\8ds\82Á\82½\8fê\8d\87\82É\83t\83@\83C\83\8b\82à\82µ\82\82Í\83f\83B\83\8c\83N\83g\83\8a\82Ì\95¶\8e\9a\97ñ\82ð\90Ý\92è\82Å\82«\82é\82æ\82¤\82É\82·\82é.
+ * @param c \90Ý\92è\91Î\8fÛ\82Ì\83e\83L\83X\83g\83t\83B\81[\83\8b\83h\83I\83u\83W\83F\83N\83g.
+ * @param isDir \83f\83B\83\8c\83N\83g\83\8a\82ð\90Ý\92è\82·\82é\8fê\8d\87\82Ítrue, \83t\83@\83C\83\8b\82Ì\8fê\8d\87\82Ífalse.
+ * @return \83h\83\8d\83b\83v\83^\81[\83Q\83b\83g(\97p\93r\96³\82µ).
+ */
private DropTarget addTarget(JTextField c, boolean isDir) {
return new DropTarget(c, DnDConstants.ACTION_COPY, new FileDropTarget(
c, isDir), true);
} catch (NumberFormatException e) {
proxy_port = -1;
}
+
+ VideoSaveKind kind;
+ String savedFileName;
+ if (videoSaveInfoPanel.getVideoNoSaveButton().isSelected() == true) {
+ kind = VideoSaveKind.NO_SAVE;
+ savedFileName = videoSaveInfoPanel.getVideoSavedFileField().getText();
+ } else if (videoSaveInfoPanel.getVideoUseNiBrButton().isSelected() == true) {
+ kind = VideoSaveKind.NICOBROWSER;
+ savedFileName = videoSaveInfoPanel.getNibrFileField().getText();
+ } else {
+ kind = VideoSaveKind.SAVE;
+ savedFileName = videoSaveInfoPanel.getVideoSavedFileField().getText();
+ }
+
ConvertingSetting setting = new ConvertingSetting(MailAddrField
.getText(), new String(PasswordField.getPassword()),
- SavingVideoCheckBox.isSelected(),
- VideoSavedFileField.getText(), SavingCommentCheckBox
+ kind,
+ savedFileName, SavingCommentCheckBox
.isSelected(), CommentSavedFileField.getText(),
SavingConvertedVideoCheckBox.isSelected(),
ConvertedVideoSavedFileField.getText(), ViewCommentField
CommandLineOutOptionField.getText(), Integer
.toString(back_comment), FontPathField.getText(),
Integer.parseInt(FontIndexField.getText()),
- ShowConvVideoCheckBox.isSelected(), DelVideoCheckBox
+ ShowConvVideoCheckBox.isSelected(), videoSaveInfoPanel.getDelVideoCheckBox()
.isSelected(),
- Video_SaveFolderRadioButton.isSelected(), VideoSavedFolderField
- .getText(), DelCommentCheckBox.isSelected(),
+ videoSaveInfoPanel.getSaveFolderRadioButton().isSelected(),
+ videoSaveInfoPanel.getVideoSavedFolderField().getText(),
+ DelCommentCheckBox.isSelected(),
Comment_SaveFolderRadioButton.isSelected(),
CommentSavedFolderField.getText(),
NotAddVideoID_ConvVideoCheckBox.isSelected(),
}
private void setSetting(ConvertingSetting setting) {
- MailAddrField.setText(setting.getMailAddress());
- PasswordField.setText(setting.getPassword());
- SavingVideoCheckBox.setSelected(setting.isSaveVideo());
- VideoSavedFileField.setText(setting.getVideoFile().getPath());
+ MailAddrField.setText(setting.getMailAddress());
+ PasswordField.setText(setting.getPassword());
+
+ JRadioButton activeButton;
+ switch (setting.getVideoSaveKind()) {
+ case NO_SAVE:
+ activeButton = videoSaveInfoPanel.getVideoNoSaveButton();
+ break;
+ case NICOBROWSER:
+ activeButton = videoSaveInfoPanel.getVideoUseNiBrButton();
+ break;
+ case SAVE:
+ default:
+ activeButton = videoSaveInfoPanel.getVideoSaveButton();
+ break;
+ }
+ activeButton.setSelected(true);
+ ActionListener[] listeners = activeButton.getActionListeners();
+ for (ActionListener l : listeners) {
+ l.actionPerformed(new ActionEvent(activeButton, ActionEvent.ACTION_PERFORMED, activeButton.getText()));
+ }
+
+
+ videoSaveInfoPanel.getVideoSavedFileField().setText(setting.getVideoFile().getPath());
SavingCommentCheckBox.setSelected(setting.isSaveComment());
CommentSavedFileField.setText(setting.getCommentFile().getPath());
SavingConvertedVideoCheckBox.setSelected(setting.isSaveConverted());
FontIndexField.setText(setting.getFontIndex());
ShowConvVideoCheckBox
.setSelected(setting.isVhook_ShowConvertingVideo());
- VideoSavedFolderField.setText(setting.getVideoFixFileNameFolder()
+ videoSaveInfoPanel.getVideoSavedFolderField().setText(setting.getVideoFixFileNameFolder()
.getPath());
CommentSavedFolderField.setText(setting.getCommentFixFileNameFolder()
.getPath());
ConvertedVideoSavedFolderField.setText(setting
.getConvFixFileNameFolder().getPath());
- DelVideoCheckBox.setSelected(setting.isDeleteVideoAfterConverting());
+ videoSaveInfoPanel.getDelVideoCheckBox().setSelected(setting.isDeleteVideoAfterConverting());
DelCommentCheckBox
.setSelected(setting.isDeleteCommentAfterConverting());
NotAddVideoID_ConvVideoCheckBox.setSelected(setting
.isNotAddVideoID_Conv());
- if (setting.isVideoFixFileName()) {
- Video_SaveFileRadioButton.setSelected(false);
- Video_SaveFolderRadioButton.setSelected(true);
- } else {
- Video_SaveFileRadioButton.setSelected(true);
- Video_SaveFolderRadioButton.setSelected(false);
- }
+
+ boolean videoFixName = setting.isVideoFixFileName();
+ videoSaveInfoPanel.getSaveFileRadioButton().setSelected(!videoFixName);
+ videoSaveInfoPanel.getSaveFolderRadioButton().setSelected(videoFixName);
+
if (setting.isCommentFixFileName()) {
Comment_SaveFileRadioButton.setSelected(false);
Comment_SaveFolderRadioButton.setSelected(true);
JButton ShowSavingConvertedVideoFolderDialogButton = new JButton();
- JTextField VideoSavedFolderField = new JTextField();
-
- JButton ShowSavingVideoFolderDialogButton = new JButton();
-
- JRadioButton Video_SaveFolderRadioButton = new JRadioButton();
-
- JRadioButton Video_SaveFileRadioButton = new JRadioButton();
-
JRadioButton Comment_SaveFileRadioButton = new JRadioButton();
JTextField CommentSavedFolderField = new JTextField();
private JCheckBox FixFontSizeCheckBox = null;
- private JCheckBox DelVideoCheckBox = null;
-
private JCheckBox DelCommentCheckBox = null;
private JCheckBox FixCommentNumCheckBox = null;
private JCheckBox OpaqueCommentCheckBox = null;
- private JPanel VideoSaveInfoPanel = null;
+ private VideoSaveInfoPanel videoSaveInfoPanel = new VideoSaveInfoPanel();
private JTabbedPane SaveInfoTabPaneEach = null;
public void DoButton_actionPerformed(ActionEvent e) {
if (Converter == null || Converter.isConverted()) {
- Converter = new Converter(VideoID_TextField.getText(), WayBackField
+ String url;
+
+ // NicoBrowser\83t\83@\83C\83\8b\82ð\97\98\97p\82·\82é\8fê\8d\87\82Í\81A\83t\83@\83C\83\8b\96¼\82©\82ç\83r\83f\83IID\82ð\93Á\92è.
+ if(videoSaveInfoPanel.getVideoUseNiBrButton().isSelected()){
+ try {
+ String fileName = videoSaveInfoPanel.getNibrFileField().getText();
+ NicoDBFinder finder = NicoDBFinder.getInstance();
+ NicoContent info = finder.findNicoContent(fileName);
+ if (info != null) {
+ url = info.getNicoId();
+ } else {
+ url = "";
+ }
+ } catch (Exception ex) {
+ JOptionPane.showMessageDialog(this, ex.getMessage(), "\83G\83\89\81[", JOptionPane.ERROR_MESSAGE);
+ return;
+ }
+ }else{
+ url = VideoID_TextField.getText();
+ }
+
+ Converter = new Converter(url, WayBackField
.getText(), this.getSetting(), this.statusBar,
new ConvertStopFlag(this.DoButton, DoButtonStopString,
DoButtonWaitString, DoButtonDefString));
}
}
- /* \83r\83f\83I\81E\83Z\81[\83u\83_\83C\83A\83\8d\83O */
- public void ShowSavingVideoDialogButton_actionPerformed(ActionEvent e) {
- showSaveDialog("\93®\89æ\82Ì\95Û\91¶\90æ(\83t\83@\83C\83\8b)", VideoSavedFileField, true, false);
- }
-
/* \83R\83\81\83\93\83g\81E\83Z\81[\83u\83_\83C\83A\83\8d\83O */
public void ShowSavingCommentDialogButton_actionPerformed(ActionEvent e) {
showSaveDialog("\83R\83\81\83\93\83g\82Ì\95Û\91¶\90æ(\83t\83@\83C\83\8b)", CommentSavedFileField, true, false);
showSaveDialog("\83R\83\81\83\93\83g\82Ì\95Û\91¶\90æ(\83t\83H\83\8b\83_)", CommentSavedFolderField, true, true);
}
- public void ShowSavingVideoFolderDialogButton_actionPerformed(ActionEvent e) {
- showSaveDialog("\93®\89æ\82Ì\95Û\91¶\90æ(\83t\83H\83\8b\83_)", VideoSavedFolderField, true, true);
- }
-
/**
* This method initializes ConvertingSettingPanel
*
}
/**
- * This method initializes DelVideoCheckBoc
- *
- * @return javax.swing.JCheckBox
- */
- private JCheckBox getDelVideoCheckBox() {
- if (DelVideoCheckBox == null) {
- DelVideoCheckBox = new JCheckBox();
- DelVideoCheckBox.setText("\95Ï\8a·\8cã\82É\93®\89æ\83t\83@\83C\83\8b\82ð\8dí\8f\9c\82·\82é");
- }
- return DelVideoCheckBox;
- }
-
- /**
* This method initializes DelCommentCheckBox
*
* @return javax.swing.JCheckBox
}
/**
- * This method initializes VideoSaveInfoPanel
- *
- * @return javax.swing.JPanel
- */
- private JPanel getVideoSaveInfoPanel() {
- if (VideoSaveInfoPanel == null) {
- GridBagConstraints gridBagConstraints15 = new GridBagConstraints();
- gridBagConstraints15.fill = GridBagConstraints.HORIZONTAL;
- gridBagConstraints15.gridwidth = 4;
- gridBagConstraints15.gridx = 0;
- gridBagConstraints15.gridy = 1;
- gridBagConstraints15.weightx = 1.0;
- gridBagConstraints15.insets = new Insets(0, 25, 0, 5);
- GridBagConstraints gridBagConstraints32 = new GridBagConstraints(3,
- 4, 1, 1, 0.0, 0.0, GridBagConstraints.SOUTH,
- GridBagConstraints.NONE, new Insets(0, 0, 0, 5), 0, 0);
- gridBagConstraints32.gridx = 3;
- gridBagConstraints32.insets = new Insets(0, 0, 5, 5);
- gridBagConstraints32.gridy = 5;
- GridBagConstraints gridBagConstraints30 = new GridBagConstraints(0,
- 4, 3, 1, 1.0, 0.0, GridBagConstraints.CENTER,
- GridBagConstraints.BOTH, new Insets(0, 50, 0, 5), 0, 0);
- gridBagConstraints30.gridx = 0;
- gridBagConstraints30.insets = new Insets(0, 50, 5, 5);
- gridBagConstraints30.gridy = 5;
- GridBagConstraints gridBagConstraints29 = new GridBagConstraints(0,
- 3, 4, 1, 1.0, 0.0, GridBagConstraints.CENTER,
- GridBagConstraints.BOTH, new Insets(0, 25, 0, 5), 0, 0);
- gridBagConstraints29.gridx = 0;
- gridBagConstraints29.gridy = 4;
- GridBagConstraints gridBagConstraints28 = new GridBagConstraints(0,
- 2, 3, 1, 1.0, 0.0, GridBagConstraints.WEST,
- GridBagConstraints.BOTH, new Insets(0, 50, 0, 5), 0, 0);
- gridBagConstraints28.gridx = 0;
- gridBagConstraints28.gridy = 3;
- GridBagConstraints gridBagConstraints27 = new GridBagConstraints(0,
- 1, 4, 1, 1.0, 0.0, GridBagConstraints.WEST,
- GridBagConstraints.HORIZONTAL, new Insets(0, 25, 0, 5), 0,
- 0);
- gridBagConstraints27.gridx = 0;
- gridBagConstraints27.gridy = 2;
- GridBagConstraints gridBagConstraints34 = new GridBagConstraints();
- gridBagConstraints34.insets = new Insets(0, 5, 0, 5);
- gridBagConstraints34.gridy = 0;
- gridBagConstraints34.weightx = 1.0;
- gridBagConstraints34.fill = GridBagConstraints.HORIZONTAL;
- gridBagConstraints34.gridx = 0;
- GridBagConstraints gridBagConstraints31 = new GridBagConstraints(3,
- 2, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER,
- GridBagConstraints.NONE, new Insets(0, 0, 0, 5), 0, 0);
- gridBagConstraints31.gridy = 3;
- gridBagConstraints31.gridx = 3;
- VideoSaveInfoPanel = new JPanel();
- VideoSaveInfoPanel.setLayout(new GridBagLayout());
- VideoSaveInfoPanel.setBorder(BorderFactory.createTitledBorder(null,
- "\93®\89æ\95Û\91¶\90Ý\92è", TitledBorder.DEFAULT_JUSTIFICATION,
- TitledBorder.DEFAULT_POSITION, new Font("MS UI Gothic",
- Font.PLAIN, 12), Color.black));
- VideoSaveInfoPanel.add(SavingVideoCheckBox, gridBagConstraints34);
- VideoSaveInfoPanel.add(Video_SaveFolderRadioButton,
- gridBagConstraints27);
- VideoSaveInfoPanel.add(ShowSavingVideoFolderDialogButton,
- gridBagConstraints31);
- VideoSaveInfoPanel.add(VideoSavedFolderField, gridBagConstraints28);
- VideoSaveInfoPanel.add(Video_SaveFileRadioButton,
- gridBagConstraints29);
- VideoSaveInfoPanel.add(VideoSavedFileField, gridBagConstraints30);
- VideoSaveInfoPanel.add(ShowSavingVideoFileDialogButton,
- gridBagConstraints32);
- VideoSaveInfoPanel.add(getDelVideoCheckBox(), gridBagConstraints15);
- }
- return VideoSaveInfoPanel;
- }
-
- /**
* This method initializes SaveInfoTabPaneEach
*
* @return javax.swing.JTabbedPane
gridBagConstraints37.fill = GridBagConstraints.HORIZONTAL;
VideoSavingTabbedPanel = new JPanel();
VideoSavingTabbedPanel.setLayout(new GridBagLayout());
- VideoSavingTabbedPanel.add(getVideoSaveInfoPanel(),
+ VideoSavingTabbedPanel.add(videoSaveInfoPanel,
gridBagConstraints36);
VideoSavingTabbedPanel.add(CommentSaveInfoPanel,
gridBagConstraints37);
return ShadowComboBox;
}
-}
-
-class MainFrame_ShowSavingVideoFolderDialogButton_actionAdapter implements
- ActionListener {
- private MainFrame adaptee;
-
- MainFrame_ShowSavingVideoFolderDialogButton_actionAdapter(MainFrame adaptee) {
- this.adaptee = adaptee;
- }
-
- public void actionPerformed(ActionEvent e) {
- adaptee.ShowSavingVideoFolderDialogButton_actionPerformed(e);
- }
+ private class VideoSavePanelButtonListener implements ActionListener {
+
+ public void actionPerformed(ActionEvent e) {
+ final Object source = e.getSource();
+ final VideoSaveInfoPanel panel = videoSaveInfoPanel;
+ String title;
+ JTextField field;
+ boolean isSave;
+ boolean isDir;
+
+ if (source == panel.getShowSavingVideoFolderDialogButton()) {
+ title = "\93®\89æ\82Ì\95Û\91¶\90æ(\83t\83H\83\8b\83_)";
+ field = panel.getVideoSavedFolderField();
+ isSave = true;
+ isDir = true;
+ } else if (source == panel.getShowSavingVideoFileDialogButton()) {
+ title = "\93®\89æ\82Ì\95Û\91¶\90æ(\83t\83@\83C\83\8b)";
+ field = panel.getVideoSavedFileField();
+ isSave = true;
+ isDir = false;
+ } else if (source == panel.getNibrFileChooserButton()) {
+ title = "NicoBrowser\83t\83@\83C\83\8b\91I\91ð";
+ field = panel.getNibrFileField();
+ isSave = false;
+ isDir = false;
+ } else {
+ return;
+ }
+ showSaveDialog(title, field, isSave, isDir);
+ }
+ }
+
+ private class VideoUseRadioButtonListener implements ActionListener {
+
+ public void actionPerformed(ActionEvent e) {
+ Object source = e.getSource();
+ if (source == videoSaveInfoPanel.getVideoUseNiBrButton()) {
+ maskExt();
+ } else {
+ maskBase();
+ }
+ }
+
+ private void maskBase() {
+ mask(true);
+ }
+
+ private void maskExt() {
+ mask(false);
+ }
+
+ private void mask(boolean b) {
+ final VideoSaveInfoPanel panel = videoSaveInfoPanel;
+ VideoID_TextField.setEditable(b);
+ panel.getDelVideoCheckBox().setEnabled(b);
+
+ panel.getSaveFolderRadioButton().setEnabled(b);
+ panel.getVideoSavedFolderField().setEnabled(b);
+ panel.getShowSavingVideoFolderDialogButton().setEnabled(b);
+
+ panel.getSaveFileRadioButton().setEnabled(b);
+ panel.getVideoSavedFileField().setEnabled(b);
+ panel.getShowSavingVideoFileDialogButton().setEnabled(b);
+
+ panel.getNibrFileField().setEnabled(!b);
+ panel.getNibrFileChooserButton().setEnabled(!b);
+ }
+ }
}
class MainFrame_ShowSavingCommentFolderDialogButton_actionAdapter implements
}
}
-class MainFrame_ShowSavingVideoDialogButton_actionAdapter implements
- ActionListener {
- private MainFrame adaptee;
-
- MainFrame_ShowSavingVideoDialogButton_actionAdapter(MainFrame adaptee) {
- this.adaptee = adaptee;
- }
-
- public void actionPerformed(ActionEvent e) {
- adaptee.ShowSavingVideoDialogButton_actionPerformed(e);
- }
-}
-
class MainFrame_DoButton_actionAdapter implements ActionListener {
private MainFrame adaptee;