import org.jfree.report.*;

 

import statreport.*;

import statreport.gui.*;

 

public class DefaultReportFrameExample

{

 

    public static void main(String[] args)

    {

        JFreeReportBoot.getInstance().start();

        DefaultReportFrame rf1 = new DefaultReportFrame(

            "Defalut Report Frame",

            "Header Here!!",

            "Footer Here", new String[][] { {"Categorical Values",

            "Numerical Values"}, {"A1", "3"}, {"A2", "5"} });

        rf1.pack();

        rf1.setVisible(true);

 

        ReportFrame rf2 = new DefaultReportFrame().createReportFrame(

            new String[][] { {"Categorical Values", "Numerical Values"},

            {"A1", "3"}, {"A2", "5"} });

        rf2.pack();

        rf2.setVisible(true);

    }

 

}

 

Results: