});
this.getColMain().add(btnPrint);
}
protected void printLetters() {
final LetterPrinter letterPrinter = new LetterPrinter(((MassLetterWizard)this.getWizard()).getLetterTemplate(), ((MassLetterWizard)this.getWizard()).getCreatedLetters(), ClientGlobals.getUser(), ClientGlobals.getCompany());
final FmJbsReportOptions fmReportOptions = new FmJbsReportOptions("letter");
fmReportOptions.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
if (arg0.getActionCommand().equals(JbsDialogWindowOKCancel.ACTION_OK)) {
letterPrinter.setPageTemplate(fmReportOptions.getSelectedPageTemplate());
letterPrinter.setReportTemplate(fmReportOptions.getSelectedReportTemplate());
doPrintLetters(letterPrinter);
}
}
});
fmReportOptions.showForm();