Help get rid of nagging JList UI exception

Does anyone have an idea how to get rid of this nagging exception? By the way, my program continues to run just fine even when it's thrown. I suspect it's thrown because the JList UI is updated while the Listener event is fired...
But I just cannot figure out a work-around for this.
So, the culprit code snippet is:
-----------start code-------------------
oldlist.addListSelectionListener(new ListSelectionListener() {           
public void valueChanged(ListSelectionEvent e) {
if(e.getValueIsAdjusting()){
Object selectedValue = oldlist.getSelectedValue();
newlistdata.add(selectedValue);
newlist.setListData(newlistdata);
newlist.updateUI();
//How to get rid of this nagging UI exception?
oldlistdata.remove(selectedValue);
oldlist.setListData(oldlistdata); // EXCEPTION THROWN HERE!
oldlist.updateUI();
------------end code------------------
And the stack trace is:
Optimization completed successfully.
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at javax.swing.plaf.basic.BasicListUI.updateLayoutState(BasicListUI.java:1312)
at javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(BasicListUI.java:1292)
at javax.swing.plaf.basic.BasicListUI$Handler.valueChanged(BasicListUI.java:2605)
at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:167)
at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:147)
at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:194)
at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:388)
at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:398)
at javax.swing.DefaultListSelectionModel.removeSelectionIntervalImpl(DefaultListSelectionModel.java:559)
at javax.swing.DefaultListSelectionModel.clearSelection(DefaultListSelectionModel.java:403)
at javax.swing.JList.clearSelection(JList.java:2013)
at javax.swing.JList.setModel(JList.java:1646)
at javax.swing.JList.setListData(JList.java:1687)
at panorama2flashtools.Main$1.valueChanged(Main.java:215)
at javax.swing.JList.fireSelectionValueChanged(JList.java:1765)
at javax.swing.JList$ListSelectionHandler.valueChanged(JList.java:1779)
at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:167)
at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:147)
at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:194)
at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:388)
at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:398)
at javax.swing.DefaultListSelectionModel.setSelectionInterval(DefaultListSelectionModel.java:442)
at javax.swing.JList.setSelectionInterval(JList.java:2035)
at javax.swing.plaf.basic.BasicListUI$Handler.adjustSelection(BasicListUI.java:2721)
at javax.swing.plaf.basic.BasicListUI$Handler.mousePressed(BasicListUI.java:2677)
at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:263)
at java.awt.Component.processMouseEvent(Component.java:6035)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5803)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4410)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3983)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2429)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
BUILD SUCCESSFUL (total time: 35 seconds)
Thanks!

jaarik wrote:
I suspect it's thrown because the JList UI is updated while the Listener event is fired...Quite likely. Are you executing that code in the event thread (the Swing thread) or in some other thread? If the latter, or if the answer is "Huh?" then read the Swing threading tutorial.
And by the way, there's a Swing forum (scroll down a bit) which is inhabited by people who know Swing a lot better than I do.

Similar Messages

  • How do I get rid of "Windows No Disk Exception Processing Message c0000013 Parameters 75b6bf7c 4 75b6bf7c 75b6bf7c" when firefox starts up ? Does not show a solution!

    How do I get rid of "Windows No Disk Exception Processing Message c0000013 Parameters 75b6bf7c 4 75b6bf7c 75b6bf7c" when firefox starts up, I have to hit continue twice to get past this error message. Then all is OK. The solution shown for this thread does not make sense.
    == This happened ==
    Every time Firefox opened
    == Firefox was updated

    In Google, search for ""Windows No Disk Exception Processing" (including quotation marks). Lots of different answers out there.
    632 results on this search limited to the last year:
    https://encrypted.google.com/advanced_search?q=%22Windows+No+Disk+Exception+Processing%22&hl=en&lr=&tbs=qdr:y&prmd=df

  • When syncing my iPhone the storage says OTHER what is other and how do you delete it or make it smaller  my 16g phone has 3G of other please help get rid of it

    iitWhen syncing my iPhone the storage says OTHER what is other and how do you delete it or make it smaller  my 16g phone has 3G of other please help get rid of it

    The following has some information that may help: http://osxdaily.com/2013/07/24/remove-other-data-storage-iphone-ipad/

  • Aftet the closing all tabs of site "vkontakte.ru" still remains sound of alert for new incoming messages. Helps get rid of this only reopening browser.

    Aftet the closing all tabs of site "vkontakte.ru" still remains sound of alert for new incoming messages. Helps get rid of this only reopening browser.

    Problem was founded: plugin "Speed dial" was autoupdating this page when open new tabs with him

  • I used the "GO" TAB to do maintenance on macbook but don't remember how.  It helped get rid of the wheel

    i used the "GO" tab on macbook Pro to do maintenance but don't remember how.  It helped get rid of the spinning wheel.  Can you help?

    Did you open the Bookmarks Sidebar (F10: View > Sidebar > Bookmarks)?
    You can toggle that sidebar on/off with Ctrl+B

  • Hello how I want to help get rid of the remaining balance in the account, I want to change the state

    Hello how I want to help get rid of the remaining balance in the account, I want to change the state

    Go to www.apple.com/emea/support/itunes/contact.html and ask the iTunes Store staff to zero your account balance.
    (108244)

  • I recently got a message saying I had 3 viruses on my iPod touch 5gen and it told me to go to a site to help get rid of them but I forgot it but it did say saveandroid? Idk if that was just a pop up or what. Can anybody help

    I recently got a message saying I had 3 viruses on my iPod touch 5gen and it told me to go to a site to help get rid of them but I forgot it but it did say saveandroid? Idk if that was just a pop up or what. Can anybody help?

    Alright thank you cause it was bothering me

  • Some songs on my iPod have "duplicates" that I want to get rid of. I need help getting rid of them.

    So I just got my iPod touch 5th gen yesterday and with the new iTunes and ios, it's all really stupid and confusing. Just as I thought I was satisfied with the music on my iPod, I find out that some songs have two versions.
    I downloadable songs from both my account and my brother's account. I read the message that I can't do the whole download of past purchases for 90 days and went on since it didn't really seem to effect anything on my 4th gen. Now I have 800+ songs on my iPod and I guess Apple decided to get rid of being able to delete songs right from the device. So I delete all the songs from my iPod, go into iTunes on my computer, sign into my brother's account, and download the songs from there that I wanted. Now I have about 300-400 songs downloaded on my computer in iTunes. I sync all the music to my iPod and now I think I'm satisfied. But when I go to some of the artists, it has one song that's ok to play and then it has the same song that can't be played with the cloud button next to how long the song is.
    It's not a big deal, but it really bothers me. How can I get rid of the one that has the cloud next to it. Thanks for the help!

    The Cloud by the song indicates that is is an iTunes purchase but it is not downloaded on the iPod. If you only want download iTunes purchases to show in the Music app go to Settings>itunes and pp Store and turn off Show aLL.

  • Help get rid of Bing search engine from macbook pro os 10.7.5

    Help me get rid of Bing search engine from macbook pro os 10.7.5
    fmartn67

    You installed the "Genieo/InstallMac" rootkit. The product is a fraud, and the developer knowingly distributes an uninstaller that doesn't work. I suggest the tedious procedure below to disable Genieo. This procedure may leave a few small files behind, but it will permanently deactivate the rootkit (as long as you never reinstall it.)
    Malware is constantly changing to get around the defenses against it. The instructions in this comment are valid as of now, as far as I know. They won't necessarily be valid in the future. Anyone finding this comment a few days or more after it was posted should look for more recent discussions or start a new one.
    Back up all data. You must know how to restore from a backup even if the system becomes unbootable. If you don't know how to do that, or if you don't have any backups, stop here and ask for guidance.
    Step 1
    In the Applications folder, there may (or may not) be an application named "Genieo". Genieo may be partially installed even if this item is absent. If it's present, select it and open the Finder Info window. If it shows that the Version is less than 2.0, download and install the current version from the genieo.com website. This may seem paradoxical, since the goal is to remove it, but you'll be saving yourself some trouble as well as the risk of putting the system in an unusable state.
    There should be another application in the same folder named "Uninstall Genieo". After updating Genieo, if necessary, launch "Uninstall Genieo" and follow the prompts to remove the "newspaper-style home page." Restart the computer.
    This step does not completely inactivate Genieo.
    Step 2
    Don't take this step unless you completed Step 1, including the restart, without any error messages. If you didn't find the Genieo application, or if you couldn't complete Step 1 for any reason, stop here and ask for instructions.
    Triple-click anywhere in the line below on this page to select it:
    /Library/Frameworks/GenieoExtra.framework
    Right-click or control-click the line and select
    Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.
    If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination command-C. In the Finder, select
    Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.
    A folder should open with an item named "GenieoExtra.framework" selected. Move that item to the Trash. You'll be prompted for your administrator password. Move each of these items to the Trash in the same way:
    /Library/LaunchAgents/com.genieo.completer.update.plist
    /Library/LaunchAgents/com.genieo.engine.plist
    /Library/LaunchAgents/com.genieoinnovation.macextension.plist
    /Library/LaunchDaemons/com.genieoinnovation.macextension.client.plist
    /Library/PrivilegedHelperTools/com.genieoinnovation.macextension.client
    /usr/lib/libgenkit.dylib
    /usr/lib/libgenkitsa.dylib
    /usr/lib/libimckit.dylib
    /usr/lib/libimckitsa.dylib
    ~/Library/Application Support/com.genieoinnovation.Installer
    ~/Library/LaunchAgents/com.genieo.completer.download.plist
    ~/Library/LaunchAgents/com.genieo.completer.update.plist
    If there are other items with a name that includes "Genieo" or "genieo" alongside any of those listed above, move them as well. There's no need to restart after each one. Some of these items will be absent, in which case you'll get a message that the file can't be found. Skip that item and go on to the next one.
    Restart and empty the Trash. Don't try to empty the Trash until you have restarted.
    Step 3
    From the Safari menu bar, select
    Safari ▹ Preferences... ▹ Extensions
    Uninstall any extensions you don't know you need, including ones called "Genieo" or "Omnibar," and any that have the word "Spigot" or "InstallMac" in the description. If in doubt, uninstall all extensions. Do the equivalent for the Firefox and Chrome browsers, if you use either of those.
    Your web browser(s) should now be working, and you should be able to reset the home page and search engine. If not, stop here and post your results.
    Make sure you don't repeat the mistake that led you to install this software. Chances are you got it from an Internet cesspit such as "Softonic" or "CNET Download." Never visit either of those sites again. You might also have downloaded it from an ad in a page on some other site. The ad has a large green button labeled "Download" or "Download Now" in white letters. The button is designed to confuse people who intend to download something else on the same page. If you ever download a file that isn't obviously what you expected, delete it immediately.
    You may be wondering why you didn't get a warning from Gatekeeper about installing software from an unknown developer, as you should have. The reason is that the Genieo developer has a codesigning certificate issued by Apple, which causes Gatekeeper to give the installer a pass. Apple could revoke the certificate, but as of this writing, has not done so, even though it's aware of the problem. This failure of oversight is inexcusable and has compromised both Gatekeeper and the Developer ID program. You can't rely on Gatekeeper alone to protect you from harmful software.
    Finally, be forewarned that when Genieo is mentioned on this site, the perpetrator of the scam sometimes shows up under the name "Genieo support." He will tell you to run the provided uninstaller, while lying about what it does. As he knows and intends, the uninstaller does not completely remove the malware.

  • Need help getting rid of Trovi virus on Safari and Chrome. Cannot use the instructions Apple sent because the copy command under the edit tab does not work.

    I use OS X 10.9.5. I have a trovi virus on Safari and Chrome. Yesterday I thought I had gotten rid of Trovi, but it's back on both my search engines. The directions Apple sent yesterday do not work; the copy function under the edit tab is grayed out and non-responsive. Can anyone help me to get rid of this virus? Thanks.

    Are you referring to these instructions?
    Remove unwanted adware that displays pop-up ads and graphics on your Mac - Apple Support
    If so, be sure to read the instructions carefully, and note that you will need to repeat the numbered steps in the Conduit/Trovi/SearchProtect removal instructions for each line shown, not all together.
    If those instructions aren't working for you, for whatever reason, try my Adware Removal Guide. It provides similar instructions, worded differently, as well as an app (AdwareMedic) that can help you do the removal automatically.
    (Fair disclosure: I may receive compensation from links to my sites, TheSafeMac.com and AdwareMedic.com, in the form of buttons allowing for donations. Donations are not required to use my site or software.)

  • Help getting rid of Mavericks update

    Hi
    I recently purchased a Macbook Pro. When I went to download Pages, Numbers and Keynote it asked if I wanted an older version or the newer version that's supported by Mavericks. I said older but it started to download Mavericks anyway. I stopped the download but now in the Launchpad it has the beginning of the download. Is there any way to get rid of that? I know it's not a big deal but it's annoying to look at. Any suggestions?
    Thanks!!!

    Open Launchpad. Look for the Mavericks download icon. Then follow these directions:
    http://support.apple.com/kb/PH14299

  • How do I get rid of Nag messa

    Hi,
    I returned my n200 player and now when I start windows I get a pop-up dialog that says "Gentle reminder: Register your Creative products now to enjoy a host of benefits." It hasn't done this since I installed the player software 2 weeks ago.
    I try to close this, but then I get another dialog that asks me to plug in the player. I have no choice but to wait for it to try and detect the player I don't have. Then, It fails and I have to repeat the process again. It goes on, indefinately.
    How do I make this nag dialog go away?
    Kevin

    KevinOchsner,
    Click on 'Cancel' button and follow by 'Do not remind me to register'
    Jason

  • How can I get rid of this Java mesg:[Exception... "Component returned failure code: 0x80520012 (NS_ERROR_F

    since installing the latest version of Firefox, I get two of these java messages every time I open a new window
    [Exception... "Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIFileInputStream.init]" nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)" location: "JS frame :: chrome://1clickweather/content/js/utils/filemanager.js :: <TOP_LEVEL> :: line 233" data: no]

    To avoid confusion: http://kb.mozillazine.org/JavaScript_is_not_Java
    That issue is caused by the 1clickweather extension as you can see in your above posted error message.<br />
    See:
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Can anyone help get rid of a system.argumentoutofrangeexception error

    Can anyone please help me fix this error.  A website that is bookmarked and I use regularly is giving me this error message. 
    Description:  An unhandled exception occurred during the execution of the current web request. 
    Exception Details:  Ayste.ArgumentOutOfRangeException:  Index and count must refer to a location within the string.
    The website is working fine using the desktop computer, just not the iPad. 
    Thanks a ton

    You can try to Clear the Cache.
    * Firefox > Preferences > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    * Firefox > Preferences > Privacy > Cookies: "Show Cookies"
    You can check the home page setting.
    *https://support.mozilla.com/kb/How+to+set+the+home+page
    You can also check the Download Manager (Tools > Downloads)
    If that doesn't work then try a new profile.
    See Basic Troubleshooting: Make a new profile:
    *https://support.mozilla.com/kb/Basic+Troubleshooting#w_8-make-a-new-profile
    If that new profile works then you can transfer some files from the old profile to that new profile, but be careful not to copy corrupted files
    See:
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • Content Pane: Help getting rid of "Click to activate this control"

    I know this came up a long time ago when IE
    changed--Flash/swf content needs to be clicked to be activated
    first. I thought Robohelp 6 would address it, but not.
    The challenge: Cannot use the fixes publised because the html
    pages created by Robohelp, like the Content pane, are generated
    with Javascript. Ironically posted solutions use Javascript to
    change the Embed, object, etc. tags! And I don't know Javascript!
    The entire Content pane needs to be clicked first so you can
    click an item in the contents. Its html file seems to be
    wf_master.htm and when you look at the code, the tags are fed in
    like this:
    // Build tag to document.write
    strObject = "<OBJECT
    classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0'";
    strObject += "WIDTH='100%' HEIGHT='100%' id='masterSWF'
    ALIGN='' VIEWASTEXT>";
    strObject += "<PARAM NAME='movie'
    VALUE='wf_master.swf'>";
    strObject += "<PARAM NAME=quality VALUE=high>";
    strObject += "<PARAM NAME='menu' value='false'>";
    // FlashVars for Object tag:
    strObject += "<PARAM NAME=FlashVars VALUE='" +
    strFlashVars + "'>";
    strObject += "<EMBED src='wf_master.swf' quality=high
    WIDTH='100%' menu='false' HEIGHT='100%' NAME='masterSWF'
    swliveconnect=true ALIGN='' ";
    // FlashVars for Embed tag:
    strObject += "FlashVars='" + strFlashVars + "' ";
    strObject += "TYPE='application/x-shockwave-flash'
    PLUGINSPAGE='
    http://www.macromedia.com/go/getflashplayer'>";
    strObject += "</EMBED>";
    strObject += "</OBJECT>";
    Adobe's solutions 1 or 2
    http://www.adobe.com/devnet/activecontent/
    assume you have regular html files.
    *Question/request:
    1) Has/can someone come up with a way or code (or function?)
    that can be added somewhere centrally (in a key file) so when
    robohelp renders the above html tags are replaced therefore
    eliminating the need of clicking the swf content to activate it?
    I don't know how Robohelp renders to help me find the file
    where a change like this can be made.
    2) Or can the output Javascript file be modified?
    Robohelp seems to ride on Javascript and the 'solutions' are
    in Javascript. I can't believe RObohelp developers have not
    addressed this with the Robohelp 6.
    I upgraded to Robohelp 6, use Robohelp HTML, publish using
    FlashHelp, and my users use IE,

    just search forum - this has been discussed almost everyday
    since the issue surfaced a few
    weeks/months ago - in fact somebody actually posted a link to
    an article explaining it 11 minutes
    before you posted your question
    Subject: IE Changes Due: What you can Expect.
    It's not a flash issue - it is an Eolas/Microsoft issue. Also
    google around - tons of articles on
    news sites about this and also on adobe and macromedia that
    explains it all.
    --> Adobe Certified Expert (ACE)
    --> www.mudbubble.com :: www.keyframer.com
    -->
    http://flashmx2004.com/forums/index.php?
    -->
    http://www.macromedia.com/devnet/flash/articles/animation_guide.html
    -->
    http://groups.google.com/advanced_group_search?q=group:*flash*&hl=en&lr=&ie=UTF-8&oe=UTF-8
    jrschaef wrote:
    > Why do I have to click twice to use a flash nav? When I
    first hover over the
    > nav there is a "Click to activate and use this control"
    pop up, I click it and
    > then I can use that nav but if I go to a new page it
    starts over again. I seen
    > another posting that refer to the same issue but didn't
    have a solution. Can
    > anyone help?
    >

Maybe you are looking for

  • Table for Original Values in Results Recording

    Hi, Where are the original values of the results recording of the inspection lot (inspection type 04) stored? Or, is there any function module to fetch this data? Regards Ramakanth

  • Can we reduce the size of the disk having the Log files for a Dag Database

    There is an issue with disk space filling up for 4 databases part of the same DAG, each having 1 non lagged passive copy. The Disks containing the log files are from the VSphere Storage. The Disk size was temporarily expanded to avoid any outages. Th

  • Enhancements in Outbound IDoc Processing

    Hi, How do I find the function module where the Outbound IDoc structures are filled. Basic type: SHP_OBDLV_SAVE_REPLICA02 Message type: SHP_OBDLV_SAVE_REPLICA Thanks, Regards, Morten

  • Large File Reading and Processing

    Hi: Suppose I have a file much larger than my computer's memory e.g. say on a Windows XP system, the memory is 256 MB RAM and the file size is 1 GB on disk. Now if I want to create a File object and read from this file, is this possible to do? If yes

  • Uninstall ICC color profiles

    How do you uninstall ICC color profiles? I can install ICC color profiles by right clicking on the profile and selecting "Install" but there seems to be no way to uninstall a profile.