Examples of PreviewFrame


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

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

          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

Examples of org.pentaho.reporting.engine.classic.core.modules.gui.base.PreviewFrame

    return report;
  }

  public static void main(final String[] args) throws Exception
  {
    final PreviewFrame d = new PreviewFrame(getReport());
    d.pack();
    d.addWindowListener(new WindowAdapter()
    {
      /**
       * Invoked when a window is in the process of being closed.
       * The close operation can be overridden at this point.
       */
      public void windowClosing(final WindowEvent e)
      {
        System.exit(0);
      }
    });
    d.setVisible(true);
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.gui.base.PreviewFrame

    report.setDataFactory(new TableDataFactory
        ("default", new DefaultTableModel()));

    ClassicEngineBoot.getInstance().start();
    PreviewFrame preview = new PreviewFrame(report);
    preview.pack();
    preview.setVisible(true);

  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.