-1

Possible Duplicate:
Java: Is there a way to take a screenshot using java and save it to some sort of image?

hi I am using Ubuntu,I am trying to write code in java. I want to take screenshots dynamically using java. Please help me,how to do it.

Community
  • 1
  • 1
DJ31
  • 1,219
  • 3
  • 14
  • 19

1 Answers1

2

See java.awt.Robot.

(+ 11 characters for the politburo - ignore this comment).

user unknown
  • 35,537
  • 11
  • 75
  • 121
  • 1
    "http://download.oracle.com/javase/6/docs/api/java/awt/Robot.html" is 64 characters. Just saying. – Michael Myers Apr 28 '11 at 16:56
  • If you like to suggest to download something - feel free to do so. If I wanted to suggest to download it, I would have done so. Playing carnival in Venice, and pretending to just naturally always use 30 characters at least is not, what I like to do, when I get angry about such rules. Please ignore this comment entirely. Thanks. – user unknown Apr 28 '11 at 17:26
  • 1
    You suggested a class. I linked to the Javadocs of that class, that's all. – Michael Myers Apr 28 '11 at 17:28
  • Well, but the link is broken, you have to remove the trailing, maybe the leading '"'. In FF, removing the trailing quote was sufficient. 137 charcters. – user unknown Apr 28 '11 at 17:56
  • I actually just raised [a bug on Meta](http://meta.stackexchange.com/questions/89137/links-in-quotes-are-escaped-improperly-in-comments) that links in quotation marks don't work. – Michael Myers Apr 28 '11 at 18:08