java program

label Programming
account_circle Unassigned
schedule 3 Days
account_balance_wallet $5

can we create a java program to capture the monitor screen
Nov 30th, -0001
import java.awt.*;
import java.awt.image.*;
import javax.imageio.*;
import java.io.*;

public class ScreenGrab {
public static void main(String[] arg) throws Exception {
Dimension screenDim = Toolkit.getDefaultToolkit().getScreenSize();
Robot robot = new Robot();
BufferedImage image = robot.createScreenCapture(
new Rectangle(0, 0, (int)screenDim.getWidth(),
(int)screenDim.getHeight()));

File fi=new File("ScreenGrab.jpg");
ImageIO.write(image,"jpg",fi);
Toolkit.getDefaultToolkit().beep();
}
}
Jul 3rd, 2013

Studypool's Notebank makes it easy to buy and sell old notes, study guides, reviews, etc.
Click to visit
The Notebank
...
Nov 30th, -0001
...
Nov 30th, -0001
Sep 24th, 2017
check_circle
Mark as Final Answer
check_circle
Unmark as Final Answer
check_circle
Final Answer

Secure Information

Content will be erased after question is completed.

check_circle
Final Answer