lblOutputFileNamePattern.setText("ファイル名規則");
btnOutputDir.addActionListener(
- new FileChooseAction(ConfigDialog.this, JFileChooser.DIRECTORIES_ONLY, fldOutputDir));
+ new FileChooseActionListener(ConfigDialog.this, JFileChooser.DIRECTORIES_ONLY, fldOutputDir));
cbOutputEnable.setText("変換");
final JButton btnFontPath = new JButton("...");
btnFontPath.addActionListener(
- new FileChooseAction(ConfigDialog.this, JFileChooser.FILES_ONLY, fldFontPath));
+ new FileChooseActionListener(ConfigDialog.this, JFileChooser.FILES_ONLY, fldFontPath));
lblFontIndex.setText("フォント番号");
final JButton btnFfmpegPath = new JButton("...");
btnFfmpegPath.addActionListener(
- new FileChooseAction(ConfigDialog.this, JFileChooser.FILES_ONLY, fldFfmpegPath));
+ new FileChooseActionListener(ConfigDialog.this, JFileChooser.FILES_ONLY, fldFfmpegPath));
final JButton btnFfmpegDllPath = new JButton("...");
btnFfmpegDllPath.addActionListener(
- new FileChooseAction(ConfigDialog.this, JFileChooser.FILES_ONLY, fldFfmpegDllPath));
+ new FileChooseActionListener(ConfigDialog.this, JFileChooser.FILES_ONLY, fldFfmpegDllPath));
GroupLayout gl_jPanel10 = new GroupLayout(pnlFfmpegBinPath);
pnlFfmpegBinPath.setLayout(gl_jPanel10);
final JLabel lblSystemTempDir = new JLabel("作業フォルダ");
final JButton btnSystemTempDir = new JButton("...");
btnSystemTempDir.addActionListener(
- new FileChooseAction(ConfigDialog.this, JFileChooser.DIRECTORIES_ONLY, fldSystemTempDir));
+ new FileChooseActionListener(ConfigDialog.this, JFileChooser.DIRECTORIES_ONLY, fldSystemTempDir));
mdlSystemThreadDownload.setMinimum(1);
final JSpinner fldSystemThreadDownload = new JSpinner(mdlSystemThreadDownload);
final JButton btnDir = new JButton("...");
btnDir.addActionListener(
- new FileChooseAction(DownloadLocationPanel.this, JFileChooser.DIRECTORIES_ONLY, fldDir));
+ new FileChooseActionListener(DownloadLocationPanel.this, JFileChooser.DIRECTORIES_ONLY, fldDir));
final GroupLayout gl = new GroupLayout(this);
setLayout(gl);
*
* @author user
*/
-public class FileChooseAction implements ActionListener {
+public class FileChooseActionListener implements ActionListener {
private final Component parent;
private final int fileSelectionMode;
private final JTextField textField;
- public FileChooseAction(Component parent, int fileSelectionMode, JTextField field) {
+ public FileChooseActionListener(Component parent, int fileSelectionMode, JTextField field) {
this.parent = parent;
this.fileSelectionMode = fileSelectionMode;
this.textField = field;
cbVideoLocal.setToolTipText(FILE_LOCALBUTTON_TOOLTIP);
cmbVideo.setToolTipText(FILE_INPUTFIELD_TOOLTIP);
btnVideo.addActionListener(
- new FileChooseAction(MainFrame.this, JFileChooser.FILES_ONLY, fldVideo));
+ new FileChooseActionListener(MainFrame.this, JFileChooser.FILES_ONLY, fldVideo));
final JLabel lblComment = new JLabel();
fldBackLog.setToolTipText("YYYY/MM/DD hh:mm:ss形式、あるいは1970/01/01からの経過秒を入力します。");
});
cmbComment.setToolTipText(FILE_INPUTFIELD_TOOLTIP);
btnComment.addActionListener(
- new FileChooseAction(MainFrame.this, JFileChooser.FILES_ONLY, fldComment));
+ new FileChooseActionListener(MainFrame.this, JFileChooser.FILES_ONLY, fldComment));
final JLabel lblOutput = new JLabel();
cbOutputEnable = new JCheckBox();
fldOutput = new JTextField();