Cannot reload jlist

I have made a file folder that shows the files list in the folder. After I select the folder, it will run the LoadFileList method and the list of files will be displayed in the JList called fileList.
  private void LoadFileList(String path){
        String userDir = path;
        File folder = new File(userDir);
        Vector data = new Vector();
        String[] children = folder.list();
        if (children == null) {
            // Either dir does not exist or is not a directory
        } else {
            for (int i=0; i<children.length; i++) {
             // Get filename of file or directory
             String filename = children;
data.add(filename);
jLabel1.setText(filename);
// updateList(data);
fileList = new JList(data);
fileList.revalidate();
fileList.repaint();
However, the jlist cannot be updated after the folder is selected...I have tried many different method... but still not work..
please give me some advices to solve this.
Thank you.

You don't create a new JList. The object is just added to memory, its not displayed on the GUI.
You need to create a new ListModel and then you use list.setModel(...) to update the existing JList that is visible on the GUI.

Similar Messages

  • Cannot open aperture v3 after upgrading to  OS 10.6.8.  Bought the upgrade online so cannot reload the software.  Can you help?

    Cannot open aperture v3 after upgrading to  OS 10.6.8.  Bought the upgrade online so cannot reload the software.  Can you help?

    How did you buy it online? Did you buy a registration number from the Apple Store?
    Then you can download the Trial version from this link:
        Aperture 3.1 Trial 
    and run Software Update immediately after installing.
    Go to the Applications folder and delete Aperture.
    Download the Aperture 3.1 Trial.
    Open the Aperture Trial disc image.
    Double-click the "Aperture Trial.mpkg" file.
    Follow the onscreen instructions to install Aperture.
    After the installation completes, choose Software Update from the Apple () menu.
    Cannot open aperture v3 after upgrading to  OS 10.6.8. 
    But what exactly is the error you get, when you try to launch Aperture? Maybe you need to do more than updating.
    Regards
    Léonie

  • I wiped the hard drive and cannot reload the applications disk...it says an error occurred.

    i wiped the hard drive and now i cannot reload the "applications" disk. it keeps telling me that an error has occured.

    It would help to give us more specific and complete information so we can better assist you.

  • I had to restore my iPod touch 2nd gen, and cannot reload iOS

    My iPod Touch 2nd gen stopped showing up on my computer and syncing. So i had to restore it to factory and now cannot reload the iOS all i see is the arrow saying plug it in to itunes (it is) itunes cannot see it and i can't fix it, sync it or find where to get the ios to add it again. Please and thank you for any and all help
    Mich

    It means the device is in recovery mode.  You'll need to reconnect it to iTunes and restore it again.
    You may need to connect it in recovery mode manually using the instructions in this Apple support document.
    iOS: Unable to update or restore
    B-rock

  • Yosemite has erased all movies cannot reload them from store

    Upgraded to Yosemite
    Almost all movies in iTunes were erased
    Might have been temporary authorization issue but the computer is now authorized
    Cannot go to purchased area of store and reload the movies- they are all seen as being in th elibrary-they are not
    How do I fix this problem?

    If you still have them listed in the Movies part of your library (even if you don't have their actual files on your Mac) then they won't potentially show for redownloading, iTunes will see those entries and assume that you have them somewhere. If they are listed there and you delete them then they might show in the Purchased area for redownloading. Or copy them back from your backup of your downloads/library.

  • Cannot reload WLan Atheros AR5007EG on Satellite L350D

    I am using a Satellite L350D model PSLE8E-038002BT.
    As I had a network problem (I regularly lose contact with the DNS server), I suspected the driver atheros-wlan-win7-9204190 which I had recently installed to be the cause. I wanted to go back to the version atheros-wlan-win7-8002580 which had ran successfully on my PC for quite a while.
    So I went to Device management, chose for Network adapters where I selected the Ahteros wireless. Selecting properties and device drivers I tried to reload the old version. As the old driver was not saved at this location I used the TC00190600I.exe file from the zip file received using Tempro. Unfortunately, the Atheros loader refused to overwrite a new version by an old one. As a result I decided to remove the driver, which also removed the Atheros device from the system.
    I recovered the device by starting the TC00190600I.exe again. But the connection to the router does not come up. The icon at the bottom of the screen indicating connectivity says : Not connected, there are no connections available. The windows network control mentions Possibly there is a problem with the device driver for your wireless network adapter connection.
    Note that some texts or names mentioned above cannot be accurate. I translated them as I use a Dutch windows version.
    Thanks for any help or advice.

    I dont know what are you doing exactly and how you have installed all these updates.
    If you are 100% sure that this problem has nothing to do with your router install original recovery image and test functionality. If everything works properly with factory settings than you will know for sure that WLAN card is working properly and it is not hardware related issue.
    BTW: few days ago I had strange problem on my old A300 (Win7 32bit). Suddenly notebook could not establish connection to my WLAN router. Router was visible, password correct but nothing. Ive tried everything but nothing helps.
    At least i have restarted router and suddenly everything was OK. Why?

  • Cannot reload backup after hard drive failure

    Hard drive failed. Managed to get data backed up off it onto DVD-R. Now have new hard drive with XP loaded. Have reloaded Ipod and all software including latest updater and version of Itunes. Itunes does not recognise the disc when it is inserted, so I have tried importing songs into the correct folder so that Itunes can see them, however, they do not show up in the Library. If I double click the relevant file on the DVD-R, I get a message saying that Windows doesn't know which program created the .m4u file. However, a quick search allows Itunes to open and play the file. How do I reimport all of the backed up data into the Library so that Itunes can see it straight away without the need for the DVD-R to be inserted each time? Many thanks. (Incidentally, managed to lose all data on the Ipod itself so only copy of library now lives on DVD-R)

    Assuming that you have the actual .m4a, .m4p, or .mp3 music files on the DVD, just copy them to your PC's HD. Preferably in the same directory structure they were in under the old iTunes.
    If you also backed up the ITL database file, you can recover your complete Library. If not, then you'll need to 'Add' the music files back into iTunes.
    If your DVD backup does not have the folder/sub-folder structure copied, then copy the files to a 'holding folder', then File=>Add Folder within iTunes to rebuild the Library.
    Post back if you have additional questions.

  • Cannot reload vi after saving

    Dear everyone,
    I have been creating a fairly large LabVIEW application with v8.2.1 over the last 2 months.
    Now when I save my top level vi, it cannot be re-opened.  LabVIEW starts loading and displays the title bar and then hangs without displaying the front panel.
    I reverted to a previous version of my top level vi and found that it could be opened and closed multiple times without problem.  However I then found that even without making any changes to the front panel or diagram I could only save it 3 times before it too would no longer load with exactly the same symptoms.
    Sometimes when I make a change and then flick to another Windows application and then back to the front panel, a section of the front panel will be missing and t's vertical scroll bar is often in a different place.
    This is a really serious problem for me on a critical project.  Any advice would be greatly appreciated.
    Aaron

    Hi Aaron,
    what do you mean by "large application"?
    Labview tends to corrupt (very) large vis especially when lots of DAQ/dll/CIN are used.
    So to workaround this problem you should split your vi into smaller parts ending with a main and some subvis. This way you also have a chance to locate the problem more exactly by finding the part which is corrupting your vi...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • An error occured during purchase.  Now cannot reload as system says it is already purchased.

    I purchased Lion and during download I was advised an error ocured.  I have not been able to download again as appstore says I have osx.  I cannot upgrade to a higher level, as my current system is 10.6.8.
    Any Ideas?

    Launch app store, press the option key, and click on purchases. See if the button next to the OS installer changes to dark grey 'install' from light grey 'installed'.

  • Cannot reload programs

    Replaced HD and reloaded Tiger. All seemed well until I tried to re-load programs from Disks. I receive the following message after inserting disk, "Insert disk or connect to Server Volume and wait for it to appear on the desk top then try again". Ran disk repair and all is well. Also external Hard Drive lost all of Iphoto and Kodak Easy Share pictures. What server are they talking about?

    You may get a new install CD (I recommend Windows 8, if not 7) or if you have an old XP install CD, you can get XP back to your laptop but it'll not be supported soon. If you have saved a backup, you can try restoring it to last backup.

  • Reload software: 552 error; cannot reload OS

    Hi. I am getting this error message on my Curve 8900:
    Reload software: 552
    I have read several threads advising how to fix this, but the problem is that they all require me to connect the device to my computer and reload the OS. But since I upgraded to a desktop computer running Win 7, I have never successfully connected the device to the computer except in mass media mode. I just re-downloaded the desktop software and it still won't recognize the device. So I have a device that needs the OS and all applications reloaded, and no way to do that. Suggestions?

    Hello !
    If you have already done that, then what you can do is resatart your PC.
    Once rebooted then firstly, connect your USB Cable with your BlackBerry Smartphone.
    And now open your BlackBerry Desktop Software.
    Hope this resolves your Problem!
    If your problem has been resolved then would request you to Click on "Like" and accept as "Solution" so that other Advisors doesnt invest there time on this Message anymore.
    Thanks.

  • I cannot reload or refresh webpages- don't have icon available and cannot find it in the toolbar options

    My refresh-reload icon has disappeared and is not available as an icon option.

    found it- YOU Co-el are my hero and huge thanks.
    Oh one other small user question------this is more helpful tip needed.
    Any suggestions- when you want to keep several webpages handy to read later but don't want to bookmark them (many different subject matters). Kinda like a holding area to place several pages I would like to refer to later-Don't want to keep them for any length of time. Hopefully I explained it correctly enough.
    I just wondering if there is a feature or add-on that I am overlooking.
    Thanks in advance- Frank

  • Cannot reload CS5 from the disc. Support advisor was not able to help.

    My CS5 was giving me error messages when opening. CS5 32 bit and would not load at all, but the 64bit was OK, but now is giving me message" cannot load the full program". I uninstalled CS5 32 and 64 bit and tried to load from the Adobe disc but it would not load. I received a message to download Support Advisor which I did. I ran Advisor but received the message it could not solve problem and to contact Adobe.

    did you install cs5 from the disc?
    if yes, were there any errors during installation?

  • Apple TV 2nd gen - all purchased movies gone, cannot reload them

    I have purchased a few moveis and several TV shows. All of them appear in my iTunes library. I have my Apple TV set up to sync only those movies and TV shows I select, so generally after a week, it disappears from the Apple TV. I typically can go into the Apple TV prefs on my iMac and click on that movie, and then it will sync again.
    however, recently this happened, and I went to select the movie, and it would not upload back to the Apple TV (where it was originally purchased). In additon, all ofther purchases are gone, and I cannot get them to sync with the Apple TV.
    I have tried power cycle  the apple TV, the router, and unplugging all cables too.
    Reently I did deauthorize something (don't remeber what). I (re)authorized the desktop (imac) but that hasn't solved the problem. Is there a separate authorization for the Apple TV? I can't find anything in the setings menu....

    I assume you have the Apple TV 1.
    Navigate to Settings > Computers > Your Library on the Apple TV, you may be told you will lose all synced content, but you can sync it back afterwards, you won't lose any purchased content that has yet to be transferred. Then select Settings > Computers > Connect To iTunes, note the passcode that appears on screen, click on the device in iTunes and enter the passcode when prompted.

  • I cannot reload acrobat pro X.

    Uninstalled creative suite 5.5 and tried to reload but everything went smoothly except for acrobat.  cant use it and its the one i need. Here is the  printout:
    Exit Code: 6
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 3 error(s), 0 warning(s)
    ----------- Payload: {AC76BA86-1033-F400-7760-000000000005} Acrobat Professional 10.0.0.0 -----------
    ERROR: DW006: Apple Package failed to install successfully.
    ERROR: DW050: The following payload errors were found during install:
    ERROR: DW050:  - Acrobat Professional: Install failed
    help

    cs5.5:  https://helpx.adobe.com/creative-suite/kb/errors-exit-code-6-exit.html
    lightroom: http://helpx.adobe.com/lightroom/kb/exit-code-7-displays-installing.html
    photoshop elements: http://helpx.adobe.com/premiere-elements/kb/updated-installation-instructions-premiere-ele ments.html

Maybe you are looking for

  • Intracompany STO with SD Delivery and WBS

    Hello All, I am transferring stock from 1000 plant to 1100 plant. At the time of the procurement in the Plant 1000 the WBS mentioned is A and the GR in the stock is done with the account assignment Q with the WBS and the inventory created after the G

  • How do you unlock an ipod touch when its been disabled

    how do you unlock an ipod touch when its disabled

  • 2 questions about recording

    Can I edit a track that I have recorded in Logic Pro? I need to take a bar out of a song is that possible without re-recording it? Then I would like to record myself singing with the track and put it on a cd-r. How do I record myself with the track?

  • Getting "downloading file" notification in Adobe reader 10.1

    Viewing a  PDF in Explorer, when trying to use a Sign filed getting the notification: "Downloading the entire file is neede to perform this operation, Proceed? when choosing OK getting the Adobe reader notification - "this operation cannot be done be

  • Itunes 7.3 update crashed my pc

    I just updated my itunes this morning to 7.3.1 on my laptop and now it won't boot...help!