How to make a peace of code wait to be exicutes/loading bar

hello i would like to know how to make a peace of code wait like 3 or 4 secounds before being exicuted
<example>
System.out.println("Loading back up prefes...");
// wait 3 secounds
System.out.println("Loding hardware prefs...");
//wait 3 secounds
//...ect
</example>
im a novice java prgrammer and im looking to know how to do that kind of stuff

>
yeah i figured now one would help a noob>What?! No-one posted you the codes in that entire 6 minutes you waited patiently?
As a bonus though, if you don't get the solution in 30 minutes, it's free! ;-)

Similar Messages

  • How to make in the loop codes?

    How to make in the loop codes to have like my output(below)?
    For example:
    I am trying to figure out how to make them correct the way I want to have the output.
    String start = "02-01-08";
    String end = "02-29-08";
    Calendar a = new GregorianCalendar();
    while( start <= end ) {
              a.add(Calendar.DAY_OF_WEEK, 7);
              Date d = a.getTime();
              DateFormat df = new SimpleDateFormat("yyyy-MM-dd");
              String ss = df.format(d);
              System.out.println(ss);
    }The output:
    +02-01-08+
    +02-08-08+
    +02-15-08+
    +02-22-08+
    +02-29-08+
    Anybody know how to make it correct?

    artist_tech07 wrote:
    I am confused where is the answer in the doc that you gave me?Read my first reply and read the docs. Then read them again.
    And then re-read this
    To do what you want you need a start and end Dates. These you can compare in one numeric form or the other. For example by using getTime.
    Then during each loop iteration you will need to add *1 day (using the Calendar)* to the start date.
    I am telling you what methods to use. I have told you were you can find those methods. I have given you a link to the Calendar class API. All you have to do is put 2 and 2 together. Or at the very least make an attempt to do so.

  • How to make changes in company code global data

    Hi folks,
    Can some one suggest me how to make changes in company code global data (t code oby6). I want to assign 1 to co code > co Area which is blank.
    Thanks in advance

    Hi,
      actually if you want to change co code > co Area , it is under controlling (maintain controlling area), transaction code  OX06 .You change the assignment control and save it. It is automatic update you COmpany code global data.
    *give me a point if my answer solve your problem.
    Thank You.
    -akma-

  • When Creativ Colud is trying to install any programm the loading bar stops at 42% also if i am waiting some hours the loading bar remains at 42%

    When Creativ Colud is trying to install any program the loading bar stops at 42% also if i am waiting some hours the loading bar remains at 42%
    I tried to deinstall the creativ cloud and install it again but this doesn´t help.
    Can someone help me ? pls
    Sry for my bad english I am german. I hope you could understand me

    It could be that previous installs or your system is causing an error.  See if running the Adobe CC Cleaner Tool application on your system and running a fresh install fixes the issue.
    Start by restarting your computer, don't launch any applications, if applications automatically launch quit them all. This includes the Creative Cloud desktop application.
    To quit out of the Creative Cloud desktop application - refer to the following link: Creative Cloud for desktop FAQ
    You are now ready to run the CC Cleaner Tool – See the following page for information: Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    If that doesn't work let us know and also provide a bit of information about the system you are using. For example are you on a Mac or  PC, what operating system version (e.g. Windows 8.1, or OSX 10.10 etc). So we can review possible system related issues.

  • How to make a multiple request without waiting for a response in java ?

    A more specific question:
    how to make a multiple HTTP request without waiting for a HTTP response in java (using httpURLConnection)?
    Thanks

    Thanks for responding.
    But i want to make further request to the same resource URL. I want to reuse the connection, don't want to create a new connection for each of individual request.
    How can i do that using HttpURLConnection ?
    Thanks.

  • How to make copy of T-code VL02

    Hello All,
    I want to make copy of t-code VL02, in ZVL02.
    I want my copy transaction should behave in exactly same manner as of VL02.
    Kindly help
    Sachin Yadav

    Hello Sachin,
    The easiest way to create your own transaction from standard one is;
    1. Open transaction SE93.
    2. Goto 'Transaction code->Copy' or simply press Shift+F1.
    3. A pop-up box pops up, specify from transaction as VL02 and Transaction Code as ZVL02, and hit COPY, save as Local Object.
    4. VL02 is now copied to ZVL02. Further, open ZVL02 in Change mode.
    5. Go to 'Edit' -> Change transaction type or simply press Shift+F1.
    6. Choose last radio button; Transaction with parameters (parameter with transaction).
    7. Provide transaction as VL02 (must), screen no as 0101 (opt) and from module pool as SAPMV50A (opt), you can even specify to skip initial screen.
    8. Do remember to check SAPGUI for HTML, SAPGUI for Java and SAPGUI for Windows.
    9. Save and execute your Z transaction.
    Finally, Bob is your uncle.
    Regards,
    Zahack

  • Please teach me how to make the arrangement using Code Interface Node.

    How is what is necessary just to make arrangement (for example, Sine?Wave)
    using Code Interface Node? Please teach me a way.

    Try to get hold of the 'Advanced Analyis' library for labview. It contains VIs for doing FFT! No need to reinvent the wheel.
    If you can't get it and want to take the hard way, try to learn CIN programming by
    - reading the manual (no joke or cynism intended)
    - look for advice in NI's developer zone (www.ni.com/devzone) by using the search phrase 'CIN tutorial': you'll get several links which should be helpful in your case.
    - better than a CIN: try to use the DLL calling mechanisms and compile your C code into a dll. In order to learn dll intewrfacing for LabVIEW, follow the route explained under point 1 and 2 above...
    Good luck,
    Franz

  • How to make already written Encryption code in JDK 1.3  work in JDK 1.4

    Hi,
    We are using JCE to encrypt a number.The following code was written in JDK 1.3 and is now on the Live site.
              byte[] publicKeyBytes =new BigInteger("zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz", Character.MAX_RADIX).toByteArray();
         EncodedKeySpec spec = new X509EncodedKeySpec(publicKeyBytes);
    PublicKey key = KeyFactory.getInstance("RSA").generatePublic(spec);
    // Create Cipher
    Cipher desCipher = Cipher.getInstance("RSA/ECB/PKCS1Padding");
         desCipher.init(Cipher.ENCRYPT_MODE, key);
    We are now migrating to JDK 1.4. When I tried to execute the above lines in JDK 1.4, it came back with the following error
    "Cannot find any provider supporting RSA/ECB/PKCS1Padding"
    Then I downloaded and copied over the iaik_jce_full.jar in \j2sdk1.4.1_05\jre\lib\ext\ folder
    and added the following entry in \j2sdk1.4.1_05\jre\lib\security\java.policy
    security.provider.1=iaik.security.provider.IAIK
    Now, it has started giving me the following error:
    java.lang.ExceptionInInitializerError
         at javax.crypto.Cipher.a(DashoA6275)
         at javax.crypto.Cipher.getInstance(DashoA6275)
    Caused by: java.lang.SecurityException: Cannot set up certs for trusted CAs
         at javax.crypto.SunJCE_b.(DashoA6275)
         ... 39 more
    Caused by: java.lang.UnsupportedOperationException
         at java.security.cert.CertificateFactorySpi.engineGenerateCertPath(CertificateFactorySpi.java:155)
         at java.security.cert.CertificateFactory.generateCertPath(CertificateFactory.java:470)
         at javax.crypto.SunJCE_d.a(DashoA6275)
         at javax.crypto.SunJCE_d.a(DashoA6275)
         at javax.crypto.SunJCE_b.i(DashoA6275)
         at javax.crypto.SunJCE_b.h(DashoA6275)
         at javax.crypto.SunJCE_v.run(DashoA6275)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 40 more
    Can someone tell me where I am wrong and please write the steps I need to follow to make the above code work in JDK 1.4
    Bye

    in java 1.4 JSSE is default provider
    may be u need to use another provider (SunJCE)
    see JSSE :
    Note for People Implementing Providers
    The transformation strings used when SunJSSE calls Cipher.getInstance() are "RSA/ECB/PKCS1Padding", "RC4", "DES/CBC/NoPadding", and "DESede/CBC/NoPadding". For further information on the Cipher class and transformation strings see the JCE Reference Guide.
    PS u didnot need load jce. it is into j2se 1.4

  • HOW TO MAKE MY JAVA APPLICATION CODE INTO A EXE?

    I JUST FINISH WRITING A JAVA APPICATION code USING JCreator.
    there is no error in the program.
    Can someone provide me the steps to change it into a exe so that i can use the application in any computer. THANK YOU!

    You could use Google. I know, it means you need to do some research yourself. But an exe will only work on a Windows platform. Try looking for a tutorial on jar files instead.

  • How to make tableUI readyonly with code???

    hi All,
    I have a scenrio were i have two radiobuttons and two table UI(say table1 and table 2). my requriment is when i select  radiobutton1 , table1 has to be editable and table2 has to become readyonly. xxxxxx (please read forum rules)
    Sai Sharan Kalla
    Edited by: Armin Reichert on Jan 17, 2008 10:23 AM

    Hi
    1)Set the <b>keyToSelect</b> =<b>button_1</b> for Radio Button 1
    2)Set the <b>keyToSelect</b> =<b>button_2</b> for Radio Button 1
    3)Create a context value attribute of type String say <b>selectedRB</b> and bind that to the <b>selectedKey</b> property of both the Radio Buttons.
    4)Create a <b>Boolean</b> Value Attribute say "<b>ReadOnlyTable</b>" and bind that to the <b>readOnly</b> property of TableUIElement
    onSelect() // radio Button 1
    if(wdContext.currentContextElement().getSelectedRB().equals("button_1"));
    wdContext.currentContextElement.setReadOnlyTable(true);
    onSelect() // radio Button 2
    if(wdContext.currentContextElement().getSelectedRB().equals("button_2"));
    wdContext.currentContextElement.setReadOnlyTable(false);
    Best Regards
    Chaitanya.A

  • How to make a page that should be inside an iframe load up its parent page?

    Hello all
    Here's my dilema...
    I'm creating a site with page fragments that the user is able to view by having it load into an iframe. So far so good and it's all working perfectly well.
    The problem that I envisage is that, even with no-index robot meta tags, Google et al are almost certain to index these page fragments and proffer them in search results.
    So, my question to you is two-fold:
    1 - how can I make a page fragment load up the parent page should it be selected from a Google search result
    and
    2 - once the parent page is loaded up, how can I then make it load the selected content page into the iframe so that the user sees what (s)he is expecting to see?
    I'm imagining that it will require cookies and scripting, but I'm still at the (very) early stages of learning such stuff, so have no clue whatsoever on how to go about it!
    Any bright ideas / tutorials / sites I can nick code from / complete solutions that I don't have to pay for would be much appreciated.
    Thanks
    Peter

    AFAIK there's no practical way to do what you require.  Sorry.  This is one of the many downsides to Framed sites. It also makes bookmarking and printing pages difficult.  Not to mention user unfriendly from a web accessibility viewpoint.  Re-think your need for Iframes throughout an entire website.   The best websites use one complete page for each topic.  Index, About Us, Contact Us, etc...
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics |  Print | Media Specialists
    www.alt-web.com/
    www.twitter.com/altweb

  • How to make a page that should be inside an iframe load up it's parent page?

    Hello all
    Here's my dilema...
    I'm creating a site with page fragments that the user is able to view by having it load into an iframe. So far so good and it's all working perfectly well.
    The problem that I envisage is that, even with no-index robot meta tags , Google et al are almost certain to index these pages fragments and proffer them in search results.
    So, my question to you is two-fold:
    1 - how can I make the page fragments load up the parent page should it be selected from a Google search result
    and
    2 - once the parent page is loaded up, how can I then make it load the selected content page into the iframe so that the user sees what (s)he is expecting to see?
    I'm imagining that it will require cookies and scripting, but I'm still at the (very) early stages of learning such stuff, so have no clue whatsoever on how to go about it!
    Any bright ideas/tutorials/sites I can nick code from/complete solutions that I don't have to pay for would be much appreciated.
    Thanks
    Peter

    Actually, I did carefully choose this forum as being the most appropriate since my question, or rather what I imagine the answer might be, will involve things like scripting and/or cookies.
    Would that not make it "dynamic" enough to remain here?
    Thanks
    Peter

  • How to make mouseover scroll buttons attached to textarea with external loaded text ?

    Hi,
    I am working in Flash CS3 and AS3, and I'm not good in
    scripting.
    I want to make a dynamic textarea with loaded text from an
    external textfile, and then I want custom made arrow buttons to
    start scrolling the loaded text on mouseover (not click) andt stop
    scrolling on mouseout. Ala like in this webpage:
    http://boomjinx.com/
    The part with the loaded text is fine, but I can't manage to
    script the arrow buttons to do what I've just described. Even
    though I have searched the Internet for recipes I just find how to
    scroll loaded text on click or with a scrollbar. This problem is
    starting to drive me crazy!! Is there anyone that have a recipe for
    this??

    Here's one approach:
    First you need to create a dynamic mutline textfield that has
    autoSize properties set to handle a varying amount of text.
    Then you need to embed the font because you are going to use
    a mask over the textfield to define the viewable area of it.
    Then you will use the buttons to change the textfield's y
    property to move the textfield up/down vertically. You will
    probably need to use an ENTER_FRAME event handler so that a
    continuous hovering of a button will cause the textfield to
    continue moving until it either reaches one end or the other or
    when the hovering ends.
    Before you try to tackle that though, just make it so that
    hovering a button will cause the textfield to move up or down one
    increment of distance. Just take it one step at a time.

  • How to make a page within a page in the URL address bar?

    I have seen a lot of sites where the URL is something like this:
    http://www.MainSiteName.com/page1/page2.html
    How do you get that?
    All I can do is:
    http://www.MainSiteName.com/page1
    I tried putting "page2.html" in a folder within the MainSite Folder, naming the folder "page1", but all the pictures, formatting, etc. doesn't work for "page2.html".
    Any thoughts?

    I tried putting "page2.html" in a folder within the MainSite Folder, naming the folder "page1", but all the pictures, formatting, etc. doesn't work for "page2.html".
    Try putting page2.html in a folder named "page1" within the MainSite Folder (hint - make sure you use DW's Files panel to move this file into that folder).  Alternatively just save it there!  In other words, if what you did isn't working then you did something wrong.

  • I am running Mac OS X Lion 10.7.5 when I try to go to some sites(amazon,best buy, )to make a purchase the page seems to freeze.the loading bar goes so far and stops.whats up with that?

    my mmcbook sometimes freezes up it seems when I am trying to shop on the internet.the page will half load then nothing happens.I have wated for 15 min or more and still the load bar is approxamently half way or so ?

    Hello,
    It isn't the fw in Network you want o use or look at, that's for something completely different.
    My first suspect is the Power Adapter on the LaCie has gone.
    At the Apple Icon at top left>About this Mac, then click on More Info, then click on Hardware>Firewire, what is listed there?
    Reset the Firewire bus
    If your Firewire or USB isn't recognizing any device.  A solution which has worked for some whose hard drive became invisible in 10.4 was simply to follow these four steps to reset the Firewire/USB bus:
    1. Shut the machine down.
    2. UNPLUG the power lead to the computer and any firewire/USB drive or devices.
    3. leave it for 10 minutes.
    4. Connect back up and reboot.
    http://www.macmaps.com/firewirebug2.html

Maybe you are looking for

  • SAP IDES R/3 4.7e performance problem

    I have successfully loaded ides 4.7e. I found that it took a long time for me to open up an instance. I checked the physical ram available when SAP was running and found that I only have about 10-20% of physical RAM memory. Currently I have 1GB of RA

  • PDF access via a Website

    I've created a PDF form with a submit button to collect data.  The form works fine by it self, however I'm not able to get the form to work on the website.   The form appears and will allow you to fill in the blanks but when you click submit.... noth

  • TS3274 I recently traveled to Europe and purchased a one month subscription (as this was the only time amt available) and now am back...how do I go back to using 3G?

    I recently traveled to Europe and subscribed to the European 3G for one month (as this was the minimum amount of time to purchase).  I am back in states and it seems to be slowing my ipad down distinctly.  How do I unsubscibe to the European 3G?

  • Userexit for transaction F110

    hi, In F110 transaction, who ever creates the payment proposal , i want the same person to be approve that payment proposal this is my requirement. So i want the exit where i can incorporate this corresponding logic there.. Rgds., subash

  • How can i install the updated software when my pho...

    I am using nokia 206 dual sim. Today i find software update info and i download the updates but after download when i want to install in it need 5mb free memory .while my phone sun with 10mb and i have not keep any data in my phone. How can i install