How to check Printer is connected or not to your PC by Java?

前端 未结 4 2031
野的像风
野的像风 2021-01-27 06:19

I am able to get the name of printer which I had installed previously on my PC.But now its not physically connected to my pc. How should I check it first before moving to Print(

4条回答
  •  醉酒成梦
    2021-01-27 07:09

    Take a look at the javax.print API. A good starting point would be PrintServiceLookup.

提交回复
热议问题