hi friends!

i have created a button on my applet.

the button name is "PRINT".

i wan the code for this button ,such that the print out of the information given as input to the applet must be printed.

is there any command in java to directly get printed from the printer??????
plz help me in my project.

The java.awt.PrintJob class is what you need here. You create the PrintJob object and set the header, body and footer of what you want printed then tell it to print. For more information, check out the Java API for the PrintJob class.