title: How to detect whether Printer is attached to your computer or not in Java?
body: <p>I am creating one GUI in swing Java. I have to use one button " Print " which will directly start printing the file I have set without opening the default Print dialog box.
  I have to check first whether printner is attached to my computer or not ?</p>