Possible Duplicate:
Java Swing : Obtain `Image` of JFrame
In my java program I would like to save a Graphics2D canvas which is a JPanel as an image. I am asking for classes necessary for this and suggestions thank you. I hope I have been clear enough. I have not added a code example because I don't think it is necessary.