StyleReportAsApplet
A simple example of how to deploy Style Report Pro in an applet context:
Simple.java source:
import java.applet.*;
import inetsoft.report.*;
import java.awt.*;
public class Simple extends Applet {
public void init(){
showReport();
}
public void showReport(){
StyleSheet report = new StyleSheet();
report.addText("My Report");
PreviewView preview = Previewer.createPreviewer();
preview.setExitOnClose(true);
preview.pack();
preview.setVisible(true);
preview.print(report);
}
public void paint( Graphics g ) {
g.drawString("This applet pops an InetSoft Previewer Screen",100,100);
}
}
Please note: the class file in this example as well as the jar files are assumed to be in the same directory as the html source file.
--
StephenWebster - 11 Dec 2007