Problem with Creating changing ImageIcons

ive created two cubes that on clicking button they change randomly them own image and i want to do that will change couple of time and after couple of loops it will stop like in the games..
i tried use Threa.sleep
with no success...
how to do this?

i know i can stop but i want to start the Timer and
after couple of seconds it works it will stop...
How to do this...Well, you have an actionPerformed method that it calls each time. Let that method determine if it is time to stop the timer and call the stop method.

Similar Messages

  • Problem with creating site from another computer!

    Hi
    I have WebDB 2.2 and Oracle8i instaled on the same computer. I have a problem to create site from another computer. There is not any process when I try to create site. There is always 0%.
    But I have no problem with creating site on the origin computer.
    Does anybody know something about it?

    I am just not clear what to do once I have made changes and have published the new information.
    You shouldn't have to do anything. iWeb will save the information in the Domain.sites file. You can keep this file in a folder, or even on your desktop and iWeb will launch from a double-click on the file.

  • I am having problems with creating my apple id. On the phone it is advising me that the ID is not created and then when i do it online it says that it has been created. Can you advise me on what to do please?

    I am having problems with creating my apple id. On the phone it is advising me that the ID is not created and then when i do it online it says that it has been created. Can you advise me on what to do please?

    Apple ID FAQ   http://support.apple.com/kb/HE37

  • Problem with iChat changing my custom away message after 30 minutes

    Lately, I've been having a big problem with iChat changing any custom away message that I put up to "Away" after 30 minutes or so. Is there anything I can do to make it stop? Another issue I'm having is that sometimes when people on my buddy list change their away message, it doesn't show up on iChat unless I go offline and then sign back on. Any idea why it's doing that, and what I can do to get it to stop?
    Thanks.
    - Danielle
    G3 iMac   Mac OS X (10.3.9)  

    Hi ienjoyanime,
    Go to the General Section of iChat Preferences.
    Does it say you are set to Go to Away when you log off/QUit iChat ?
    is the computer going to Sleep at this point ?
    10:59 PM Saturday; April 1, 2006

  • Problem with create universe on Business Objects XI 3.1 base on SAP Query

    Hello,
    I have a problem with create universe on Business Objects XI 3.1 base on SAP Query.
    The problem is hierarchy. Massage on Busines Objects is :
       OWBS_ELEMT__ISTKOSZT(cube ICPC01/BEX_ICOC01):Exception condition  "HIERARCHY NOT FOUND" raised.(WIS 10901) 
    Query in BEX run OK.
    Best regards.
    Ela.

    Hello,
    Thanks for response.
    When I run BEX QUERY, all works OK.
    All hierarchies was created and activated  on system BW.
    This situation appears after upgrade BW to SAP NetWeaver 7.3.
    Before upgrade I created universe without any problems.
    Regards Ela

  • Problem with creating new user in portal = portlet is not visible

    Hi,
    I've got a problem with creating new users in portal. In the Administer tab of the builder is the user portlet not visible.
    How can I make this portlet visible?
    Please Help
    thank you...
    Gilbert

    Hi..my problem slightly similar.
    I created one new user, and didn't select anything from "Public Groups Assignment" and "Privilege Assignment" for him.
    I expect the user will be a public user.
    But, when he try to logged in the portal,
    He cannot see all the PORTLETS related to database values..
    All he can see just LINKS -that all in my portal right now beside the report from database that the user cannot see :)
    So, what did i do wrong?
    Plz Advise, and thanks.

  • What is the problem with fonts changing to myriad pro? Is this problem ever going to be resolved? Its driving me mad!

    What is the problem with fonts changing to myriad pro? Is this problem ever going to be resolved? Its driving me mad!

    Browser Dog, Amy,
    The default font remains Myriad Pro until you change it, either in the RGB/CMYK Startup files or in the preferences, options depending on versions.
    Concerning missing font names, I believe this may solve it:
    Open System Preferences and go to Accessibility. Next, select Display from the source list along the left, then check the box labelled Reduce transparency.
    It was first presented in this post #15 by TheUlser:

  • Problem with creating email account on E72

    I have bought E72 and want to use mine company email - but there is a problem with creating email account in mail program.
    Restoring to fabric settings doesn't works.
    When I'm creating Gmail account it's OK, but phone doesnt want to cooperate with other accouns:/

    Try again without using WLAN. I had same problem, but solved it using GPRS.

  • Problem with creating chapter-markers

    Hi everyone,
    as the title already says it, I've got a problem with creating chapter markers in Quicktime Pro 7.6.4. There's something wrong with the font, displayed in Quicktime. The problem first appeared a few days ago. Before this, everything went fine and I don't have a clue what causes the problem.
    Please click HERE to see a screen-recording of the steps I do to create chapters:
    - convert the chapters into unformatted text and save it as Unicode (UTF-16) text file.
    - open it in Quicktime and everything (including the german umlauts) is displayed correct.
    - export it into a Text-file with description
    when I open the new text file in Quicktime, the fonts are displayed in asian letters, but when I view it in the Texteditor, the text is almost correct, BUT the umlauts are not ok. So I go on with...
    - correct the umlauts and save a new file as Unicode (UTF-16) again.
    After I open the new file in Quicktime, the text is completely gone. As the text file seems to be ok in the Texteditor, I guess there must be something wrong with Quicktime. I tried to reinstall Quicktime 7 from the "Mac OS X 10.6 Snow Leopard" Installation-Disc, but the problem persists.
    I' would appreciate any help...
    Thanks in advance and best regards,
    Michael

    I'm having the exact same issue. I have created my movie in IMovie 09 then under the "share " menu I sent the movie to iDVD. Everything looks fine on screen, but all I get on the final product is the movie.
    After digging deeper into the tutorials all they show is dragging a movie into the idvd shell, not sharing via imovie.
    Thus I'm currently attempting to create a quicktime movie then drag it into the IDVD shell. I think that way the chapter markers and everything should show up and burnt into the final project. I'm guessing the "share" option with the IDVD from iMovie doesn't work properly???

  • Problem with creating order through order template

    Hi experts,
    We have problem with creating order by order template.  Extensions data available in order template is not sent to order.   Extension data are showing upto order submission form.  But after sucessful creation of order  extension data are no longer available in  CRM-ORDEr.
    We are using ISA 4.0 with CRM 4.0.
    We recently applied patches on CRM server.  Before patching it was working fine.
    Can you please suggest us to solve this issue?
    Thanks in Advance.
    Regards,
    Murugan Arumugam.

    closed.

  • Problem with  Creating Info Record

    Hello Gurus,
    I've problem with Creating Info Record
    i tried to create info record for Plant Specific/Purchase Org
    The first Screen General Data is OK
    i entered all the data in the next screen ie
    Purchase Organization Data screen but i'm getting error
    <b>Make an entry in all required fields</b>
    but there is Mandatory Textbox ie "VALID TO" which im unable to select Bcos its Disabled
    pls help me regarding this
    thanks in advance

    Hi
    Have u given the net price. <b>VALID TO</b> is the date until which the price shown in the info record is valid.
    If there is no price that is valid on the current date, the last-valid price is displayed and the date field contains the day before the start of the next validity period (this may be 12.31.9999 if there is no further validity date). If all validit periods lie beyond the current date, the price of the next period is displayed. The date field then contains the end date of this period.
    These validity periods we will maintain Purchse data CONDITIONS while creating info record. Check the validity period for the conditions.
    Hope this will helps u
    Ravi
    Ravikumar Bolla

  • Problem with creating virtual column

    Hello,
    We've got problem with creating virtual column.
    There is table R_T that contain columns R_ID and L_ID, we would like to create virtual column RL_ID that contains sth like 'R_ID-L_ID' (R_ID, L_ID and RL_ID are varchars).
    According documentation we've tried:
    alter table R_T add column (RL_ID varchar2(60) generated always as (R_ID||'-'||L_ID) VIRTUAL)
    but getting
    ORA-00904: : invalid identifier
    00904.00000 - "%s: invalid identifier"
    Have no idea where is the problem.
    Table, columns names are little different but contains only capital letters A - Z and underscore "_".
    Has anyone idea?
    Thanks a lot.

    Strange...
    This does work for me :
    Connected to Oracle Database 11g Enterprise Edition Release 11.2.0.1.0
    Connected as dev
    SQL>
    SQL> create table r_t (
      2   r_id varchar2(25),
      3   l_id varchar2(25)
      4  );
    Table created
    SQL> insert into r_t (r_id, l_id) values('R','L');
    1 row inserted
    SQL> alter table r_t add (rl_id varchar2(60) generated always as (r_id||'-'||l_id) virtual);
    Table altered
    SQL> select * from r_t;
    R_ID                      L_ID                      RL_ID
    R                         L                         R-L
    SQL>

  • I have problems with creating new projects in iMovie.

    I have problems with creating new projects. When i try, the mac says the following "Make sure there is enough disk space and that you have permission to write the projects to the drive." I have 8GB available, so its not that.

    thanks for your support
    lol

  • Problem with JFileChooser and ImageIcon

    I'm trying to create an ImageIcon object from file selected in JFileChooser. The problem is that jfc.getSelectedFile().getAbsolutePath() returns a string with backslashes and the constructor of ImageIcon requires the string to have slashes. I`ve tried to create it via URL but it doesn't work as well...
    String lastUsedPath;
    URL imageURL;
    JFileChooser fc = new JFileChooser();
    JFrame frame = new JFrame();
    frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
    int returnVal = fc.showDialog(frame,title);
    if(returnVal==JFileChooser.APPROVE_OPTION){                    
         lastUsedPath = fc.getSelectedFile().getAbsolutePath();
         imageURL = getClass().getResource(lastUsedPath);     //don't really get this but I copied it from Java Swing Tutorial          
    }else{
         return null;
    int curH, curW;            
    ImageIcon srcIcon = new ImageIcon(imageURL);                              
    curW = srcIcon.getIconWidth();
    curH = srcIcon.getIconHeight();If I use it this way imageURL is set to null.
    If I set the imageURL as 'fc.getSelectedFile().toURL()' the string is eg.: "file:/E:/file.jpg" instead of "E:/file.jpg". After that the ImageIcon is created but width and height return -1.
    If I try to create ImageIcon by 'new ImageIcon(lastUsedPath)' I get a not null object but the width & height of the ImageIcon is -1 as well.
    What do I have to do to be able to create an ImageIcon from file selected in JFileChooser? Why is this so hard and mind blowing?

    It still returns the ImageIcon object with width & height set to -1.
    EDIT:
    Got it finally:
    lastUsedPathForStupidImageIcon = fc.getSelectedFile().getPath();     
    img = ImageIO.read(new File(lastUsedPathForStupidImageIcon));
    curH = img.getHeight(this);
    curW = img.getWidth(this);The key was to use another String variable and hold the path instead of the absolute path
    Edited by: Beholder on Jan 17, 2010 1:35 PM

  • Problems with creating new WinHelp 2000 projects (RoboHELP 7)

    We changed to RoboHELP 7 one week ago. Before we used
    RoboHELP X5. On the Computer where I installed RH7 the demo of RH7
    was installed before. It is a Windows Vista sytem. But after
    encountering problems I set up a VM Ware (Windows XP SP 2). The
    problems remained the same.
    Editing our old X5 projects is no problem. But when creating
    a new project it is impossible to set a non-scrolling region. I
    figured out that the paragraph mark for setting up a non-scrolling
    region in RH5 is right before a pagebreak in the word documents
    (Topics 2 to X). In RH7 it is place directly in front of Heading 1.
    By creating a new document in the project and deleting the default
    document you can work on as normal. Editing the DOCX template works
    fine either. But from my point of view this cannot be the final
    conclusion.
    The second problem is that changes in the help window
    configuration oviously are stored but not compiled anymore. You can
    change color and dimension of your main help window and these
    changes are stored correctly. But when compiling the project there
    are no changes to the default values in the output. More worse:
    when you open the HPJ file directly with Microsoft Help Workshop
    application there are written some strange marks (like
    “”) into the first lines and the help
    file cannot be compiled by Help Workshop application anymore. The
    error message sounds like this: HC3073: Warning: hhtrace.hpj: No
    section is defined for the line ".".
    Anyone out there who encountered the same problems and solved
    them?

    Thank you for your replies! :)
    By reading your answers I became aware of another fact: we
    use a german version of RoboHelp 7 on german or multi language
    versions of Windows. I set up a VM in English this morning (US
    version of WinXP SP 2, US version of Office 2007, English RoboHelp
    7 Demo). Indeed I had NO Problems. So it may be an issue of the
    german version of RH7.
    Of course I know how to set a non scrolling region manually
    for a topic. But the result remains the same (for the german
    version of RH7). Creating a new project you face the default
    document. Now I was adding some topics (in the following linked
    screenshot ‘Topic 1’ and ‘Topic 2’). If you
    now add non scrolling regions to all the topics (manually or
    automatically), the result will be as follows:
    http://img223.imageshack.us/my.php?image=nsr01gg6.gif
    After compiling the first topic in the document will have a
    non scrolling region, the others won’t. As I said in my first
    post, the problem only occurs in the default document. Creating a
    new document the topics with non scrolling regions look like this
    and compile correctly:
    http://img220.imageshack.us/my.php?image=nsr02fm5.gif

Maybe you are looking for

  • Customer Open Items Document Details

    I am building an application for a client for Purchase Card Processing using Visual Studio 2005. I am able to use VS 2003 to create the necessary object to get the Customer List, Customer Details, and the list of Customer Open Items. I am totally new

  • Can't find photo gallery in files

    I want to transfer/copy my photos and videos from my internal storage on my Razr Maxx HD. When I go into files, I don't see them anywhere! I have photos from messaging, but not the photos/videos that I took with my phone.

  • Not using the specified OPTIMIZER_MODE

    Hi, We set the OPTIMIZER_MODE on our 10g db as FIRST_ROWS_100. However there are a couple of queries from application are using the optimizer mode ALL_ROWS instead. If we run those queries alone, directly in TOAD or SQLPLUS the explain plan shows the

  • Flash using arrow keys to move between frames in an animation

    Hi, Im currently creating a calculator on flash and I would like to be able to move to the next part of the calculator (the next frame) by using the arrow keys on my keyboard This is my current code to move between the frames using a buttons. stop();

  • Insert the MDX Query Data into SSMS Table

    Hi, I'm using below query frequently on SSAS . select * from $system.discover_commands I want that when this query executed & If any output returns , then that output should be inserted into SSMS Table(OLTP DB) .