Deval Khandelwal
Deval Khandelwal

Reputation: 3548

Java - show Application Name instead of "Java Printing" in the Printing Details Window

In my java printing program, when I print any document using Java, the document prints in the "name of Java Printing" instead of my Application name. How do I show the name of my application in the printing details window of the printer? Any help will be appreciated.

print

Upvotes: 1

Views: 181

Answers (1)

Akash Thakare
Akash Thakare

Reputation: 22972

You should use setJobName(String name) which sets the name of the document to be printed.

printJOB.setJobName("YourPrintName");//You can specify your appName here

Upvotes: 2

Related Questions