How to get Image from JPanel

How can I get the image from JPanel?

I have drawn an Image on JPanel and some rectangles on it, but I dont know how can I get that image back from that JPanel?

I mean how can I save that edited Image?

any idea?

plz....

[249 byte] By [student@sunDNa] at [2007-11-27 10:38:00]
# 1

Not only did you multi-post you didn't re-post your question in the correct forum:

http://forum.java.sun.com/thread.jspa?threadID=5195014

This solution has been posted before in the Swing forum, so try searching first before you ask.

camickra at 2007-7-28 18:51:47 > top of Java-index,Java Essentials,Java Programming...