Warning Noob: Sending "Hello World!" in Printer using Java Applet

Hello guys!

im a newbie in java programming... i hope that you can help me with my problem.

how can i print "Hello World!" in printer using java applet. lets pretend that the applet is digitally signed.

i tried window.print in javascript but unfortunately, that is not what i am looking for.

thanks for reading my post and i hope that you help me with my quest in java =)

[404 byte] By [monkeynotea] at [2007-11-27 8:18:22]
# 1
You need to use the Java Printing API and print the contents of a Graphics object to a Print Job class.There are lots of examples of how to do this. http://java.sun.com/developer/technicalArticles/Printing/Java2DPrinting/
bryanoa at 2007-7-12 20:03:54 > top of Java-index,Java Essentials,New To Java...
# 2
how can i use java.awt.print class in an APPLET? is there any code example that i can start with? i visited the site but there is no example for me to use a java applet. only swing. i hope that you can help me with my problem =(
monkeynotea at 2007-7-12 20:03:54 > top of Java-index,Java Essentials,New To Java...
# 3
help me guys please ="( wahhhhhhhh
monkeynotea at 2007-7-12 20:03:54 > top of Java-index,Java Essentials,New To Java...
# 4
An applet is still part of the Swing package. I assume you're extending JApplet. There isn't anything in the print API that says it can't be done in an applet. Except that you might have to sign your applet Jar file with a digital certificate to get the printing to work.
bryanoa at 2007-7-12 20:03:54 > top of Java-index,Java Essentials,New To Java...