private void createLayout() {
getContentPane().removeAll();
setTitle(view.getController().getModel().getName() + HelperString.COLON + HelperString.SPACE + localizer.getValue(HelperResource.RES_ACTION_ABOUT));
final JPanel panel = new Panel(new BorderLayout());
panel.setBorder(BorderFactory.createEmptyBorder(10, 10, 5, 10));
final JPanel panelWest = new Panel(new BorderLayout());
panelWest.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 10));
final JPanel panelEast = new Panel(new GridLayout(0, 1));
panelEast.setBorder(BorderFactory.createEmptyBorder(0, 0, 10, 10));
panelWest.add(new Label(view.getController().getScaledIcon(Icon.LOGO)), BorderLayout.NORTH);
panelEast.add(new Label(view.getController().getModel().getName() + HelperString.SPACE + view.getController().getModel().getVersion()));
panelEast.add(new JXTitledSeparator(null));
panelEast.add(new Label(HelperString.COPYRIGHT + " 2010-2011:")); //$NON-NLS-1$
panelEast.add(new Label());
panelEast.add(new Label("Stefan Laubenberger")); //$NON-NLS-1$
panelEast.add(new Label("Bullingerstrasse 53")); //$NON-NLS-1$
panelEast.add(new Label("CH-8004 Zürich")); //$NON-NLS-1$
panelEast.add(new Label());
final JXHyperlink link = new JXHyperlink();
final JXHyperlink mail = new JXHyperlink();
try {
link.setURI(new URI(HelperResource.URL));
// link.setURI(view.getController().getModel().getUrl().toURI());
mail.setURI(new URI(HelperResource.MAIL));
// mail.setText(HelperResource.MAIL);
} catch (URISyntaxException ex) {
//should never happen!
log.error("Invalid URI", ex); //$NON-NLS-1$
}
panelEast.add(link);
panelEast.add(mail);
panelEast.add(new Label());
//
panel.add(panelWest, BorderLayout.WEST);
panel.add(panelEast, BorderLayout.EAST);
final Group group = new Group(new Insets(0, 0, 0, 10), new Button(new ActionClose()), new Button(new ActionInfo()));