For all Jedi Masters: How can I update images in ScrollingImagePanels ?????

I have posted an old topic but now i understand my error.
Please people!!!! I think it is very simple, but i am not getting results at updating images in ScrollingImagePanels.
My ScrollingImagePanel in a JInternalFrame, and the JInternalFrame is in a JDesktopPane.
In my code i try to remove the actual ScrollingImagePanel and create a new other. But the are no references to the ScrollingImagePanel in the else block. The code doesn't compile. Please, see the code below for a good compreension:
public void atualiza(){
if (ziboro == false){ //no images displayed yet
     ziboro = true;     
     JInternalFrame teste = new JInternalFrame("teste",true,true,true,true);
teste.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
teste.addInternalFrameListener(this);
teste.setLocation(10,10);
teste.setSize(new Dimension(200,200));
ScrollingImagePanel FlipVPanel = new ScrollingImagePanel(imagemBufa, 800, 800);
teste.getContentPane().add(FlipVPanel);
displayPanel.add(teste);
teste.setVisible(true);
teste.moveToFront(); return;
else{
System.out.println("Jedi!");
teste.getContentPane().remove(FlipVPanel);//This part is my problem
ScrollingImagePanel FlipVPanel = new ScrollingImagePanel(imagemBufa, 800, 800);
teste.getContentPane().add(FlipVPanel);
teste.setVisible(true);
teste.moveToFront();
return;
Thank you for your atention!
Poxa se vc entende portugu�s e quiser e souber me ajudar eu ia ficar agradecido pra caramba!

Ah! I'm sorry. Probably I couldn't explain you my problem. So let me give you some background.
We used to generate the preview of all the pages in an InDesign document using the export functionality. But we found that, it's a slow process especially when the document uses images that are huge in size (can even be 2 or more GB). So we decided that since InDesign already has the preview (we can see this even the image link is broken), why shouldn't we use this?
But while doing this, I realized that I can't get the preview of other pages except the first page.
So, can we say the script can't generate preview images of all the pages (I'm not talking about the individual images placed in a page), or the script is OK but it can do that only for CS5?
Best Regards,
-Arafat

Similar Messages

Maybe you are looking for