Report question

Question: How to capture selected screen of other application using java?