Show progress bar before loading the applet or application

hi ,
My application size is large and take some time to load . Now i want that to show progress bar . how can i do this .Please Help me
sorry for my english.
Thanks

Do everything in a seperate thread. Create a progress bar in the main thread, then create a new thread for initializing your app. Once the init is done, hide the progress bar and make your app visible.

Similar Messages

  • Progress bar before loading a component

    hi,
    Can anybody send me the coding to show a progress bar before loading a component.
    thanks in advance.

    Hi,
    Here is one idea;
    http://www.cflex.net/showFileDetails.cfm?ObjectID=448
    Johnny
    Please rate answers.

  • Progress Bar before page loads......

    Hello -
    I'm able to make progress bars for loading images on the
    screen, but I'm having a hard time figuring out how to make one
    appear before the entire page loads. Do use the Loader component as
    the entire page and have my flash file load into it? I'm pretty
    sure there is an easier way by using actionscript, but my coding
    skills are average........
    Any help or suggestions on this would be greatly appreciated.
    I did do a search on this subject and found a few hints, but not
    everything.
    Thanks again.

    I tried this coding and for some reason I didn't see the
    progress bar before the page loaded. I'm assuming it has something
    to do with the "visible=0" line. I messed around with that, and
    still had no luck. See if I overlooked a small detail. Thanks
    Kglad.
    That url (in the code) will work if you want to try it.
    loadMovieNum("
    http://www.trance-state.com/equipment.swf",2);
    preloadI=setInterval(preloadF,100);
    function preloadF(){
    bl=_level2.getBytesLoaded();
    bt=_level2.getBytesTotal();
    if(bl==bt&&bl>0){
    clearInterval(preloadI);
    _level0._visible=0;
    } else {
    // put code here to update your progress bar and anything
    else you want using bl and bt
    }

  • Show Progress Bar while only on Page Load.

    Hi Experts,
    I want to show progress bar every time when page loads.
    Progress bar is coming on the page. but it is not going off after page is loaded.
    Below is the code which i added for the Progress bar.
    //written on Header Text of Page
    <script type="text/javascript">
    <!--
    function html_Submit_Progress(pThis){
    $x_Show('AjaxLoading');
    window.setTimeout('$s("AjaxLoading",$x("AjaxLoading").innerHTML)', 100);
    //-->
    </script>
    //written on footer text of Page
    <style> #AjaxLoading{padding:5px;font-size:18px;width:200px;text-align:center;left:20%;top:20%;position:absolute;border:0px solid #666;}
    </style>
    <div id="AjaxLoading" style="display:none;"><br /><img src="#APP_IMAGES#progress_bar.gif" id="wait" /></div>
    //called the function Execute on Page Loads 
    html_Submit_Progress(this);Progress bar is continuously showing on the page after page is loaded.
    I want only to show only page loads.
    Please help me .
    Apex Version : Apex 4.1
    DB Version : 10g
    Regards,
    Jitendra

    Hide the loader element when the page has loaded. Put this in the javascript section
    $(document).ready(function(){ $x_Hide('AjaxLoading'); });Or put it in the page load section
    $x_Hide('AjaxLoading');Or create a dynamic action which fires on page load, select a hide action, and use a jQuery selector to target '#AjaxLoading' as an affected element.

  • My computer will not start up. It powers up I get the gray screen with the apple and get the loading progress bar it loads to 25% and the screen goes black

    My computer will not start up. It powers up, I get the gray screen with the apple, then the loading progress bar starts loading to about 25% the the screen goes black. what can I try to get my computer up and running?

    Carolyn Samit wrote:
    iMac, Mac OS X (10.7.1)
    Use Command + R for Lion Recovery
    Try restarting, when you hear the startup tone hold down the Option key. Then choose the Recovery Partition.

  • Show Progress Bar while Accessing data from Server

    Hi,
    I need a Progress bar to be displayed when my application triggers database to backup, As the data would be large progress bar makes sense to display the time span.
    I need a progress bar in place to show the progress of the task,
    Can anyone suggest me how to do this? This should be shown when i backup my database from WPF.
    I have code written for server side and just need a progress bar and timer.
    Thanks,
    Shreyas M

    You could use a BackgroundWorker. There is a complete code sample available on MSDN here:
    https://msdn.microsoft.com/en-us/library/cc221403(v=vs.95).aspx. You do the long-running work, i.e. the actual backup, in the DoWork event handler.
    Note that you will need to report the progress (by calling the ReportProgress method of the BackgroundWorker) and calculate the total time it will take to complete the backup operation yourself.
    It might be easier to just display some "waiting" element and no progress bar during the time it takes for the operation to complete:
    <!-- replace this with any element like for example an Image -->
    <TextBlock x:Name="loadingElement" Visibility="Collapsed">please wait...</TextBlock>
    loadingElement.Visibility = System.Windows.Visibility.Visible;
    System.Threading.Tasks.Task.Factory.StartNew(() =>
    //call your backup method here (this code is being run on a background thread....
    .ContinueWith((t) =>
    loadingElement.Visibility = System.Windows.Visibility.Collapsed;
    }, System.Threading.CancellationToken.None, TaskContinuationOptions.None, TaskScheduler.FromCurrentSynchronizationContext());
    After all you probably don't know how long time it will take for the method to complete, right? If you want to display a ProgressBar, the backup method should report the progress somehow. If you just call a method and wait for it to complete, you have no
    idea of how long time it will take for the method to return. You will then have to estimate the actual time and then increase the value of the progress bar accordingly.
    There is no way to find out before hand exactly how long time it will take until a method returns so it is the responsibility of the (backup) method to report to the caller how long time it needs and how long time is left until it is done. Far from all API:s
    support reporting progress.
    As you see in the BackgroundWorker example on MSDN, you could call the ReportProgress once in each iteration of a loop but if there is no loop in your Backup method you better just display a busy indicator without a progress bar since you don't know anything
    about the progress anyway.
    Edit: You could of course also display a ProgressBar element with its IsIndeterminate set to True. Just replace the TextBlock and use the sample code above:
    <ProgressBar x:Name="loadingElement" IsIndeterminate="True" Height="50"/>
    Setting this property to true is useful when you don't know how long time the operation will take: 
    https://msdn.microsoft.com/en-us/library/system.windows.controls.progressbar.isindeterminate(v=vs.110).aspx
    Hope that helps.
    Please remember to mark helpful posts as answer to close your threads and then start a new thread if you have a new question. Please don't ask several questions in the same thread.

  • How to show progress bar in miniplayer?

    How to show progress bar in miniplayer? I play a lot of music podcasts and it would be very helpful if anyone could help me bring that feature back.

    i answered here:
    http://forum.java.sun.com/thread.jspa?messageID=9739423&#9739423

  • Can I edit the rpt file & change the datasource before loading the report?

    We are an ISV and our application has a lot of reports.  Our reports use a SQL Server database as the data source and each SQL Server at our customer sites has a different name.
    In our testing we have determined that ReportDocument.Load tries to connect to the SQL Server that is saved in the RPT.  If it can't fine the SQL Server saved in the RPT the load take about 60 seconds while it is waiting for the SQL Server Connection to time out.
    We are using the Visual Studio 2008 version of Crystal Reports.  This did not seem to be a problem with VB6/CR8.5.
    We would like to edit the RPT and change the data source to the appropriate SQL Server before we call ReportDocument.Load.
    Is it possible to edit the rpt file and change the data source before loading the report?
    Or is there some way to tell Crystal not to try connecting to the DB
    during the report.load?
    In our case we will NEVER use the data source that is saved in the RPT, we will always change the data source using ApplyLogOnInfo.
    Thanks

    HI Todd,
    You Can Not edit the report document before ReportDocument.Load() because if you dont load the report then you dont have anything to Edit
    But as far as changing the datasource is concerned you can change that at runtime.
    For changing the datasource following code will help you if both databases have a same schema :
    Code for changing the database
    ConnectionInfo crConnectionInfo = new ConnectionInfo();
    crConnectionInfo.ServerName = "SERVER";
    crConnectionInfo.DatabaseName = "DATABASE";
    crConnectionInfo.UserID = "USERID";
    crConnectionInfo.Password = "PASSWORD";
    // Loop through the ReportObjects in a report and find all the subreports
    foreach(ReportObject crReportObject in crReportDocument.ReportDefinition.ReportObjects)
         // Check the kind of the ReportObject, if it is a subreport
         // proceed. If not skip.
         if(crReportObject.Kind == ReportObjectKind.SubreportObject)
              // Get the SubReport in the form of a ReportDocument
              string sSubreportName = ((SubreportObject)crReportObject).SubreportName;
              ReportDocument crSubReportDocument = crReportDocument.OpenSubreport(sSubreportName);
              // Use a loop to go through all the tables in the main report
              foreach(Table crTable in crSubReportDocument.Database.Tables)
    // Get the TableLogOnInfo from the Table and then set the new
    // ConnectionInfo values.
    TableLogOnInfo crLogOnInfo = crTable.LogOnInfo;
    crLogOnInfo.ConnectionInfo = crConnectionInfo;
    // Apply the TableLogOnInfo
    crTable.ApplyLogOnInfo(crLogOnInfo);
    // Set the location of the database. This value will vary from database to
    // database.
    crTable.Location = "DATABASE.OWNER.TABLENAME" or crTable.Locations;
    The sample for doing this is available on support site.
    Thanks,
    Prasad

  • Apple logo pops up and there a grey loading bar underneath it and then once the bar is loaded the computer turns off. Help please

    My charger has a shortage in it and now everytime I start the computer the apple logo pops up and there a grey loading bar underneath it and then once the bar is loaded the computer turns off.

    Time to visit an Apple repair station.
    27" i7 iMac (Mid 2011) refurb, OS X Yo (10.10.1), Mavs, ML & SL, G4 450 MP w/10.5 & 9.2.2

  • I just turned on my Apple Macbook pro. Whenever, I turn it on, the progress bar comes with the Apple symbol and after few secs, it turns off by itself. Have tried to turn on the MBP number of times but the same result

    I just turned on my Apple Macbook pro. Whenever, I turn it on, the progress bar comes with the Apple symbol and after few secs, it turns off by itself. Safe mode on start up does not work either...any ideas?

    i tried it with both. i have since tried control+R, (https://discussions.apple.com/thread/3730727?start=0&tstart=0) which appears to be doing something but wont let me repair anything..

  • Pre-load the Cache during Application-Start Up

    Our requirement is to pre-load the cache during the application start-up most probably during Authentication/Authorization Service is invoked.
    We plan to load the data for other services from database into Coherence cache so that when user access that particular service he ends up hitting the Cache instead of database.
    Any pointers/suggestions on how to pre-load the cache during application start-up would be greatly appreciated. We are using Spring, Hibernate, Weblogic Web Services
    Regards,
    Bansi

    Hi Bansi,
    I were using following approach.
    First, we never use CacheFactory.getCache() in application code instead all instances of named cache were injected.
    On server side, I have an CacheInitializerBean which were starting cache preloading process (in separate thread). After preloading a special marker entry were put to the cache, indicating what data in the cache are consistent.
    When injecting named cache instance, we use a factory. This factory use CacheFactory.getCache() internally, but it check presence of marker object in cache an blocks until marker object will appear.
    Well in practice things are little more complicated but this is basic idea.
    Preload cache asynchronously and use marker to indicate completion of loading process.
    Hope this will help.
    Regards,
    Alexey

  • I am on dial up. Can I get the progress bar for loading a page back it helps me know how things are going.

    On previous versions of Firefox there was a progress bar when you were loading a page. It was in the lower right corner. How can I get it back? It would be very helpful if there was an add on for it for those of us still on dial up.

    Be aware that the loading indication that you see doesn't represent a real indication of what is happening. It just starts increasing till about 50% of the bar is filled and if it takes too long then the steps get smaller (half what is left as available space in the end or stop at all).
    There is also the Net tab on the Web Console that can show how long it takes to load content.
    *Firefox > Web Developer > Web Console

  • Show progress bar while module loads

    I have a TabView where each tab is a module. One of the
    modules has a lot of child components and when I click to activate
    that tab - it takes 2-3 seconds to load. During this time OSX shows
    the beach ball.
    Is it possible for me to show a loading progress bar instead?
    Should I be pre-loading all the modules when the application loads,
    or at some other point? If so, how do I do this?
    Any suggestions would be appreciated.

    Hey Jason,
    I'm not sure who moderates, but I can send you in the right
    direction.
    Short answer: Look around for Asynchronous Flex demos
    Long answer:
    The interfaces locks up (beach ball/hour glass) because the
    main application 'thread' is busy with the task you asked of it.
    This can, in many different languages, cause a freeze. Javascript,
    Native Mac or Windows applications, apparently Flex too.
    Running one task at a time is considered a synchronous
    (serial) request. What you need to do is make an asynchronous
    (parallel) request. In the web world, that's the 'A' in Ajax. By
    making asynchronous requests, you free up the main 'thread', while
    a separate worker thread is off completing the task. This keeps
    your interface responsive.
    I think that leads to event listeners.. Send off a background
    request, but listen for it to complete. Link the listener to a
    second piece of code upon successful completion.
    I wish I could get into more detail, but I'm not a Flex guy..
    hoped that at least helped gel the idea.
    -dp

  • Feature Request - Bring back the show progress bar

    Just in case Verizon is looking for suggestions here, can you please bring back the progress bar that was behind the start/end times in the guide? In the current guide, there is no quick graphical cue to represent how much time has progressed in the selected show. Yes, you can look at the start, end, and current times, but when browsing through shows that start/end at different times, it really slows browsing down.
    I've uploaded two images to illustrate the issue.
    The first image below is a screenshot of the v1.9 guide. The second image is a mock-up that shows the feature that I am talking about. Note the progress bar for the currently selected show in the guide that appears behind the start and end times ("7:35 AM - 9:30 AM" on the right side of the screen, in the middle).
    This was available in the previous guide, but was omitted in 1.9. It is a very useful feature. Please bring it back.
    (NOTE: The white progress bar at the top of the screen does NOT represent the progress through the show selected in the guide. It just shows the current time.)

    shadow715 wrote:
    The first image below is a screenshot of the v1.9 guide. The second image is a mock-up that shows the feature that I am talking about. Note the progress bar for the currently selected show in the guide that appears behind the start and end times ("7:35 AM - 9:30 AM" on the right side of the screen, in the middle).
    This was available in the previous guide, but was omitted in 1.9. It is a very useful feature. Please bring it back.
    (NOTE: The white progress bar at the top of the screen does NOT represent the progress through the show selected in the guide. It just shows the current time.)
    I'm sorry, but I just do not see the benefit of the elapsed time thing you propose. What difference does it make to see some kind of indicator how far into the program you are? You can't change where you are, you are there, period.
    But if you really, really want to know:
    1) Just look at the start time and end time shown in the current program in the middle, and look at the TOD shown at the top, and estimate where you are.
    - or -
    2) Hit the Info button once and see a bar that definitively shows how far in you are.
    Could you please explain why you think having that feature is so useful? I just don't see it.
    Thanks.
    Justin
    FiOS TV, Internet, and phone user
    QIP7232, QIP7100-P2, IMG 1.9A
    Keller, TX 76248

  • Cannot load the applet

    Hello.
    I am trying to use the j2re-1_4_1-win.exe, but it will not load all the way up. A new window will open, but the graphics do not load entirely, including the text fields, rendering the applet useless. I had my pc debugged, tried installing and uninstalling java ad nauseum, but still cannot run the applet. The progress bar will show that the applet is Done loading, but I never get to use it. I have tried using the applet on other machines and succeeded. Any advice? Anyone?

    Determine what the actual error is. The Java Console will have this. In IE, use the Tools menu.

Maybe you are looking for