CreateComponentSnapshot Problem

Hi.

I’m taking snapshots of a component which has many child components.

The problem is that the snapshots are not up-to-date, every snapshot I take captures the state I should have had a step earlier.

Like if I have states A -> B -> C -> D and I take a snapshot in each state i get snapshotA -> snapshotA -> snapshotB -> snapshotC .

How can it be?

Thanks

The only way I can think of that happening is if you’ve used setBufferedToImage and failed to call repaint() on your components when your state changes.

Again you are right, I’m using the snapshots as proxies but I’m changing them in a Timer callback WHICH IS PART OF THE MESSAGE THREAD…
I should have known that…