import org.jfree.report.*;
import statreport.*;
import statreport.gui.*;
public class TabbedPaneReportFrameExample
{
public
static void main(String[] args)
{
JFreeReportBoot.getInstance().start();
String[] tabNames = {"Tab
1", "Tab 2", "Tab 3"};
String[][] firstTabData =
new String[][] { {"Categorical
Values",
"Numerical Values"}, {"A1", "3"},
{"A2", "5"} };
String[][] secondTabData = {
{"Source", "DF", "SS", "MS",
"F"},
{"Regression",
"2", "400", "200", "2"},
{"Residual",
"18", "1800", "100", ""},
{"Total",
"20", "2200", "", ""} };
String[][] thirdTabData = {
{"Car", "Color", "Company"},
{"BMW", "Blue",
"SAP"},
{"Ferrari",
"
{"Volvo",
"Yellow", "Oracle"},
{"
{"Jaguar",
"White", "Sun"},
{"Ford",
"Green", "HP"} };
String[][][] data = {firstTabData,
secondTabData, thirdTabData};
ReportFrame rf1 =
new TabbedpaneReportFrame().createReportFrame(
"Report: Tabbed Pane",
"Header Here",
"Footer Here",
tabNames,
data);
rf1.pack();
rf1.setVisible(true);
TabbedpaneReportFrame rf2 =
new TabbedpaneReportFrame(tabNames, data);
rf2.pack();
rf2.setVisible(true);
}
}
Results:

