0

Possible Duplicate:
Java Swing : Obtain `Image` of JFrame

Is it possible to take a screenshot of your JFrame programatically? How?

I am using BlueJ. Thank you!

Community
  • 1
  • 1
  • 1
    Looks like your question is already answered here: http://stackoverflow.com/questions/5853879/java-swing-obtain-image-of-jframe – Cyril Deba Nov 24 '12 at 22:56
  • And for the 'other' way to do it (not mentioned in the Q&A linked by @CyrilDeba), see [`Robot.createScreenCapture(Rectangle)`](http://docs.oracle.com/javase/7/docs/api/java/awt/Robot.html#createScreenCapture%28java.awt.Rectangle%29). – Andrew Thompson Nov 24 '12 at 22:59
  • 1
    This question was asked quite a lot of times on this site, try to search a little bit. – Mordechai Nov 24 '12 at 23:24

0 Answers0