how to take schreen shot using java

Solutions on MaxInterview for how to take schreen shot using java by the best coders in the world

showing results for - "how to take schreen shot using java"
Isidora
22 Jan 2017
1BufferedImage image = new Robot().createScreenCapture(new Rectangle(Toolkit.getDefaultToolkit().getScreenSize()));
2ImageIO.write(image, "png", new File("/screenshot.png"));
3