Hi All,

Suppose I write a Java application which instantiates it's own Graphics
object. From this application, I make a call to another Java application.
This second Java application displays a button.

Now my question is, without displaying the button on the screen, can I
capture the image on the Graphics object created in the first application?

>From application 1,

BufferedImage bimg = new BufferedImage (...);
Graphics g = bimg.createGraphics();

SecondApplication sa = new SecondApplication(...);
.
.
.
sa.paint (g);

I thought this would work, but it does not update the graphics object g.

Any ideas on why and how can I make it work?
Or any other say in which I can get the image of the frame as it would
look without displaying it on the screen?

Thanks,
Sameer

===========================================================================
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".

Reply via email to