How can I prevent taking screenshots by any application using Java? Some applications takes screenshots every 5-10 mins, and I want that all these screenshots to be black or something similar.
Asked
Active
Viewed 314 times
-3
-
8You don't. You can't. Good luck! – Elliott Frisch Jan 09 '21 at 15:53
-
Can I prevent for specific application? – Yevhenii Chykalov Jan 09 '21 at 16:06
-
5Was "can't" unclear? – Elliott Frisch Jan 09 '21 at 16:32
-
@ElliottFrisch Can't it somehow prevented? Some DRM protected media for example makes screenshots only black. – JCWasmx86 Jan 09 '21 at 18:19
-
3Java runs on a virtual machine. That virtual machine would have to implement DRM protection for that capability to be available for you to use. It does not. There is nothing in Java to do what you want. – Elliott Frisch Jan 09 '21 at 18:36
1 Answers
1
As Frisch commented, Java apps runs in a virtual machine. No JVM I know of has implemented DRM to suppress screen-shots.
And the issue is moot. Most everybody nowadays carries a phone in their pocket or purse. Those phones are equipped with a high-resolution camera capable of taking digital images of any screen.

Basil Bourque
- 303,325
- 100
- 852
- 1,154
-
3Plus one for mentioning the phone. I had an artist friend who scoffed at 'prevent screen shots' years ago. *"I could just draw it!"* – Andrew Thompson Jan 10 '21 at 02:09
-
2