JTabbedPane lose JList contents

Hi , this is my first question in the forum :D, i have a problem with a JTabbedPane with two tabs, each with a JList in a JPanel, the problem is that i populate the Jlists in a dynamic way using a vector. the Jlist in the first index (tab) is populated first and then I select the second tab and populate the second Jlist, but when I return to the first tab the Jlist is empty, i guess because it is repainted, which method or what i need to do to keep my JList populated !!

In the future Swing related questions should be posted in the Swing forum.
Without seeing your code we can only guess!
Swing components can't be shared.
You need to create two JLists, one for each tab.
If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.
Don't forget to use the [Code Formatting Tags|http://forum.java.sun.com/help.jspa?sec=formatting], so the posted code retains its original formatting.

Similar Messages

  • How do I copy music content from my iPod to a new iTunes library on a new PC? Or can I sync my iPod with my iPad? I have a new PC and new iTunes but don't want to lose the content on my iPad (from other library)

    Question: How do I copy (old) music content from iPod to iTunes on a new PC? I don't want to lose the content on my iPod.

    How to use your iPod to move your music to a new computer

  • If i reinstate itunes will i lose my content and playlists

    i can't get my new ipod nano to be recongnized in itunes or by my computer...so it won't charge. They say i could try to reinstal itunes but i don't want to lose my content or playlists...willl I?

    You won't lose it. Back it up anyway.
    (83918)

  • I am trying to update my ipad 2 and saying error with back up, if I continue I will lose all content. What do I do?

    Does anybody know what I can do to update my ipad without losing all my data. I am trying to update my current version to the 5.1 version and it keeps giving a error message stating that "an error has occured with the back up and if I continue I will lose all content. Will I be able to get my stuff back such as games, music, aps, etc back after I finish or will they be lost forever. Can somebody please help me I am lost and not sure where to get support on this issue.
    Thank you so much
    Alicia

    If you continue and you lose everything, you will be able to download most of the content again for free as long as you use the same Apple ID. You can read this about downloading past purchases.
    http://support.apple.com/kb/HT2519
    But before you continue and lose everything, try this.
    Eject your iPad, quit iTunes and restart your computer. Then launch iTunes and go to Edit>Preferences>Devices. See if you have mutliple iPad backups showing in there. If you have multiple backups, delete all but one of them. Also check the box at the bottom that turns off auto sync .... Prevent iPods ......Click OK and Then quit iTunes.
    Connect the iPad again and launch iTunes. Right click on your iPad name on the left side of iTunes and select backup. See if the iTunes will create a backup. If it does, after it finishes, click on the Summary Pane on the right and click on check for update. Try to update again.
    If it all goes OK, after you update the iOS you can back to Edit>Preferences>Devices and turn on atuo sync again - assuming that is how you want to sync.

  • Getting an error message (-5000) while trying to backup my iphone4 that says i will lose all content if i continue

    getting an error message while trying to backup my IPhone 4 that says i will lose all content if i continue. error message is (-5000). what does this mean and how do i fix the problem?

    Well, when you click on "update" and it goes partway through and then says it can't continue that does look somewhat error-like to me. :-).  I did do a synch when I first plugged  the iPad into my desktop, but had to upgrade iTunes and reboot before upgrading the iPad OS, so everything should be backed up.  I hope!  I don't know how to check on whether things like my appointments or files that I have created get saved in a synch.  Selecting each of my pictures and emailing them to myself is an option, I guess.
    I am new to the apple world and the thought of losing six month's worth of stuff is intimidating.  If only I knew which things would get lost, I'd be able to work with it.
    Thanks!

  • Need to Change E-mail address - will I lose purchased content?

    Hello:
    I have just switched service providers and need to update the e-mail address tied to my adobe account which I have used to authorise both my eDoc purchases and my Sony Reader.
    My fear is that in doing so, I will lose the ability to read all of my e-Docs authorised to my current e-mail account and I am also concerned about updating my Sony Reader to the new details.
    I am concerned that Adobe has tied username for authorisation directly to e-mail, which is prone to changes when switching jobs or networks and have also been a bit dismayed to not find any details about updating e-mail account in Adobe's documentation - other than a warning that changing your e-mail affects your username and therefore your authorisations.
    Can anyone please provide me with some help on how to switch my e-mail address and still be able to read purchased e-doc content and update my sony reader?
    Cheers,

    Well that is certainly inconvenient.  I'm not sure the reason that you are unable to change your email address.  It might help to contact Spotify by filling out the contact form here:  https://www.spotify.com/about-us/contact/contact-spotify-support/?contact .  They should be able to change your email address for you since you are unable to do so.  Be sure to give them both the old and the new address, as well as any other info they might need to locate your account.  Hopefully they can get your account fixed up for you quickly!

  • LOS - Business content cube

    Hi Guys,
    When we are extracting data from LOS for ex, 2lis_12_vaitm, 2lis_12_scl or others. some times we are not using the SAP business content cubes. We are creating our own cubes by using the standard LOS.
    Can some one please give a clear explnation of some examples which LOS DS and why we have gone for other then business content cube.
    If you have any document please post here or send me to this mail [email protected]
    Bye...
    Sankar Reddy

    hi
    If we want more additional fields to be added to the cube, or the fields in the cube is no longer relevant for our analysis we decide for custom cubes
    In that case, we modify the datasources and extract data to accomadate in cubes
    Hope this helps
    Assign points if useful
    Regards
    N Ganesh

  • JTabbedPane and JList

    Hi,
    I'm trying to build an application for a clothing store. I have a JTabbedPane which contains 4 panels (Add,Delete,Modify,Display Customer). Each panel contains a list (JList in a JScroolPane) of customers lastnames. The problem is the following: When I add a customer, the customer list of Add panel is immediately updated (which is good); but when I look at the same list under Delete, Modify, Display panels, the list is not updated. I need to find a way of updating all lists on the panels when one of the lists change in any one panel. Does this make sense? Any suggestions?

    Use the Observer/Observable pattern: there is an implementation for JList in the Form of the ListModel (in the pakage javax.swing).
    Create a class that implements ListModel and which contains your data, and add, replace and remove functions. Then add that class to the different JLists with
    myJList.setListModel(myListModel);or passing myListModel in the constructor of JList. The JList wil then be added to the list of ListDataListeners in myListModel.
    For more information on how it works have a look at the apis: http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/ListModel.html

  • De-authorizing. Can you de-authorize all and now lose all content from CDs?

    I was wondering if you hit the "de-authorize all computers" button on iTunes store, will it erase all your memory on the computers? Or the downloaded CD content? Because I can't afford to lose all my CD content in my iTunes library.

    Check this article:
    Back up your iTunes library by copying to an external hard drive
    http://support.apple.com/kb/HT1751
    Cheers!

  • If I deauthorise all my computers, will I lose the contents of my Itunes?

    My laptop was recently stolen and I now have another.    Unfortunately, I have to deauthorise all my connected devices to register the new laptop as I have reached 5.   Will I lose my Itunes content? 
    Many thanks

    No.

  • Why do I lose video content when exporting/backing up a video clip to DVD in iPhoto?

    I am transferring/backing up my iPhoto library to a DVD.  When I do this, I see the "content" of any video clip does not transfer. By this I mean I can see the image identifying the clip on the DVD but the "time" is 0:00.  Can someone pls advise how to get this content to transfer so I can eliminate these clips from the iMac?  Thanks!  (I have Mac OS X 10.7.5 and IPhoto 11 9.4.3)

    How are you backing up the library?  Are you exporting the photos to a DVD or a folder on the Desktop and buring that to a DVD?  If so be sure to select Kind = Original in order to get the actual video file.
    OT

  • Apple TV loses purchased content

    My aTV has been losing purchased content - and this is the 2nd time that about five purchased movies (out of twenty) suddenly disappeared. While the ATV was paired with a laptop, I have not synced it for a few months as iTunes stopped showing the aTV... and I am sick of debugging this problem.
    Last time it happened two months ago, the aTV support (they wanted me to pay for support first) passed me on the a secret iTunes support 800 number who agreed to let me re-download the content.
    I have seen others mentioning similar problems. Does anybody understand what is going on and why has Apple been so bad in responding to the problems?
    Title edited by Host

    Sorry to reiterate what I aid in another post:
    There are an increasing number of reports of this - I think there must be some recent bug to account for it, though it probably doe not affect most users.
    Please send feedback here:
    http://www.apple.com/feedback/appletv.html
    There were not many reports of this kind of thing until the last couple of months, so it suggests to me something has changed software wise eitherin AppleTV 2.3.1 or recent iTunes updates.

  • IPod loses all content when it is sync.

    For this past week when I would update my 30GB ipod it shows it updates but afterwards all contents are gone and it contains zero. Then when I plug it back in it lags the itunes store then says I have to restore it and download everything again. Sometimes itunes freezes up when connected and it takes awhile for it to connect to the ipod. I ma getting tired of this ipod as I have had other problems with this. I hope I can get help because I am not satisfied with this product. I had it serviced once already few months ago and it also has songs freezes and get stuck. I am at my wits end on this.

    Did you reset the iPod using the two-button combo?
    http://support.apple.com/kb/HT1320
    Did you using the Restore button in iTunes to erase the iPod and initialize the iPod's software?
    Did you try reinstalling iTunes, using the latest version downloaded from Apple.
    http://www.apple.com/itunes/

  • Do you lose app content on your ipad2 when updating to ios5

    I know you can do a back up and restore but is all the content within your apps there? i.e. Pages, bento

    Absolutely everything was retained, in the right order and keeping all my contacts, game progress, folders intact. However, it's a counterintuitive process. At first, I thought I had lost everything. After the alleged update was over, I kept trying to launch my apps, and they just blinked, and wouldn't launch. I was in a panic. I hunted around for info online, and found you had you had to reboot your iPad, then Sync it manually on iTunes by clicking "Apply" in the Apps area. All my Apps suddenly appeared on the iTunes screen, in correct order, and started to load very very slowly onto the iPad. This took about an hour to finish. The entire upgrade process was around 8 hours .
    I had used around 60 GB of my 64 GB iPad2 (I also have a 32GB iPad1), so even before I Sync'ed it, I had seen on iTunes that the space was taken up. But they only appeared when I Sync'ed it, so don't panic. THEY ARE STILL THERE unless something catastrophic happened.
    Even then, you can restart the process again, and install your apps from a backup by doing a Restore (make sure you do have a backup before you start that, although the iOS5 process does so, by default). Always save a copy of your iTunes backup, in an external hard drive or at the very least, in a different folder on your comp.
    Good luck!
    P.S.: I wish I could copy-paste my reply to every thread, because EVERY iPad or iDevice owner, has this exact fear. Apple has done a very poor job of informing its users this go around.

  • Re: Apple TV is not a back up device - Don't lose your content.

    There are often posts in the tv forum from users who have relied on their tv as a back up device and been somewhat disappointed when it has become necessary to use that back up, because there is actually no way to copy content from the tv to any other device.
    It's clear that some users have a misconception about the ability of the tv in this respect and the purpose of the tip is hopefully to avoid users finding this out at the wrong time. I'm also hoping the tip will be of use to those using the forums when considering whether to purchase a tv.
    My English is not the greatest of my attributes and I'd be interested to hear from non-tv users as to whether what has been said in the tip as it stands and how it has been said is clear enough.

    Hi Winston,
    Looks good to me.
    Any other input before it's processed?

Maybe you are looking for