View RSS Feed

My Java Tips

  1. Capture screenshots

    by , 11-14-2011 at 05:41 PM (My Java Tips)
    Taking screenshots in windows is simple and very useful in our day to day business. It is done by pressing the Print Screen key on your keyboard [PrtScn], pasting it in image editor such as MS paint and then editing and saving it. In this post, I will write about how to do this from Java program.


    Java provides classes to help us which capturing screens.

    java.awt.Robot is used to generate native system input events which can be used to for test automation, and other ...