public CSVSettingsPanel(GanttProject parent) {
super(GanttProject.correctLabel(GanttLanguage.getInstance().getText(
"csvexport")), GanttLanguage.getInstance().getText(
"settingsCVSExport"), parent);
appli = parent;
vb.add(new JSeparator());
JPanel genePanel = new JPanel(new BorderLayout());
JLabel lblSeparatedField = new JLabel(language
.getText("separatedFields"));
lblSeparatedField.setFont(new Font(lblSeparatedField.getFont()
.getFontName(), Font.BOLD, lblSeparatedField.getFont()
.getSize()));
genePanel.add(lblSeparatedField, BorderLayout.WEST);
vb.add(genePanel);
JPanel fixedPanel = new JPanel(new BorderLayout());
fixedPanel.add(bFixedSize = new JRadioButton(), BorderLayout.WEST);
// bFixedSize.setEnabled(false);
bFixedSize.addActionListener(this);
fixedPanel.add(new JLabel(language.getText("fixedWidth")),
BorderLayout.CENTER);
vb.add(fixedPanel);
JPanel separatedPanel = new JPanel(new BorderLayout());
separatedPanel.add(bSeparatedText = new JRadioButton(),
BorderLayout.WEST);
bSeparatedText.addActionListener(this);
separatedPanel.add(new JLabel(language.getText("separated")),
BorderLayout.CENTER);
vb.add(separatedPanel);
JPanel separatorFieldPanel = new JPanel(new GridBagLayout());
vb.add(separatorFieldPanel);
GridBagConstraints gbc = new GridBagConstraints();
gbc.anchor = GridBagConstraints.WEST;
gbc.insets.right = 15;
gbc.insets.left = 10;
gbc.insets.top = 10;
addUsingGBL(separatorFieldPanel, bDoubleDot = new JRadioButton(), gbc,
0, 0, 1, 1);
bDoubleDot.addActionListener(this);
addUsingGBL(separatorFieldPanel, new JLabel(language
.getText("doubledot")), gbc, 1, 0, 1, 1);
addUsingGBL(separatorFieldPanel, bDotComa = new JRadioButton(), gbc, 3,
0, 1, 1);
bDotComa.addActionListener(this);
addUsingGBL(separatorFieldPanel,
new JLabel(language.getText("dotComa")), gbc, 4, 0, 1, 1);
addUsingGBL(separatorFieldPanel, bComa = new JRadioButton(), gbc, 6, 0,
1, 1);
bComa.addActionListener(this);
addUsingGBL(separatorFieldPanel, new JLabel(language.getText("coma")),
gbc, 7, 0, 1, 1);
bSpace = new JRadioButton();
// addUsingGBL(separatorFieldPanel, bSpace , gbc, 0, 1, 1, 1);
bSpace.addActionListener(this);
// addUsingGBL(separatorFieldPanel, new
// JLabel(language.getText("space")), gbc, 1, 1, 1, 1);
addUsingGBL(separatorFieldPanel, bOther = new JRadioButton(), gbc, 6,
1, 1, 1);
bOther.addActionListener(this);
addUsingGBL(separatorFieldPanel, new JLabel(language.getText("other")),
gbc, 7, 1, 1, 1);
addUsingGBL(separatorFieldPanel, tfOther = new JTextField(5), gbc, 8,
1, 1, 1);
JPanel textSeparatorFieldPanel = new JPanel(new FlowLayout());
vb.add(textSeparatorFieldPanel);
textSeparatorFieldPanel.add(new JLabel(language
.getText("textSeparator")));
cbTextSeparator = new JComboBox(appli.getOptions().getCSVOptions()
.getSeparatedTextChars());
textSeparatorFieldPanel.add(new JLabel(" "));
textSeparatorFieldPanel.add(cbTextSeparator);
vb.add(new JPanel());
// /////////////////////////////////////////////////
vb.add(new JSeparator());
JPanel taskPanel = new JPanel(new BorderLayout());
JLabel lblTaskField = new JLabel(language.getText("taskFields"));
lblTaskField.setFont(new Font(lblTaskField.getFont().getFontName(),
Font.BOLD, lblTaskField.getFont().getSize()));
taskPanel.add(lblTaskField, BorderLayout.WEST);
vb.add(taskPanel);
JPanel taskFieldPanel = new JPanel(new GridBagLayout());
vb.add(taskFieldPanel);
addUsingGBL(taskFieldPanel, cbTaskID = new JCheckBox(), gbc, 0, 0, 1, 1);
addUsingGBL(taskFieldPanel, new JLabel(language.getText("id")), gbc, 1,
0, 1, 1);
addUsingGBL(taskFieldPanel, cbTaskName = new JCheckBox(), gbc, 3, 0, 1,
1);
addUsingGBL(taskFieldPanel, new JLabel(language.getText("name")), gbc,
4, 0, 1, 1);
addUsingGBL(taskFieldPanel, cbTaskDuration = new JCheckBox(), gbc, 6,
0, 1, 1);
addUsingGBL(taskFieldPanel, new JLabel(language.getText("length")),
gbc, 7, 0, 1, 1);
addUsingGBL(taskFieldPanel, cbStartDate = new JCheckBox(), gbc, 0, 1,
1, 1);
addUsingGBL(taskFieldPanel, new JLabel(language
.getText("dateOfBegining")), gbc, 1, 1, 1, 1);
addUsingGBL(taskFieldPanel, cbEndDate = new JCheckBox(), gbc, 3, 1, 1,
1);
addUsingGBL(taskFieldPanel, new JLabel(language.getText("dateOfEnd")),
gbc, 4, 1, 1, 1);
addUsingGBL(taskFieldPanel, cbTaskPercent = new JCheckBox(), gbc, 6, 1,
1, 1);
addUsingGBL(taskFieldPanel,
new JLabel(language.getText("advancement")), gbc, 7, 1, 1, 1);
addUsingGBL(taskFieldPanel, cbTaskWebLink = new JCheckBox(), gbc, 0, 2,
1, 1);
addUsingGBL(taskFieldPanel, new JLabel(language.getText("webLink")),
gbc, 1, 2, 1, 1);
addUsingGBL(taskFieldPanel, cbTaskResources = new JCheckBox(), gbc, 3,
2, 1, 1);
addUsingGBL(taskFieldPanel, new JLabel(language.getText("resources")),
gbc, 4, 2, 1, 1);
addUsingGBL(taskFieldPanel, cbTaskNotes = new JCheckBox(), gbc, 6, 2,
1, 1);
addUsingGBL(taskFieldPanel, new JLabel(language.getText("notes")), gbc,
7, 2, 1, 1);
vb.add(new JPanel());
// /////////////////////////////////////////////////
vb.add(new JSeparator());
JPanel resPanel = new JPanel(new BorderLayout());
JLabel lblResField = new JLabel(language.getText("resFields"));
lblResField.setFont(new Font(lblResField.getFont().getFontName(),
Font.BOLD, lblResField.getFont().getSize()));
resPanel.add(lblResField, BorderLayout.WEST);