capturing an image of a component?
Hi, I hava a custom jComponent (an animated circle, which is a hyperlink button).
I want to move this component across the sceen or get it to a buffered image.
I have no problem in making the graphic move across the screen, my problem seems to be capturing the actuall component.
I have tried the following code:
int wid = jButton1.getWidth();
int hie = jButton1.getHeight();
bi =new BufferedImage(wid, hie, BufferedImage.TYPE_INT_ARGB);
big = bi.createGraphics();
Image imi =null;
imi = jButton1.createImage(wid, hie);
if (imi ==null){
int imi2 = wid;
}
big.drawImage(imi, 0,0,this);
offGraphics.drawImage(bi, 50,50,this);
When this code run's in the update() mehtod, it shows nothing.
If I replace the big.drawimage, with something like big.drawLine, it works fine.
does anybody have any clues?
Cheers!

