How to create a screenshot of a JInternalFrame, including its titlebar

Hi,

I need to create a screenshot of the currently active JInternalFrame when the user presses a specified function key.

The screenshot shall include the whole visible area of the JInternalFrame, including the titlebar.

1. What is the best way to get the correct position and size of the whole JInternalFrame, including the titlebar?

2. Any further suggestions about the most convenient way to produce such a screenshot from Java?

Thanks,

mh65

[486 byte] By [mh65a] at [2007-10-3 8:22:10]
# 1
Search the forum for my ScreenImage class.
camickra at 2007-7-15 3:28:03 > top of Java-index,Desktop,Core GUI APIs...
# 2
Thanks, camickr
mh65a at 2007-7-15 3:28:03 > top of Java-index,Desktop,Core GUI APIs...