How do I blink a button one time?

I tried something like this to make the "blue" button blink:
blue.setBackground(Color.BLACK);
                    try
                         Thread.sleep(700);
                    catch(Exception e) {}
                    blue.setBackground(Color.BLUE);
It doesn�t work...I saw a method "BlinkyText" for example, but I�m using Eclipse and there isn�t this method there.

int delay = 700; // milliseconds (or 0.7 sec)
  ActionListener taskPerformer = new ActionListener() {
      public void actionPerformed(ActionEvent evt) {
          //...Perform a task...
          button.setVisible(false);
          Timer timer = new Timer(100, new ActionListener() {
                public void actionPerformed(ActionEvent evt) {
                //...Perform a task...
               button.setVisible(true);
          timer.setRepeats(false); // This means it will only happen once!
          timer.start();
  Timer timer = new Timer(delay, taskPerformer);
   timer.setRepeats(false); // This means it will only happen once!
   timer.start();

Similar Messages

  • How can I clean up queue one-time on Sun Java system messaging 6.3

    Hi,
    <address>Our Email server have a problem, When I run _./imsimta qm directory tcp_local_, There are about 5 Millions of messages in the queue.</address>
    Now our Email server send messages very slowly, how can I clean up queue one-time?
    the command _./imsimta qclean_ is very slowly.
    What can I do to prevent this problem?
    our Email server version is :
    Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008; 32bit)
    libimta.so 6.3-6.03 (built 17:12:37, Mar 14 2008; 32bit)
    SunOS email-1 5.10 Generic_120011-14 sun4u sparc SUNW,Sun-Fire-V890
    Thank you !

    If you have more than 100,000 messages in the queue, then look at the MAX_MESSAGES parameter in [the job_controller.cnf file|http://wikis.sun.com/display/CommSuite/Job+Controller+Configuration+File]. If the parameter is not specified, it defaults to 100000. If you have more than that number of messages in the channel queues, it will take a long time for new/legitimate messages to be sent because job_controller is only considering the first 100,000 messages in the queue.
    If you get into the "imsimta qm" command do do "sum -database", it will show a summary of what job_controller has in its internal cache and therefore what job_controller is working on. If you compare that to "sum -directory" you will probably see a difference.
    If these are all legitimate messages, you need to increase MAX_MESSAGES, cnbuild, and restart job_controller.
    If they are not, then preventing this in the future will require determining how they got into your queue and correcting that.
    As for removing them, the "imsimta qm" commands allow you to select messages by various criteria and then you can "return" or "delete" them. But yes, that will take a long time if there are many messages because it is a single threaded process and it needs to open and examine each message. You may be able to accomplish the task more quickly with a shell script that works on individual channel queue subdirectories and then run multiple copies of that script in parallel. After you have cleaned out the queue, restart job_controller.
    Also, you might want to consider [the subdirs channel keyword|http://msg.wikidoc.info/index.php/Subdirs_and_nosubdirs_Channel_Options].

  • How do I transfer data from one time capsule to new time capsule when TC backs up an iMac and Power Book

    How do I transfer data from one time capsule to new time capsule when TC backs up an iMac and MacBookPro

    It is generally better to leave the old backups and start again.. unless there is something you particularly need.
    But if you desperately want all the old backups you have to copy the sparse bundles.. this will take very long time as it must copy via the computer..
    http://pondini.org/TM/18.html
    Take particular note of the initial comments.. ie before you read how to do it.. don't do it.

  • How create multiple named folders at one time? 10.10.02

    How create multiple named folders at one time? 10.10.02
    Hello all,
    I need to create 208 named folders at one time. Please advise.
    Thanks!

    You may want to ask this in the Yosemite forum. This is the Mavericks forum.

  • HOW DO YOU" DELETE BOOKMARKS" AT ONE TIME WITHOUT DELETING ALL.

    == Issue
    ==
    I have a problem with my bookmarks, cookies, history or settings
    == Description
    ==
    How do you" delete bookmarks" at one time, but not all of them. For instance highlight the ones you don't want. But with Fx that doesn't work. I love Fx and tell everyone I know about you and have for years. Please help !!!!!
    == Troubleshooting information
    ==
    How do you" delete bookmarks" at one time, but not all of them. For instance highlight the ones you don't want. But with Fx that doesn't work. I love Fx and tell everyone I know about you and have for years. Please help !!!!!
    == Firefox version
    ==
    3.6.3
    == Operating system
    ==
    Windows XP
    == User Agent
    ==
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
    == Plugins installed
    ==
    *-Shockwave Flash 10.0 r32
    *Default Plug-in
    *Adobe PDF Plug-In For Firefox and Netscape "9.3.2"
    *NPRuntime Script Plug-in Library for Java(TM) Deploy
    *Google Update
    *Java(TM) Platform SE binary
    *Next Generation Java Plug-in 1.6.0_20 for Mozilla browsers
    *Npdsplay dll
    *DRM Store Netscape Plugin
    *DRM Netscape Network Object

    Please take a look at knowledge base article [[Deleting Bookmarks]] on how to delete one or more bookmarks at once.

  • How many Users online at any one time?

    Is there any better (/more accurate) way of determining how many users are using Planning at any one time then "Administration >Application>Statistics"?
    I've been using the Statistics up until now but it's hardly fit for purpose. The timings look dubious and the same users can be there 20+ times in the same list.
    It's not a deal breaker, but would be nice to see if anyone else had any hints on this.
    Regards
    Ed

    Even after a reset the numbers look very weird. Apparently it's been 6 weeks since I last accessed Planning... I should be fired!
    Slightly off topic: My Supporting Detail Detection Cache Usage is at 100%, am I right in thinking I should DECREASE the cache size in the Application Properties as per the Documentation (http://download.oracle.com/docs/cd/E17236_01/epm.1112/hp_admin.pdf - P83)?
    Sounds wrong to me.
    Any ideas anyone?

  • How to get multiple rows at one time in a table?

    hi
    I have a JTable bound with ViewObject and i use multiple selection mode setting to get selection row.
    My question is when i select more then one row at one time i only can get those index from JTable but can't get those rows from ViewObject.is it possible to get rows from ViewObject? or how to use JTable row index to get row from ViewObject?

    repost

  • How to delete multi contacts in one time

    i need to  delete multi contacts in one time there is any way for this.

    Just install iPhone PC Suite on your computer. It supports for adding new contacts, exporting and deleting contacts in batch from iPhone, importing contacts to iPhone and removing duplicate iPhone contacts, etc.

  • How do I restore previous session one time only.

    I closed Firefox by mistake.
    I reopened it, hoping to Restore Previous Session.
    Unlike other browsers, I found no easy link nor mention in any of the dropdowns from the menu on top left.
    I went to the Archives, but none of the solutions worked:
    1) I do not want it to auto restore the previous session, I only want it to do it this one time.
    2) None of the things mentioned to click on in the help articles exist in this version of Firefox.

    Go to [http://kb.mozillazine.org/About:config About:config] find (type in the bar) [http://kb.mozillazine.org/Browser.sessionstore.resume_session_once browser.sessionstore.resume_session_once] and change it to TRUE (by double-click on it).
    see for more info : [http://kb.mozillazine.org/Session_Restore#Restoring_a_session_once Restoring a session once]
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

  • How to use sy-ucomm in one time in the report

    Hi guru,
    I developed a z report when i am executing the report one screen is didplaying and here and here i have to delect some check boxes (update) and then click the click the toolbar stage (which was created using sy-ucomm) and we are getting some output.
    Now the requirement is when user second time clicking the  botton stage the report shaould not execute it self.How to do it means how to restrict .Please help me .May be it is easy for you but I am facing a severe probleam to achieve this.
    needs yours cooperation and patience.

    Hi subhassikan
    I am not very clear about what you want to say.
    1. you want the sy-ucomm to be executed once right, then you can use a flag in that case.
    one it executed first time
    make flag = 'X'.
    and next time check the value of flag if it is 'X' then the code under sy-ucomm should not be executed.
    2. Secondly is there some buttton or something that you click, check function code for only that button and should not execute for any other button and function codes must be different.

  • How do i transfer data from one Time Capsule to another?

    We ran out of space on our old Time Capsule, so I purchased the 2TB model. Problem is that there are no direction (that I can locate) on how to switch over from one device to the other! Can anyone direct me to some online instructions?

    The great Pondini.. wonder of TM
    http://pondini.org/TM/18.html
    saves the day.
    But IMHO.. start a fresh TM backup on the new TC.. preserve the old TC for posterity.. about 6months.. after which time if you didn't need anything on it you won't.

  • How can I see more than one time of (dialled, rece...

    Can someone help me? I've got the Nokia 6303clasic (upgraded from Nokia 6300). I am perfectly happy with it, it does everything I need. The only problem I had with it is that it only shows the time of last (missed, received or dialled) call. All the other Nokia phones I have until now showed time of all calls (depending on model up to 5 or maybe 10), i.e. if I had 5 missed calls from my mum it showed times of all those missed calls, so I new she called me 5 times within last 3 mins and it's something urgent or it was within last 4 hours so she just wanted to chat with me And the same with received and dialled numbers, I could see that I called my friend today, yesterday and 5 days ago etc. This new 6303 classic shows I had 6 missed calls from one person, but only shows the time of the last one Apart from that it's a great phone.
    In software details it shows:
    V06.40
    30-04-09
    RM-443
    I don't want to mess up with the software update as I don't know weather it'll work afterwards anyway, and apart from this one problem I'm happy with it as it is at the moment.
    Does somebody have any experience with this?
    Please help!!!
    thanks!

    go to menu/log it gives the times there,but it does only show last one im sorry to say
    If  i have helped at all a click on the white star below would be nice thanks.
    Now using the Lumia 1520

  • How to delete multiple emails at one time instead of individually

    I want to select random emails (not all in a row sequentially) and delete with single function. I don't want to have to delete each unwanted email individually.How to d this?
    Also, There is no delete function at top of email screen-why not?

    Have you ever deleted multiple files in Explorer at once? Thunderbird works the same way.
    Select the first message you want to delete. Then press and hold Shift and select the last message to be deleted. This selects all messages in between the first and the last one.
    By holding down Ctrl and click on an individual messages you can select or de-select it.
    Then press Del to delete all selected messages.

  • Scanjet G4050- How to scan multiple slides at one time with Image Capture

    Using Scanjet G4050 with Mac and OS 10.6.  Thus using Image Capture to control scanner.  When using the slide template for 16 slides, Image Capture only allows me to select one slide at a time. 
    Is there a way to fill the template with 16 slides and have Image Capture scan all 16 slides without having to select each one in turn?  It is a real pain to have to direct each scan.

    Hi jpbear
    I am going to take credit for finding the solution that the HP Photo Suite from OSX 5 works in subsequent Mac OSX. Look at this web page.
    http://h10025.www1.hp.com/ewfrf/wc/softwareCategory?os=4019&lc=en&cc=us&dlc=en&sw_lang=&product=3236...
    If this doesn't work for you, I am willing to guide you to finding the page. I downloaded a copy a few minutes ago and it was still available. The Photo Suite is actually an amazing set of applications but the one you want to use with your HP ScanJet  G4050 is HP Scan Pro. I continue to use it with OSX 9 but other people have reported that it continues to work with OSX 10 as well. It allows me to scan the 16 slides on the bed individually with one pass. It also has some colour balancing function.
    Frangelica

  • How can load properties file for one time and use in entire application

    Hi folks,
    I dont want to read properties file every time , and want to get property value in any servelet or jsp page.(means i want to read only property file only for once and want to get value in any where ) , how to do this.
    Message was edited by:
    RajeshwarReddyT

    means we have to read file every time Know but i dont
    want to be happen that ??? No you don't . You read the file once. You store it in the hashmap. Then you hand that hashmap to whatever class needing the data.
    getProperties() returns the hashmap, doesn't read the file.
    Maybe I should have called the method getMap or something.
    Message was edited by:
    karma-9

Maybe you are looking for

  • Dual boot: Arch and another Linux (GRUB issue)

    Hi, everybody, I've got two SATA hard drives: sda and sdb. There is a Linux on sdb, and the GRUB in it's MBR. Here's /boot/grub/menu.lst (sdb): timeout 10 color black/cyan yellow/cyan gfxmenu (hd0,0)/usr/share/gfxboot/themes/pclinuxos/boot/message de

  • DVI/S-Video

    I have a 12" PB and a 17" PB. I have connected the 12" via the mini-DVI plug to the S-Video input of my Plasma. Works great. Went out and bought an Apple DVI plug for the 17". When I try and connect it using the same wires but with the DVI plug, thin

  • Install base related question

    Hi Gurus,              I have the query that where the installed base to be used for equipment and function location is it complusory or working by just creating function loc and equipment and instaling equipment at respective function location is qu

  • Exception in accessing a portal !!

    hi all, when u try to access portal..(http://localhost:7501/xyzPortal) I get following exception... Can somebody tell me why this is happening ? Thanks Vedant. PortalPersistenceManager: portal 'portal/xyzPortal' not found <Feb 14, 2002 2:30:16 PM PST

  • Help!  : How do I ask for help and get a reply from Adobe?

    Hello: I asked a question a week ago on here (Merge to HDR pro is producing very "bleached" and overexposed images.) and there have been zero replies. What does it take to get a reply? Am I asking in the wrong area? Is there a support forum somewhere