How to find the active Window in Swing?
Hi all!
I have an RCP plugin (which will be plugged into any RCP app)
and the aim is to get the screenshot of the RCP app. So actually now what i make is, the plugin adds a new menu item to application and whenever the menu item is clicked the pluginForm opens (a form to take and manipulate the screenshots)
But what i want is just to take the capture of the RCP app. So the plugin needs to see the current active Swing windows and get the screen size of that to take just that part of screen.
How can i handle this?
(btw i tried Frame.getOwnerlessWindows(), Frame.getWindows(), Frame.getFrames() methods. they dont give me the 'just rcp app window'. maybe the current running thread is just the plugin form. and it goes invisible during capture, but still there is the rcp app window running in JVM which i want to reach)
Regards,