I'm trying to take a screenshot with
Robot() and doing some research I found that I could do it this way
The problem is that the createScreenCapture method receives a rectangle so I figured I could do something like that
robotAwt.createScreenCapture(new Rectangle(y, x))
rectangle receives 2 int the height and width if what I need is to take the full screen capture how do I get these sizes? that is, how I get the height and width of the screen.