{
try
{
final MasterReport report = createReport();
final PreviewInternalFrame frame = new PreviewInternalFrame(report);
frame.setClosable(true);
frame.setResizable(true);
frame.setToolbarFloatable(false);
getDesktop().add(frame);
frame.pack();
frame.setVisible(true);
frame.requestFocus();
}
catch (ReportDefinitionException e)
{
AbstractDemoFrame.showExceptionDialog(desktop, "report.definitionfailure", e);
}