Package org.jfree.report.modules.gui.base

Examples of org.jfree.report.modules.gui.base.PreviewFrame


    ReportGenerator gen = ReportGenerator.getInstance();
    try {
      final JFreeReport report1 = gen.parseReport(file1);
      report1.setData(myData);
      setReportProperties(report1, rapName, imagePath, compName,compId);
      final PreviewFrame frame1 = new PreviewFrame(report1);
      frame1.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
      frame1.pack();
      RefineryUtilities.positionFrameRandomly(frame1);
      frame1.setVisible(true);
      frame1.requestFocus();
    } catch (Exception e) {
      JOptionPane.showMessageDialog(null, e.getMessage(), "Error: " + e.getClass().getName(), JOptionPane.ERROR_MESSAGE);
    }

  }//}}}
View Full Code Here


          public void setValueAt(Object aValue, int row, int col) {
          }//}}}
        };
      report1.setData(myData);
      try {
        PreviewFrame frame1 = new PreviewFrame(report1);
        frame1.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
        frame1.pack();
        RefineryUtilities.positionFrameRandomly(frame1);
        frame1.setVisible(true);
        frame1.requestFocus();
      } catch (Exception e) {
        JOptionPane.showMessageDialog(null, e.getMessage(), "Error: " + e.getClass().getName(), JOptionPane.ERROR_MESSAGE);
      }
    }//}}}
View Full Code Here

TOP

Related Classes of org.jfree.report.modules.gui.base.PreviewFrame

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.