HELP PLEASE!  list is killing me.

Please someone help me. The actionPerformed is called based on the number of items in the list. eg. if the list has 3 items, actionPerformed will be called 3 times. However, I only double-click once.
package threadreminder;
import java.awt.*;
import java.awt.event.*;
class TaskThread extends Thread implements ActionListener{
     private int time;
     private int id;
     private List taskListArea;
     TaskThread(List taskListArea, String task, int time, String unit){
          super(task+time);
     id++;
          this.time=time*1000;
          if(unit.equals("minutes") ){
               time=time*60;
          }else if (unit.equals("hours") ){
               time=time*60*60;
          this.taskListArea=taskListArea;
          this.taskListArea.addActionListener(this);
          this.taskListArea.add(task);
          id=taskListArea.getItemCount()-1;
     public void run(){
          try{
               Thread.sleep(time);
          }catch (InterruptedException e) {
          System.out.println("Thread wake: " + this.getName() + " " + time );
          taskListArea.select(id);
     public void actionPerformed(ActionEvent e){
          List sourceList=(List)e.getSource();
          String[] tasks=sourceList.getSelectedItems();
          for (int i=0; i<tasks.length; i++){
          System.out.println(tasks);

I had the same problem with lists on our last application, I was trying to catch double clicks on an item in the list using an ActionListener, I changed to a MouseListener and used getClickCount() == 2 and that worked perfectly (actionPerformed was being called twice) maybe you could try this approach?

Similar Messages

  • I keep being asked to update my Safari but when I do a Software update it scans but never gives me a list and just says no new updates. Help please!

    I keep being asked to update my Safari but when I do a Software update it scans but never gives me a list and just says no new updates. Help please!

    There are no updates to either OS 10.5.8 or Safari 5.0.6.
    If you need a later version of Safari you must first upgrade your operating system to a later version of OS X.

  • How do I delete stored email addresses in my iphone? When sending photos, I don't want to have certain email addresses  "popping up" from the internal memory, I've deleted my entire "Contact" list but they still appear.  Help please!

    How do I delete stored email addresses in my iphone? When sending photos, I don't want to have certain email addresses  "popping up" from the internal memory, I've deleted my entire "Contact" list but they still appear.  Help please!

    As with the Mail app on a Mac, the iPhone's Mail app stores all email recipients in a list of previous recipients which is separate from the address book or contacts. The email address autofill feature when addressing an message pulls from Contacts and from the list of previous recipients.
    Different from the Mail app on a Mac, there is no access to the list of previous recipients with iOS on an iPhone, iPod Touch, or iPad to remove a previous recipient from the list, or to add a previous recipient to the address book or contacts that is not already entered - not at the present time anyway.
    The only way to purge the list of previous recipients at the present time is by restoring your iPhone with iTunes as a new iPhone or not from your iPhone's backup, which will start being re-populated again with every sent message.

  • HT2486 I am sending an email to a group which I have created in my contacts.  I would like to hide the list of people's emails but cannot see how I can do that.  Can anyone help please?

    I am trying to send an email to a group which I have created in my contacts.  I would like to hide the list of email addresses but cannot see how to do this.  Can anyone help please?

    Thank you for your message.  
    I can see how you do that when using the 'normal' emailing system from my mailing box, but not when working from the contact application (the 'book' on the bottom icon bar with the @ on it)....

  • Itunes doesn't list all of my recent podcasts. My show is Black Tribbles and it only shows episodes through March 2013, however we do at least two shows a week and they aren't listed. The feed works because the show update to my computer. Help please.

    Itunes doesn't list all of my recent podcasts. My show is Black Tribbles and it only shows episodes through March 2013, however we do at least two shows a week and they aren't listed. The feed works because the show update to my computer. Help please.

    Your feed is at http://blacktribbles.podomatic.com/rss2.xml
    When subscribed to in iTunes the recent episodes show, but the Store hasn't updated for some time.
    There appears to be an issue with the feed. In the episode 'WRESTLING MARCH MADNESS: Final Bracket & Championship' of 31st March you will find in the 'description' tag the following line:
    4. KURT ANGLE
    At the end of this line is an invisible character which seems to be wrecking the feed - although it works OK when suscribing in iTunes it won't load in a browser (and I also found the feed very slow to load, which won't help matters with the Store)
    This sort of thing usually happens when you paste text in from a word processing application and manage to include one of the invisible control characters. I don't know how easy it will be do do it in Podomatic but you should delete that entire line and retype it to remove this charter.
    You should keep an eye on the time it takes the feed to be accessed - if there is a long enough delay (and it was quite some seconds when I tried) the Store may well timeout and fail to read it. At the moment it's showing a cached version from the last time it was able to read it.

  • Safari 5.1 in iMac OS X 10.6.8.Adding Bookmarks to "unsorted Bookmarks" folder puts them in a black hole.  I can't find the "UB" folder.  Where is it? Should I add it to the folder list somewhere on the left pane? OR? Help, please!

    Safari 5.1 in iMac OS X 10.6.8.Adding Bookmarks to "unsorted Bookmarks" folder puts them in a black hole.  I can't find the "UB" folder.  Where is it? Should I add it to the folder list somewhere on the left pane? OR? Help, please!

    It looks like that the installation process of one of the applications have caused some trouble. One of them may have changed or added kext files.
    For that, the Window server crashed if you try to open a non Apple application like Firefox
    Start the system in safe mode by holding the shift key on power on.
    If save mode is reached, perform a permissions repair with the Disk Utility.
    Don't bother about upcoming warnings like "could not repair file xy" as that occur cause you use the tool on a running system and opened files can not get touched by the tool.
    After repair is done reboot system to normal and try to open Firefox.
    If the problem persits, please report back here.
    Lupunus

  • My iPhone 6 can't find my macbook pro on the airdrop list, although everything is in place, bluetooth, wi fi gets, need help please ?

    My iPhone 6 can't find my macbook pro on the airdrop list, although everything is in place, bluetooth, wi fi gets, need help please ?

    Dear Niel, thank you but my mac is (MacBook Pro (Retina, 15-inch, Early 2013).
    and i can send from it to my iPhone , but not vice versa

  • When I download PDFs on my macbook I am given the option of saving them to iCloud and in Preview they are listed under iCloud. How can I then view them on my iOS devices? Help please.

    When I download PDFs on my macbook I am given the option of saving them to iCloud and in Preview they are listed under iCloud. How can I then view them on my iOS devices? Help please.

    Welcome to the Apple Community.
    You can't share preview files to an iOS device. There are several other options for pdf's such as Adobe Reader or iBooks.

  • I bought a used iphone 4 (gsm) and it was locked on an icloud account i asked the old owner to remove the device from his devices list on icloud and he did but the iphone is still asking to be activated on his icloud account. any help please???

    i bought a used iphone 4 (gsm) and it was locked on an icloud account i asked the old owner to remove the device from his devices list on icloud and he did but the iphone is still asking to be activated on his icloud account. any help please???

    If it's still asking for the seller's Apple ID and password, then he most likely did not actually remove the iPhone from iCloud. If the problem persists, return the iPhone and get your money back. The seller can figure out the problem and resell the iPhone later.
    Regards.

  • I think I killed my Mac, trying to install XP - Help, please!

    I am at a loss. I cannot boot my computer in OSX, but when I try to boot it will the install disk....it comes to the first screen for what language, but then says OSX cannot be installed on this computer.
    Perhaps it is still on the computer and that is why...but I cannot find it, though I am not that savy with this stuff. I tried holding down the option key and it just lists a windows start up disk...but that is not working as it just recycles trying to install windows xp.
    oh my, I am sick.
    If anyone can help, please let me know!!

    It is common when installing Windows for the install disk to have to reboot the machine to proceed to the next step. People familiar with Windows installation are not thrown by this - but a person new to the task might be confused.
    In Boot Camp this can throw you off because it does not prompt you as to your job in the procedure.
    If you don't do anything your Mac will boot back to OSX and Windows will remain un-finished. Here it is: if you are installing Windows and the machine closes down and re-boots, always hold down the 'option' key (or if you like - the 'c' key) so you can avoid an automatic boot to OSX - choose the 2nd hard drive icon. Windows always wants to boot back to Windows - to finish the job.
    If you want to erase your Boot Camp error - just boot to OSX, open Boot Camp Assistant (found in "Utilities" which is found in the Applications folder) and choose to create one partition. Your OSX install will not be hurt by this.
    If you want to wipe your computer completely (as if factory new) in order to install OSX from scratch then first install your OSX DVD and boot (holding down the option key or else the c key - then select the disk icon) - after language selection wait for the tool bar at the top to appear, select utilities > disk utility and click the hard drive (listed at the top of the list) and then click 'partition'. Then under 'volume scheme' select 'current' and create a 3 or 4 partition (takes a minute) and then undo this and create a one partition. This should blank-out the computer hard drive completely for you to start fresh - all will be erased.
    If your Mac will not boot properly and you happen to have materials on your machine that you MUST save or recover, then you will need different help than I describe here.
    Message was edited by: NA Smith

  • I have a wish list on i tunes and want to transfere  the songs so I can burn them to a cd..can anyone help please

    I have a wish list on I tunes that I want to download and burn to a cd...I dont know how to transfere  from wish list to be able to download and burn...can anyone help please 

    Philippa18 wrote:
    Cant get the songs to transfere from the wish list !
    You do not need to transfer anything.  Open the wishlist, and click on the price of any song(s) that you want to buy. 
    Once you have purchased them and have them in your library, simply put them into an iTunes playlist and burn in the normal way.

  • HT204406 I have a lenovo tablet running windows 8 - only 4 of my albums are showing in my list - this is my 4th device and I subscribe to the cloud HELP  please I want to see my music

    have a lenovo tablet running windows 8 - only 4 of my albums are showing in my list - this is my 4th device and I subscribe to the cloud HELP  please I want to see my music

    See the futher information area of Troubleshooting issues with iTunes for Windows updates for download advice and direct links if required.
    See this migrate iTunes library post for advice on moving the library over from a previous computer and this post on deduplication.
    tt2

  • My Nano 5th g battery was dead, I charged and it play fine but all written material ie play list, music, albums, etc. are backwards.  Help please.  Tx  Tom

    My Nano 5th g battery was dead. After charged play fine but all written content in menus and songs is backwards.Help please.

    Try resetting the Nano first to see if that helps. To do this, first make sure the hold switch is in the Off position, then press and hold both the Select (Center) and Menu buttons together long enough for the Apple logo to appear.
    If the issue persists, connect the iPod to your iTunes library and restore it to factory settings.
    B-rock

  • Disappointed with IOS7, i had organized my music library as per the Genre and now im unable to hear all the songs of the same genre like in the earlier versions. The options of "all albums" and "all songs" are missing in this version of IOS. Help Please..

    Disappointed with IOS7, i had organized my music library as per the Genre and now im unable to hear all the songs of the same genre like in the earlier versions. The options of "all albums" and "all songs" are missing in this version of IOS. Help Please..

    It would be nice if you told others the steps you've tried and/or how you used to have your setup.
    Anyway have you tried tapping MORE this will then bring you to
    the selection-list of Audiobooks, Genres, Compilations & Composers.
    Selecting Genres gives you a list of all your music split into genres which was set within the Music downloaded via iTunes or uploaded from CD or which you may have set yourself.
    Then you just select the Genre you want:
    If certent songs are not correctly gategorised you may need to go into iTunes and reselect via Get-info
    >Info>Genre and change it there. That way you should end up with all songs of Jazz or other in 1 place.

  • When I try to install Itunes, I get this error: (translated from Norwegian) There was a network error while trying to read from the file: C: \ windows \ installer \ iTunes.msi I have tried many times to reinstall, but nothing helps, please help me.

    When I try to install Itunes, I get this error: (translated from Norwegian) There was a network error while trying to read from the file: C: \ windows \ installer \ iTunes.msi I have tried many times to reinstall, but nothing helps, please help me.

    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • I just updated my iTunes to 11.1.3 and now it won't sync music to my iPhone 4... Help please!!

    I just updated my iTunes to 11.1.3 and now it won't sync music to my iPhone 4... Help please!!
    I have switch the setting on my iPhone to manually manage music and back and it still won't sync the new music

    cutwright 93,
    I have a 4s, and I've had that problem, too. I've tried every method mentioned on the boards. If Ellips's suggestion didn't work, try this, and please let me know if it worked:
    (I did the following while the phone was connected to my pc...if that makes a difference.)
    1. On the phone, go to Music.
    2. Click "More."
    3. Click "Shared."
    4. My phone lists "iPhone" and my iTunes Libary. Try clicking the name of your music library.
    5. Wait until the circle makes its loop.
    The synch still failed to complete, but all of my music was on my iPhone, again. Whew.

Maybe you are looking for

  • How to change locale of "jslang=' ' in the head of webpage of dynamic BC website

    I recently replicated a BCGurus template to my partner portal. The template is used for a dynamic website. I've noticed when the culture is set in site domains, e.g. Netherlands and culture none, the var slang="NL" is set in the <head> of the templat

  • Xdcam ex question - progressive vs interlance ?

    hi i will be shooting a video soon with the ex3 and i'm still not sure whether to shoot P or I. if i shoot interlace and change the field dominance from upper to none, will i be getting the same progressive look that i would get while shooting progre

  • How good is best quality in iDVD6?

    Has anyone done comparisons as regards the best quality in iDVD6? Are DVDs authored using this option as sharp as videos played directly from the camcorder (dv camera / standard definition video)? Do some other DVD authoring programmes burn sharper D

  • ITune Download No Go's

    I'm a Mac guy since 1985. My latest machine is an 27"iMac i7. I've been using iTunes since it came out. All of a sudden I have a problem when buying Albums, individual cuts. The problem: During an album download, I keep receiving the following messag

  • 30" Monitor - Economical Choices?

    Hey everyone, I'm looking for an economical 30" monitor for under $1000 and am having a tough time finding one. Can someone please point me to the right direction? I'm working with AVCHD footage from a GH2 and export with H.264 for final output mainl