Please Great Masters: how to 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!

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_
N_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! Ol� Ninja.
N�o testei isto que te vou dizer, mas parece-me que o problema � o seguinte:
Tens um if onde declaras a vari�vel local "ScrollingImagePanel FlipVPanel". Ora, o que acontece � isto, "if(ziboro == true)" o programa salta para o "else", ou seja, n�o leu "ScrollingImagePanel FlipVPanel = ...", logo n�o sabe o que � o "FlipVPanel". A solu��o passa, parece-me, por definir FlipVPanel a um n�vel mais elevado, talvez como membro da classe.
Experimenta isto; se n�o resultar, avisa.

Similar Messages

  • 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

  • HT4623 I am having 4S. It is showing the IOS 6 update, but whenever I try to update it, it shows an error message saying " It cannot be downloaded at this time". Can someone please tell me how to update it?

    I am having 4S. It is showing the IOS 6 update, but whenever I try to update it, it shows an error message saying " It cannot be downloaded at this time". Can someone please tell me how to update it?

    Make sure you have the Latest version of iTunes on your computer.
    Connect to iTunes on the computer you usually Sync with and “ Check for Updates “...
    See the Using iTunes Section Here...
    How to update your iPhone, iPad, or iPod touch

  • Please advise me how to update audio driver for windows 7 32bit....my computer is dv4 1428dx

    HP PAVILON DV4 1428dx company installed OS is vista...Upgrade to windows 7 -32bits
    I have been having troubles like BSOD, NETIO.sys and computer crashes evey 5minutes.
    it is now stable without any problems and only the sound driver refuses to install.
    Please advise how to update driver for W7 as it is not available on the HP site.

    Hi:
    Did you try the Vista driver?  Normally they work fine for W7.
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=ob-69143-1&cc=us&dlc=en&lc=en&...=
    Another thing you can try is to be connected to the internet. Click on the audio controller in the device manager. Click on the Driver tab.  Click on Update Driver and select the automatic search.
    Sometimes W7 will pull down a driver from the Windows Update site.
    If the above 2 suggestions don't work, try this driver which seems to be the same as the Vista one, but for Windows 7.
    http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?lang=en&cc=US&swItem=ob-793...
    Paul

  • How  to update image in adobe form

    Good Day
    I am trying to update image in adobeform. i used object library->image->and double clicked it and i got a popup and given the path. i got my image there
    but when i am running my adobeform in url  I am unable to see the image on it.  is it  because the path is from my desktop.  there is no binding done with any field on the context of adobeform.. do i need to upload the image in se78 and then do binding....
    pls help
    Regards

    hi battula,
    1.upload the image in se78
    2.Get the xstring of image by function module
    data img_ x_string type  xstring.
    data img_string type string.
    CALL METHOD cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp
       EXPORTING
         p_object       = 'GRAPHICS'    " SAPscript Graphics Management: Application object
         p_name         =  'LOGO'   " Name of image
         p_id           =  'BMAP'   " SAPscript Graphics Management: ID
         p_btype        =  'BCOL'   " SAPscript: Type of graphic
       RECEIVING
        p_bmp          =    img_x_string.
    and convert this xstring to string by function module
    CALL FUNCTION 'SSFC_BASE64_ENCODE'
                     EXPORTING
                       bindata                        = V_FIELD
    *                BINLENG                        = BINLENG
                    IMPORTING
                      B64DATA                        =  img_string.
    *               EXCEPTIONS
    *                 SSF_KRN_ERROR                  = 1
    *                 SSF_KRN_NOOP                   = 2
    *                 SSF_KRN_NOMEMORY               = 3
    *                 SSF_KRN_OPINV                  = 4
    *                 SSF_KRN_INPUT_DATA_ERROR       = 5
    *                 SSF_KRN_INVALID_PAR            = 6
    *                 SSF_KRN_INVALID_PARLEN         = 7
    *                 OTHERS                         = 8
    3.bind the img_string to imageField in  adobe form ..
    if you want to update image then update image in se78 keeping name same.
    4.and write also javascript code
    on initialization event of ImageField
    this.access = "readOnly";
    hope it will help.
    regards
    Jitendra..

  • Help please lost Masters How can I print copy images?

    Hi,
    In order to get more space on MacBook Pro. I have been backing up and deleting images to separate HD. Unfortunately I have deleted some Master Images and cannot now find them. I do have copies within Aperture but it will not allow me to print them or export them to print them in another application (Photoshop Elements 4) Can anyone help me with a way round this please?
    thanks
    Rick

    a simple solution is to drag them to a folder on the desktop. Then you can reimport them, print them open them or whatever.

  • How to update image files in web pages generated by servlet without redeploying

    HI,
    I have a servlet which generates html pages with images. Those images changes
    as they are graph generated regularly. They are placed in s directory where the
    application is deployed. It is necessary because I have made some security constraints
    for the location of those files. However it seems that when I deploy my application
    on WLS all files contained in the application directory are cached, and when for
    ex. I delete some of them they are still appear in generated html pages. only
    Redeployment of application updates the state of those files.
    Is there a way to make the application to be aware of any changes in images files
    and to load updated ones??
    i would be interested in a situatioin like with default WLS servelt (DefaultWeb
    Application) where any new files are seen as soon as they are placed in Default
    WebApplication directory.
    Is there a way to periodically redeploy application from CLI?
    thx in advance
    Michal

    889096 wrote:
    Hello!
    In SQL Developer when we run htp package then we see the generated code in OWA Output, But how to invoke or show the webpage by Oracle tools/plsql program.
    and
    Without copying the code and save it to textfile.html and open it with browser.
    I heard it is possible by configuring Apache server.
    Please give me brief details, as i am beginner with ORACLE 10g
    And
    If you are using the htp package, you are presumably developing for an application server? Can the people who set that up not help you with your development environment?
    Setup is too complicated to cover here. Check out the Oracle HTTP Server documentation on oracle's documentation pages.
    Briefly, you need to install Oracle HTTP Server and then configure a data access desciptor to connect to your database.
    How to see the generated code in "QUEST TOAD"? I am not able to see OWA output in TOADYou will have to ask this question in a Toad forum.

  • Soap reponse is not updating to the idoc side,please suggest me how to update for this?

    i have requirement for the idoc to soap synchronise scenario,idoc is sender and receiver is  the soap adapter.idoc is sending to soap,soap is sending the response,this response updating to idoc side,after this we need send this information to other system.
    can you please give me the suggestion for  creating this scenario?

    Hi Udo,
    can you please elaborate,after mappining the response  to idoc how will i know it is updated corrct or not?this updated information needs to send the externa system.
    Thanks
    Narendra

  • How to update image with data from database?

    hi,
    is it possible to update an image object which serves as template with some data from a database table like user name etc. by converting it to image bytes and how? The final image would show user name as part of the image

    anybody?

  • Please Help me, How to cut image ?

    I have a image (jpg file). The image is animal, and the image contain 2 basic colours (white is background, black describe animal). I want to cut background around animal
    Please Help me ???
    Please source code .??? Example??

    well it depends what you want to do with this- do you just want to use the black part without a whit contour?
    however if you want to have 2 colors PLEASE save as GIF or as PNG and not as JPG - JPG tends to blur the image a little so your mask will get screwed up with JPG
    the easiest way for me is to do this job in photoshop and save as Tiff then load it with Javax.ImageIO so transparency is kept

  • HT5704 Please tell me how to update iOS 6.on my ipod

    Please help me with the iOS on this iPod so I can install the facebook app

    iOS 4.2 suggests that you may have second generation iPod Touch (not iPod Classic, where you've posted).
    The second generation Touch cannot be updated beyond iOS 4.2.1, sorry.
    By the way, for future reference, you may want to post questions about your iPod Touch in the iPod Touch forum, rather than this forum.

  • Please help me how to view images using IIS

    I have oracle 9i,running on win2000 server,and I have installed vb 6.0 on the same system as oracle running.
    I want to use Ask I am running a demo which is given in
    Oracle_home\ora90\oo4o\IIS\SAMPLES\ASP\ComputerOrderEntry
    folder.I created the Virtual Dir as directed in the readme filewhich says I need to open QueryPage.asp in my browser,when I do that it's not running but it's shows me the file which opens asp file in notepad.I want to ask why this happening?Is I have done something wrong or ..... ???? please let me know
    the cause in detail.
    warm regards : Alok Kumar

    I am not using ASP. You need to find out how to access your ASP web server. What is the home page? How do you invoke any ASP page. When you can open a simple HelloWorld.asp script, you will know how to open the ASP through the MS web server.
    Larry

  • How to update images?

    I need to update several images from the DAM and it be updated where they are referenced.

    when you upload new image with same name it overites & no need to update the referenced places.   Note with these you will loose all the version.   What is your exact usecase

  • Please tell me how to put Image on MDI window

    Brothers i am new in swings please help me in this matter that i want to put image an image on JdesktopPane in swings please give me some code or guide me in this matter. thanks in advance.

    public class MDIDesktopPane extends JDesktopPane {
    private ImageIcon DesktopImage;
    public MDIDesktopPane() {
    DesktopImage=new ImageIcon(new java.net.URL("http://80.96.36.11:8080/hq/RBMS.jpg"));
    public void paint(java.awt.Graphics g)
    Rectangle r = g.getClipBounds();
    Color c = getBackground();
    if(c == null)
    c = Color.black;
    g.setColor(c);
    g.fillRect(r.x, r.y, r.width, r.height);
    g.drawImage(DesktopImage.getImage(),this.getWidth()/2-DesktopImage.getIconWidth()/2,this.getHeight()/2-DesktopImage.getIconHeight()/2,c,null);
    super.paint(g);

  • Can someone please advise me how to update my credit card details with iTunes

    Hi, i have updated my personal details with apple but can't seem to find a place to update my credit card details.  can someone help me please?

    You should be able to do it on your computer's iTunes via the Store > View My Account (Store > View My Apple ID on iTunes 11) drop-down menu option - there should be a payment section on there. Or you might be able to do it on an iPad, iPhone or iPod Touch by tapping on your account id in Settings > Store (Settings > iTunes & App Store on iOS 6).

Maybe you are looking for

  • Error when making a call to SAP using SaveData

    Hi, Iam getting the following error while making a function call to SAP T:5392 *>RfcInstallStrucure2: field 1 (SIZE_DIM, t:0, l:1) offset 16 too small Can somebody please explain me what's going wrong. Thanks & Regards, Sudha

  • MRP in third party scenario. System not creating schedule lines

    HI I am using third party subcontracting scenario. As i am purchasing material but i am not taking material in under my company. I am paying to my vendor but the delivery is going to my subcontractor. Here i am able to create planned order or purchas

  • ITunes won't install on Windows 8

    I've seen this question asked a few times but it hasn't really been answered. I am running Windows 8 and had a problem syncing my iPhone 4s to my iTunes so decided to uninstall and reinstall. Now when i try to install I'm geting the error "This App c

  • [HOW TO] Sync contacts across different devices.

    Well recently ran into a problem, i had to get a new phone due iphone giving up the ghost, so switched to a Android device, now i wanted to transfer all my contacts over from my iphone to my android. I followed countless instructions, but always face

  • HP Simplepass not working with any version of Firefox

    Long story short, after I upgraded to Firefox 6 and discovered my HP Simplepass doesn't work, I reverted back to Firefox 3.6 but can't get any version of HP Simplepass to work. I originally had the Digital Persona version, which I upgraded to the Egi