Relatório em Applet

Criei um relatório no IReport e quando fui tentar exibir o relatório pelo meu programa no JCreator. Quando executava como um aplicativo o relatório era exibido normalmente, mas em Applet está dando erro.
Não deu pra ver o erro, mas parece que é de segurança ou algo assim.

Alguém sabe se é possível exibir relatório gerado no IReport usando Applet?

Obrigado.

Saulo Grego
sgrego@facic.fuom.br
saulogrego@yahoo.com.br

Oi

sgrego, seja bem vindo ao PJ…

Veja o exemplo de assinturas de applets no link abaixo

http://www.javasoft.com.br/articles/tcljava03/tcljava03.pdf

T+

Obrigado Paulo,

consegui fazer o java.policy seguindo o pdf que vc mandou. mas está ocorrendo erro de segurança mesmo assim. o erro é o seguinte:

java.security.AccessControlException: access denied (java.io.FilePermission RelatorioProducao.jasper read) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkRead(Unknown Source) at java.io.File.exists(Unknown Source) at dori.jasper.engine.util.JRLoader.loadObject(JRLoader.java:114) at dori.jasper.engine.util.JRLoader.loadObject(JRLoader.java:105) at dori.jasper.engine.JasperManager.loadReport(JasperManager.java:1035) at RelPrestador.jButton1ActionPerformed(RelPrestador.java:116) at RelPrestador.access$100(RelPrestador.java:23) at RelPrestador$2.actionPerformed(RelPrestador.java:78) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener$ReleasedAction.actionPerformed(Unknown Source) at javax.swing.SwingUtilities.notifyAction(Unknown Source) at javax.swing.JComponent.processKeyBinding(Unknown Source) at javax.swing.JComponent.processKeyBindings(Unknown Source) at javax.swing.JComponent.processKeyEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source) at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source) at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source) at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source) at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)

e meu arquivo .java.policy está assim:

/* AUTOMATICALLY GENERATED ON Wed Nov 10 11:31:23 BRST 2004*/
/* DO NOT EDIT */

keystore “file:/C:/WINDOWS/.keystore”;

grant signedBy “mykey”, codeBase “file:/C:/Windows/Desktop/Pcc/Automed.jar” {
permission java.io.FilePermission “<<ALL FILES>>”, “read, write, delete, execute”;
};

O que pode estar acontecendo, acho que não estou esquecendo de nada naum…