A Java JRuby screenshot (screen capture) example
By Alvin Alexander. Last updated: June 3 2016
Java image FAQ: Can you show me how to create a screen capture in Java?
I don't have any Java screen capture code to share at the moment, but if you don't mind a JRuby screen capture example (which you can easily convert to Java), this JRuby screenshot (screen capture) source code example should help point you in the right direction: