You cannot do that for security reasons. If you could, applets would already have become notorious for printing 10+ pages of 'special offers' when you visit unscrupulous web sites.
OTOH, if the client is willing to accept one prompt at applet start-up, you could digitally sign the code.