import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JPanel;
-import javax.swing.JRadioButton;
import javax.swing.JScrollPane;
import javax.swing.JTabbedPane;
import javax.swing.JTextField;
public ConfigDialog(JFrame owner){
super(owner);
- final ButtonGroup buttonGroup1 = new ButtonGroup();
final JTabbedPane tabbedPane = new JTabbedPane();
final JPanel pnlNetwork = new JPanel();
final JPanel pnlAccount = new JPanel();
btnFfmpegPath = new JButton();
btnFfmpegDllPath = new JButton();
final JPanel pnlFfmpegParam = new JPanel();
- rbFfmpegOptionFile = new JRadioButton();
- rbFfmpegOptionDirectInput = new JRadioButton();
final JPanel pnlFfmpegParamOption = new JPanel();
final JLabel lblFfmpegOptionExtension = new JLabel();
final JLabel lblFfmpegOptionMain = new JLabel();
pnlFfmpegParam.setBorder(BorderFactory.createTitledBorder("ffmpegパラメータ"));
- buttonGroup1.add(rbFfmpegOptionFile);
- rbFfmpegOptionFile.setText("オプションファイル");
-
- buttonGroup1.add(rbFfmpegOptionDirectInput);
- rbFfmpegOptionDirectInput.setText("直接入力");
-
pnlFfmpegParamOption.setBorder(BorderFactory.createEtchedBorder());
lblFfmpegOptionExtension.setText("出力動画の拡張子");
.addContainerGap()
.addGroup(gl_pnlFfmpegParam.createParallelGroup(Alignment.LEADING)
.addComponent(pnlFfmpegParamOption, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addGroup(gl_pnlFfmpegParam.createSequentialGroup()
- .addComponent(rbFfmpegOptionFile)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(cmbFfmpegOptionFile, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
- .addComponent(rbFfmpegOptionDirectInput))
+ .addComponent(cmbFfmpegOptionFile, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
.addContainerGap())
);
gl_pnlFfmpegParam.setVerticalGroup(
gl_pnlFfmpegParam.createParallelGroup(Alignment.LEADING)
.addGroup(gl_pnlFfmpegParam.createSequentialGroup()
.addContainerGap()
- .addGroup(gl_pnlFfmpegParam.createParallelGroup(Alignment.BASELINE)
- .addComponent(rbFfmpegOptionFile)
- .addComponent(cmbFfmpegOptionFile, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(rbFfmpegOptionDirectInput)
+ .addComponent(cmbFfmpegOptionFile, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(ComponentPlacement.RELATED)
.addComponent(pnlFfmpegParamOption, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addContainerGap())
private final JTextField fldFfmpegDllPath;
private final JButton btnFfmpegDllPath;
// ffmpeg - ffmpegパラメータ
- private final JRadioButton rbFfmpegOptionFile;
- private final JRadioButton rbFfmpegOptionDirectInput;
private final JComboBox<FFmpegSelectedItem> cmbFfmpegOptionFile = new JComboBox<>(new OptionComboBoxModel());
private final JTextField fldFfmpegOptionExtension;
private final JTextField fldFfmpegOptionMain;
/*
* ffmpeg - ffmpegパラメータ
*/
- rbFfmpegOptionFile.setSelected(!p.getFfmpegParamInputDirect());
- rbFfmpegOptionDirectInput.setSelected(p.getFfmpegParamInputDirect());
// TODO cmbFfmpegOptionFile
fldFfmpegOptionExtension.setText(p.getFfmpegExtension());
fldFfmpegOptionMain.setText(p.getFfmpegMainOption());
/*
* ffmpeg - ffmpegパラメータ
*/
- p.setFfmpegParamInputDirect(rbFfmpegOptionDirectInput.isSelected());
+ // TODO p.setFfmpegParamInputDirect(rbFfmpegOptionDirectInput.isSelected());
// TODO cmbFfmpegOptionFile
p.setFfmpegExtension(fldFfmpegOptionExtension.getText());
p.setFfmpegMainOption(fldFfmpegOptionMain.getText());