Problem with java.awt.Robot and screen capture/refresh

From: Adrian Lumsden (adrian.lumsden_at_spam.trap.sss.co.nz)
Date: 10/01/03


Date: Wed, 1 Oct 2003 16:51:05 +1200

Hello,

I have an app where I have to screen scrape to capture an image from a JMF
film player.

The user is given a dialog with a list of frames that can be exported as
images. If the one they chose contains the JMF film player then I use the
Robot to scrape the pixels off the screen.

Problem is that the dialog which they used is often still left on the screen
and gets scraped along with film image.

I'm thinking that I need to get a screen repaint to happen before the Robot
goes into action but I can't find a way to make this happen.

Any suggestions or other solutions to this problem?

TAI,

Adrian Lumsden

Scientific Software and Systems
Wellington
New Zealand