I just wanna display 10files one by one with a period of 3 sec.

I'm trying to make a simple GUI program.
(It consist of 3 panels)
I wanna display a picture file - rotating 10 picture files with a period of 3 sec - in a certain picture box of Panel tab....
I was tried to set a picture file(.gif) into the picture box as event of ComponentShown of the panel using for-loop.
but, program hang up. I think It's caused by for-loop.
I just wanna display 10files one by one with a period of 3 sec.
Do I have to use a thread ? (if so, How do I have to do?)
otherwise, Is there any function just like sleep function of thread ?
I'm a novice of java.
Please, give me your advices.
thank you.

no, don't use a thread
just use a timer, sleep is fine for this if that's all the app is doing
// psuedocode
for(i=0; i<10; i++)
  drawImage(i);
  sleep(3000);
}

Similar Messages

  • Why do I get two(2) different GUI displays. One with Mcafee advisor the other not?

    Each time I open firefox, I never know which Gui page will appear. One has the mcafee site advisor at the top and bottom right. The other which I have now, has not site advisor displayed??? Am I getting a phoney page display. I have windows XP. Before the update to release 8, I didn't have this problem.

    the CMYK values for the blue logo are 79, 56, 2, 0 and when I click on the RGB tab in InDesign or Illustrator, these programs tell me that the RGB equivalent is 69, 112, 179.
    69|112|179 is the conversion you'll get using the default North American General Purpose Color Settings—or US Web Coated SWOP v2 converted to sRGB. As Willi implies there are many flavors of CMYK and RGB so different sources and destinations, as well as the conversion intent, will produce different results.
    So "branding" color this way doesn't really work because 79|56|2|0 CMYK will look very different on newsprint than it will on a GRAcol profiled press with glossy paper, and 69|112|179 RGB will look very different in a CC app with a ProPhoto RGB assignment then it will look in a web browser with no profile assigned.
    The best you can do is qualify the values—79|56|2|0 US Web Coated (SWOP) v2 CMYK = 69|112|179 sRGB IEC6196-2.1 RGB

  • Thinking about replacing my sons old ipod with the new fifth genertation.can i just sync the new one with the computer so he doesn't lose what he currently has stored on his old one

    how do i transfer whats on the old ipod with the new one, do i just sync

    It is as little more complicated than that. See:
    iOS: Transferring information from your current iPhone, iPad, or iPod touch to a new device

  • For some reason , when i restore my iphone 4s to factory settings my headphones work when listening to music or youtube videos but when i backup my information onto it , it only comes out of one ear bud and i just got a new one from the apple store.

    for some reason , when i restore my iphone 4s to factory settings my headphones work when listening to music or youtube videos but when i backup my information onto it , it only comes out of one ear bud and i just got a new one from the apple store. my old iphone 4s audio jack was messed up but i just got a new one with my warranty , can anyone help me please.

    It doesn't matter what it is in your backup that's causing the problem because you can not selectively restore things from your backup. It's all or nothing.
    Set you phone up as a new device and start over.

  • Adobe reader xi i am running 2 display screens and when i have a file open and go to print the print page opens on my second screen.  How can I get adobe reader to just display on one screen?

    adobe reader xi i am running 2 display screens and when i have a file open and go to print the print page opens on my second screen.  How can I get adobe reader to just display on one screen?
    I want the capability of adobe reader to just run on one screen.

    I had the same problem.
    Try this.
    https://igppwiki.ucsd.edu/groups/publichelpwiki/wiki/a1538/Howto_Disable_Acrobat _as_the_Safari_PDF_Viewer.html

  • I lost my ipod i bought i new one...i just wanna know if i can still recover all the songs i bought and downloaded from my lost ipod to the new one..if i can how will i do that since i downloaded everything and bought in my ipod not in my computer

    i lost my ipod and i just bought a new one...i just wanna know if i can still recover my downloads from my lost one to the new one since i bought and downloaded all the songs through my ipod and not through computer..if i can, how can i do that?

    Nope.
    Apple recomends after each purchase to BACKUP your purchases. If purchased on a mobile device (iPhone, iTouch, iPod, etc) you should transfer your purchases to a computer running iTunes as soon as possible to back them up.
    If you don't have your items in your library, I'm afraid there is little recourse.
    Hope you did not loose too much.

  • HT5312 Ok look these solutions are super complicated and I tried all of them and they don't work I just wanna buy a song ok just one song and it won't let me cause I don't have my questions and a answer from a robot is not going to help me so a real  pers

    Ok look these solutions are super complicated and I tried all of them and they don't work I just wanna buy a song ok just one song and it won't let me cause I don't have my questions and a answer from a robot is not going to help me so a real  person plz

    There are no robots here. Everyone here is a "real person", a user just like you. How about telling us what the problem is that you are experiencing when you try to buy a song? If you mean that you have forgotten your security questions, go to:
    https://appleid.apple.com/
    Click "Manage My Account", sign in, and go to the Password and Security section. If you've forgotten your answers, there should be a link just under the security questions fields where you can have a reset email sent to your Rescue email address. If the link for the email doesn't appear, as can happen if you didn't set a rescue email address or (apparently) have a .Mac email address, see the user tip created by Kappy, another user here, on how to proceed:
    https://discussions.apple.com/docs/DOC-4551
    Regards.

  • I need help,  I recently won an iphone 5 in a survey !  I have never had an apple product before.  I have had to drive to Newcastle on two occaisions to attend workshops, they were only just helpful !  most people had ipads , i was only one with iphone,

    I need some help. I recently won an iphone 5 in a customer survey. Could not believe my luck . That was mid March 2013.  I have never used any apple products before.  Today I want to get out my old Nokia E5 and go from there.  I have attended two workshops at an apple retail store at Charlestown Square, they were not very helpful, everyone at the workshop had ipads, i was the only one with an iphone. I know that to navigate around on them is simular, but after going to two workshops, which i had to drive over an hour there and back, just to get some help in how to use a mobile phone is ridiculous to me!  I noticed some problem with , I could hear people i was talking too, they could not hear me, just prior to attending my second workshop,  after much debate I was told that the phone had a manufacturing fault and that I was going to be issued with a new phone.  That was 2nd April, since then i have virtually no reception, can't send txt messages, cannot connect to my wi-fi device,  problems with battery.   The battery , once fully charged does not last 24 HRS,  this morning for example - was 100% charged, made a 2 min local phone call  , at completion of call , battery displayed 80%.   By lunch time it was displaying 56%,  i had not used the phone at all ! i don't understand it!  I have been with the same phone provider for 2yrs now and have never experienced the problems i am having now.  CAN ANYONE HELP ME ?  Yours Sincerely  Tracey.

    Tracy, first you should restart the iPhone by holding down the on/off and the home buttons at the same time until you see the Apple logo.  This process could solve some of your problems.  Also make sure you have the latest update, go into  our settings>general>software update.  On the wifi issue try restarting your router, if you are still having problems try resetting your network settings, go into your settings>general>reset then tap reset network settings. 
    The battery issues seems normal, the battery will not last 24 hours. 

  • HTML code displays on one line in browser view source

    Hi,
    In Dreamweaver, my HTML code displays returns, spaces, etc. However, in the view source option in a browser (Firefox in particular), all the code is displayed on one single line. I only found about this because I was having problems with my Google Ads not displaying. (A Google customer service person helped me to find a workaround for this since I still haven't figured how to get my code to display correctly.) So I have gone to Preferences in DW and changed my Code Format Line Break type. The result is the same with each of the three options: the code is all on one line when you check it under view source in a browser. (The server is Linux.)
    Does anyone know how to fix this? Also, I think I know how this happened in the first place. I copied my code to TextEdit for a quick backup the other day, and then I pasted it back to DW. Bad idea? Is the only way to get the code back to normal to re-write it in a new HTML file in DW?

    Pssh. Problem solved, but I'm not quite sure how. I did go back and try to clean up some redundant CSS and other things, but the HTML/CSS validator still shows that I have this one invalid <header> tag (www.nextmontenegro.com), but since that was written as part of the DW template, I just left it. Weird. Anyway, the code flows down the page now.
    Thanks for the quick replies and helpful hints:-)

  • Problem in displaying images one by one in JList

    I have a problem in displaying images one by one in Jlist. I want to show 100 images as a thumbnailview in jlist but it is talking too much time to show all the images after scalling 100 images to thumbnail view and making it into ImageIcon. So, i thought that it would be better way to show one by one after scaling it into thumnailview. But my renderer is getting calling after 100 images scaled down and setting into list. I have posted my code 2 days back but there is no reply.
    http://forum.java.sun.com/thread.jspa?threadID=789943
    I donno where i am missing in this code.
    Plz suggest me some solution for it.

    Where is the scaling done? In the ListCellRenderer? Regardless of where that is being done, I assume you are caching the scaled images after you scale them, right? If not, consider adding some sort of caching.
    This should do the trick...
    Rework your ListCellRenderer to check to see if a scaled version of the image is available. If not, start a thread to do the scaling and create an ImageIcon. In the meantime, while that thread is running, have the renderer return some sort of stock icon, like a little generic image icon. When the scaling thread completes, make a call to repaint() on the JList so the cell renderer gets re-asked for the icons. This time around, the renderer should notice that a scaled version (the ImageIcon) is available. Return that. So, this method doesn't guarantee that the images will be produced in order, 1...2...3..., but it will return images as they become available, and the overall JList rendering won't wait until all 100 are ready. If you want them returned in order, just do all of the scaling in a single thread and queue up the images to be scaled, in order.
    I hoped this helps. (If it does, please throw me some Duke Dollars.)

  • Every time I start Firefox, the upgrade/signup page is displayed in one tabe while google, my start;up page s displayed in another. How can I stop the firefox page from loading every time?

    Every time I start Firefox, the upgrade/signup page is displayed in one tab while google, my start-up page is displayed in another. How can I stop the firefox page from loading every time?

    See these articles for some suggestions:
    * https://support.mozilla.com/kb/Firefox+has+just+updated+tab+shows+each+time+you+start+Firefox
    * https://support.mozilla.com/kb/How+to+set+the+home+page - Firefox supports multiple home pages separated by '|' symbols
    * http://kb.mozillazine.org/Preferences_not_saved

  • Is there any way to lock the HDMI display on one desktop?

    Hello!
    My Macbook Pro HDMI-connection to my TV works great -- the only thing I wasn't able to figure out is if it was possible to lock the HDMI display on one desktop. I use five different desktops (spaces) and I'm using extended desktop(s) for my HDMI, but every time I switch to another desktop, whatever I'm watching on my TV switches to the extended desktop for whatever space I just switched to, meaning that my TV switches to blank screens. Is there any way that, even if I continue switching through desktops on my computer, I can keep my HDMI locked on the extended space for "Desktop 1," for example?
    Hope that makes sense. Thanks!
    -Ryan

    If you disable the "Change with buttons" setting, the buttons will still control the general volume (music, games, etc) but will NOT change the ringer or alarm sound settings (keyboard clicks also fall into this category but is not mentioned). This lets you use the volume up/down buttons to change the general volume level without changing the ringer and alarm volume levels...it keeps you from inadvertently turning down the ringer or alarm volume and missing calls and alarms.
    That being said, there's no way to totally disable the volume up/down buttons from doing something volume related.

  • I have a 1st gen ipad. Want to play Candy Crush. Installed app from app store. I hit play now, I see the board then the pad goes back to the start screen (the one with all the apps displayed). Do I need additional apps to run? Thanks.

    I have a 1st generation iPad. Want to play Candy Crush Saga. Installed app from Apple Store. When I tap on the app, I wait a long time while it reads "loading" then I hit "play", I see the board then the ipad goes back to the ipad start screen (the one with all the apps displayed). Is there some additional program I need to play this type of game. I know that space is not an issue as I have very little stored. Thanks.
    Just found my answer. Worked perfectly. Instructions very clear.

    try uninstalling the app and reinstalling it. u shouldnt need to install anything else but the app itself to get it running. if that doesnt work then update ur software and see if that works.

  • I just installed LV2011 and one dll from my vi won't load with the error "application configuration is incorrect"

    I just installed LV2011 and one dll from my vi won't load with the error "application configuration is incorrect", which is Windows lingo for "missing package dependencies".  All the computers at my company with 2010 loaded seem to do OK.  When I do a Dependencies Walk I get missing Visual C debug dll's missing plus IEshims and wer which both have a whole tree of dependencies missing on my machine.  The Windows install is the same "Windows XP version 2002 Service Pack 3" on my PC and the working PC's. So I'm thinking I have to uninstall 2011 and go back to 2010.  Is this correct?  Those VC debug dll's were installed on the machines with 2010 in them but were not installed in mine.
    I've heard the advice to recompile the dll with debug turned off but I don't have access to the source code.
    Thanks in advance.

    u87 wrote:
    Thanks for the reply.  This at least tells me that going back to LV2010 is not likely to solve the problem.  The missing dll's are:
    MFC90D.dll
    MSVCR90D.dll
    IESHMS.dll
    WER.dll
    And, once again, IESHMS and WER have other dependencies.  So perhaps i need to install the Visual C++ development environment.
    IESHIMS.dll is an Internet Explorer DLL that gets usually delay loaded by shdocvw.dll. As delay load it can not cause DLL load errors but only runtime errors. Maybe your DLL has it as direct dependency but that is unlikely since it does not have a documented interface.
    WER.dll is Windows error reporting for Vista/Win7.
    MFC90D.dll is the Microsoft Foundation classes and MSVCR90D.dll is the MS C runtime library, both as debug variant.
    So all the DLLs you mention are actually MS DLLs! You haven't identified the DLL that you try to access in LabVIEW that causes these error messages. IESHIMS and WER are usually delay loaded by any component that needs it and should not likely be used by non MS code.
    What is the DLL you try to load into LabVIEW and by whom? Get the provider of that DLL to provide you a non Debug build of the DLL. Installing Visual C on all the machines just to make the DLL load is not a solution, besides that it is likely not legal since I doubt you have that many licenses.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • I have an ipad and just bought a second one for my daughter and she wants all my music on her ipad.  We both have our own itunes accounts and music match wont let me put music on hers. how do i get around this?

    I have an ipad and just bought a second one for my daughter and she wants all my music on her ipad.  All the music is under my itunes account yet she has her own itunes account so she can have her own apps and purchase apps with gift cards (She's only 9)
    I subscibe to music match under my account but it wont let me put my music on her ipad under hers or even my itunes account.  I get some sort of 90 day error message.  How do i get around this so I can let her have my music on her ipad?

    iTunes Match is not sharable across Apple IDs. The best way to get the music on her iPad is to leave hers signed into her Apple ID on the iTunes Store and sync via USB.

Maybe you are looking for

  • IOS 7 Calendar List View on main page

    Hi Apple, The main reason for me to take an Iphone was the calendar and all the sync around it. Now on IOS 7 Calendar you have remove one of the most important feature for me. When we are on the calendar we don't have the list at the bottom. This fea

  • Ejecting iPod causes other USB devices to be ejected at the same time.

    When ejecting an iPod Nano 4g from iTunes under Windows Vista, all other USB devices attached to the computer are also ejected at the same time (external hard drives, thumb drives, scanners, etc.). Is there a way to prevent this from happening?

  • Will Airport Express transmit sound from an iMac's "DVD Player"?

    I am playing a DVD on my Mac's DVD Player application, and projecting the movie to a screen at the front of the room.  Can I wirelessly transmit the sound track to a powered speaker at the front of the room via my Airport Express? 

  • Adding new easy setup

    I have downloaded some easy setups for FCP from the internet. The site said to add it to the folder Macintosh HD > Library > Application Support > Final Cut Pro System Support > Custom Settings I am looking on my computer and I don't seem to have thi

  • Transaction MRHR and MIRO - Vendor Invoice

    Good morning,      we have completed the upgrade to 4.7 SAP version (from 4.6c) two weeks ago. To register the vendor invoice  for simple “Withholding tax” in 4.6c we used MRHR, But in 4.7 this transaction is no longer usable and we are obliged to us