Hi Kumar,

 The best way is to use JNI and some native code to find out the location of the 
native application.

 But you can capture some region of the native application by selecting it using the 
mouse.
 Dragging a mouse outside the component will give Java the exact location of the mouse 
pointer.
 We can map this coordinate location to screen coordinates using the SwingUtilities 
class.
 Based on this screen coordinates we can form a pre-defined rectangle and capture 
whatever we need on the screen.
 But notice that the rectangle is a pre-defined one.

 I have written a small code which will do the above. (Attached herewith)
 Run the code. Click on the middle of the frame and start dragging the mouse outside 
the frame.
 You would notice that the screen contents are captured and rendered on the frame 
dynamically.

 If you are interested in a specific region of the native application, you can 
probably do this.
 I am not quite sure whether this will be of any use to you. I just wanted to let you 
know.

 Thanks
 Praveen

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Attachment: CaptureTest.java
Description: Binary data



Reply via email to