Oct
03
|
The Desktop class was added in Java 6 to handle launching associated applications on the native desktop.
Following shows how to print a file with the associated native printing facility.
File file = new File("/tmp/file.txt"); Desktop desktop = Desktop.getDesktop(); desktop.print(file);
Array ( ) One Response to “How to use native printing from Java”
Leave a Reply
You must be logged in to post a comment.
March 4th, 2014 at 6:40 pm
Great Thanks working cool.