/**
* @see de.willuhn.jameica.gui.dialogs.AbstractDialog#paint(org.eclipse.swt.widgets.Composite)
*/
protected void paint(Composite parent) throws Exception
{
Container container1 = new SimpleContainer(parent);
container1.addHeadline(i18n.tr("Wichtiger Hinweis"));
container1.addText(i18n.tr("F�r einige Banken gelten Sonderregeln f�r die IBAN-Berechnung, die von " +
"Hibiscus u.U. nicht unterst�tzt werden." +
"\n\nDaher gilt: " +
"Bitte verifizieren Sie daher die errechnete IBAN."),true);
Container container2 = new SimpleContainer(parent);
container2.addHeadline(i18n.tr("Nationale Bankverbindung"));
container2.addInput(this.getBlz());
container2.addInput(this.getKonto());
container2.addHeadline(i18n.tr("Zugeh�rige SEPA-Bankverbindung"));
container2.addInput(this.getBic());
container2.addInput(this.getIban());
container2.addInput(this.getMessage());
ButtonArea buttons = new ButtonArea();
buttons.addButton(i18n.tr("Berechnen"),new Action()
{
public void handleAction(Object context) throws ApplicationException
{
calc();
}
},null,true,"accessories-calculator.png");
buttons.addButton(i18n.tr("Schlie�en"),new Action()
{
public void handleAction(Object context) throws ApplicationException
{
close();
}
},null,false,"window-close.png");
container2.addButtonArea(buttons);
getShell().setMinimumSize(getShell().computeSize(WINDOW_WIDTH,SWT.DEFAULT));
}