protected void createComponents() {
this.setSaveDirectly(true);
this.dfDate = new JbsDateField();
this.txYourReference = new JbsTextField();
this.txLetterSubject = new JbsTextField();
this.txLetterSubject.setWidth(new JbsExtent(95,JbsExtent.PERCENT));
this.txLetterSalutation = new JbsTextField();
this.txLetterSalutation.setWidth(new JbsExtent(95,JbsExtent.PERCENT));
this.txLetterText = new JbsRichTextArea();
this.txLetterText.setWidth(new JbsExtent(95,JbsExtent.PERCENT));
this.txLetterText.setHeight(new JbsExtent(400,JbsExtent.PX));
this.lblContact = new JbsLabel();
this.selContact = new JbsContactSelectField();
this.setBtnPrint(new JbsObjectToolPaneButton("print.png", JbsL10N.getString("Generic.print") , false));
this.getBtnPrint().addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
printLetter();
}
});
this.setSpMain(new SplitPane());
this.getSpMain().setOrientation(SplitPane.ORIENTATION_HORIZONTAL_RIGHT_LEFT);
this.getSpMain().setSeparatorPosition(new JbsExtent(PnModule.STD_TOOLPANEWIDTH,JbsExtent.PX));
this.getSpMain().setSeparatorWidth(new JbsExtent(1,JbsExtent.PX));
this.setToolPane(new JbsObjectToolPane());
this.setShowContactField(true);
}