> 1) I want to print my html page from applet.If i run my applet
> from browser then my applet should be sigened but i am running my
> applet from appletviewer then also i am getting exception
Certainly from the Plug-In, if you try to print from an unsigned applet,
you should get a dialog asking to proceed. If you are signing a jar
file, you really should know what you are getting in to.
> Exception in thread "AWT-EventQueue-1" java.lang.NullPointerException
> at PrinterApplet.prep(PrinterApplet.java:80)
[quoted text clipped - 12 lines]
> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258
> )
That looks like a bug in your program. Your code is attempting to
dereference a null pointer.
> 2) how can i send my html content to the applet for
> printing.anybody suggest me any examples or suggestions in this issue.
> thanks in advance.
Using java.net.URL would be the obvious solution.
Tom Hawtin