Showing Progress of DB App

Hi,
My application is doing something along the following lines......
- Reads a number of records from a database table into a result set using SELECT statment.
- Do some processing on the records....
- Write them back to another database.
-> Repeats with more tables.
I want to represent the state of the application using JProgressBar.
Is it only possible to show the progress through the number of tables (i.e. calculate the value for the JProgressBar by 'current table x / total tables y', or can I show this more accurately by monitoring the number of records to be read and written?
I hope this is clear.
Thanks!

To do that, you would have to count the number of records to read/write (SELECT COUNT) before you select themm and use that in your calculation. This may make your app a little slower, but from my experience, users generally prefer watching a bar do something for X time rather than have it finish in X-n time.

Similar Messages

  • 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.

  • Show Progress During Lengthy Multiple Procedures Executing

    I have a C# winform app that on a button press event will call about 8 different procedures taking close to 10 minutes to perform the full cycle of events.  I see that you can use a Background Worker to display a progressbar and display text above the
    progress bar, but is their a way I can display when each different procedure is entered?  For example, possibly show in a BackgroundWorker Something like this: (maybe customize the message a little bit more but this would get the point across and at least
    show progress)
    Procedure 1 Starting 03/25/2015 10:01:08 p.m....
    Procedure 1 Finished 03/25/2015 10:02:25 p.m...
    Procedure 2 Starting 03/25/2015 10:02:28 p.m...
    Procedure 2 Finished 03/25/2015 10:04:30 p.m...
    Procedure 3 Starting  03/25/2015 10:04:50 p.m...
    Procedure 3 Finished 03/25/2015 10:06:15 p.m...

    This is exactly what the ProgressChanged Event is for:
    https://msdn.microsoft.com/en-us/library/system.componentmodel.backgroundworker.progresschanged(v=vs.110).aspx
    It would be greatly appreciated if you would mark any helpful entries as helpful and if the entry answers your question, please mark it with the Answer link.

  • How do you use the status column to show progress of a step in an OI?

    Hi everyone,
    I was just doing a little browsing and noticed the picture at the top of the http://www.ni.com/teststand/ web page.  It shows a progress bar in the status column of a step being executed.
    I have several applications where this would be a very useful addition.  I use the progress bar at the bottom of the OI and sequence editor regularly, but would very much like to show progress of an individual step in the status column.  It would be particularly useful where you turn the tracing off into a sequence but want to see that progress is being made through the steps within it...
    Anyone know how to do this?  I have been unsuccessful in trying to find examples....
    Cheers,
    Barry

    James,
    I believe your answer to Bazza's question also applies to my situation, but I wasn't sure so I thought I would ask.  I am working on a custom TestStand operator interface in LabVIEW using the UI controls.  I would like it to behave as closely as possible to the old Test Executive.  Specifically, I would like the operator to be able to see the contents of the sequence file, interact with them, and see the execution results all in the same view.  Is that possible?  In other words, can I display and interact with a sequence file (display the sequence steps, run selected steps, loop selected steps, etc.) and display the sequence's execution results (including tracing) in the same SequenceView control or do I have to use 2 of them?
    Thanks,
    Ryan Wright

  • Problem in showing progress image and status message.

    Hi, friends,
    I have file upload program in which when user uploads the file
    i want to show animated progress file
    i.e. ( circle.gif )
    when upload finishes it should display message :
    File < file name > uploaded successfully.
    How do i achieve it ?
    since when i am uploading file , image is displayed but
    due to upload process image is hanged up and did not showing
    animation.
    Kindly solve the above problem.
    i post my some code here.
    ============================
    javascript part is here
    function showProgress()
            document.getElementById('imgprogress').style.display = "";
         document.getElementById('imgprogress').style.visibility="";
        function completedupload()
         document.getElementById('progress').style.display = "";
         document.getElementById('progress').style.visibility="";
    <div id="imgprogress" style="display:none; visibility:hidden;"><img src="images/circle.gif"></div>
                                                      <div id="progress" style="display:none; visibility:hidden;"><%= status %></div>
                                                      <div id="" style="display:none; visibility:hidden; "><img src="images/circle.gif" width="21" height="21"></div>since it is not working good.
    please provide me good solution for this.
    i need exactly following :
    when user gives big file to upload it shows progress as animated image
    and upload process finished up, it should remove image and display status message like " File Upload completed. "

    I know this is an old topic, but I found the solution and thought I'd share it! By default, a JList only has 1 visible row. To allow the number of rows to expand dynamically, throw this in.
    this.imageList.setVisibleRowCount(-1);My code looks like this. It centers each image and centers the text under the image and wraps images horizontally.
        ListCellRenderer renderer = new ImageListCellRenderer();
        this.imageList.setCellRenderer(renderer);
        DefaultListModel listModel = new DefaultListModel();
        this.imageList.setVisibleRowCount(-1);
        this.imageList.setLayoutOrientation(JList.HORIZONTAL_WRAP);
        this.imageList.setModel(listModel);and the renderer
    public class ImageListCellRenderer extends DefaultListCellRenderer { 
      public Component getListCellRendererComponent(JList list, Object value, int
          index, boolean isSelected, boolean hasFocus) {
        JLabel label = (JLabel)super.getListCellRendererComponent(list, value,
            index, isSelected, hasFocus);
        if (value instanceof File) {
          File imageFile = (File)value;
          String path = imageFile.getAbsolutePath();
          Image image = Toolkit.getDefaultToolkit().getImage(path);
          image = image.getScaledInstance(100, 100, Image.SCALE_DEFAULT);
          ImageIcon imageIcon = new ImageIcon(image);
          label.setIcon(imageIcon);
          label.setText(path.substring(path.lastIndexOf(File.separatorChar) + 1));
          label.setVerticalTextPosition(SwingConstants.BOTTOM);
          label.setHorizontalAlignment(SwingConstants.CENTER);
          label.setHorizontalTextPosition(SwingConstants.CENTER);
        else {
          label.setIcon(null);
        return label;
    }I need to work on this to improve performance, but it works!

  • I have an iPod Touch but I currently don't have a PC.  I found an app that would allow me to connect to my network drive and I was able to transfer music files to it.  These files do not show under the Music app and I can't find any way to do it.

    I need help from some Apple people. I have an iPod Touch and I wanted to load it up with some fresh music but I currently don't have a PC. I found an app that would allow me to connect to my 2TB network drive directly and I was able to transfer a bunch of music files to the iPod. Unfortunately, these new files do not show under the Music app and I can't seem to find any way to convince the iPod that they are music. I can play them through the file manager only. Android doesn't have this problem, any music I put on my phone is recognized as music and can be played through any of the music apps. Am I missing something or is Apple to inflexible to handle this?

    You can't. The only way to get songs in the Music app is to sync from a computer or to download from iTunes.

  • Why do my App Reviews and Ratings don't show up in the App Store?

    Hey everyone..
        I've been having trouble for at least a year now where whatever Review I write does not show up anywhere. I have done a lot of research on this subject prior to opening this Thread here, and have obvioudly not found anything on the subject.
      I am aware as I read somewhere that for a review to display,  the app needs to have at least 5 reviews, (which I also find obscure). We are talking about apps that have loads of reviews already posted.
    It's needless to say HOW annoying it is to spare PRECIOUS time to review an app, (whether for positive, negative, neutral), and find out that it just went to waste. I never had this problem till about 1 year ago, where I noticed that no matter where I wrote a review, (from my macbook, within the store, from my iPad mini, from my ipod touch), it just NEVER showed up even after days or even weeks when I checked back.
    Before I start wrting the review it asks for my Apple store password, (so far so good), after I'm done with the rating and Review, I press submit and .....nada....I don't get a confirmation or something that will say it's under Review from the App store. When I try to repeat the process, get out of the app I'm trying to review, and go back to write my Review, what I wrote is just simply sitting there, together with my Rating as if nothing happened.
      I am aware that others have written before about this issue to no avail, now can SOMEONE please put an end to this MADNESS and answer one and for ALL the very, lately, disappointed, Apple fans that keep accumulating....? Can Apple give us an OFFICIAL explanation/solution to this very annoying issue? Or does it prefer to conveniently leave it as is for some "obscure" reason...?
    Any replies will be more than appreciated...
    Cheers

    Ok everyone...
      So, after going through a hundred steps to manage and contact Apple Support via e mail, I sent them an e mail and got a reply saying that they will get in touch with me within 48hrs. Today, (24hrs), I received a reply telling me that they understand my frustration and has been an "on going issue". He wanted alse to verify what my nickname was for my the Reviews I had given. 
       After revisiting for the millionth time my iTunes store Account, to go to settings, and manage Reviews, (which is what I always did to check and see if they show up), to find out if my nickname had changed for some reason, I pressed on some older reviews, (like from 2010, which I remember had shown up), to check out my nickname.
      I verified my nickname being the same as I remember. The 2nd app I checked which I knew I had reviewed, but from last year, was not showing. So, it dawned on me to press the “All Versions” options on the reviewing section of the app…and…voila….there it was. So, I took it further and looked at other even more recent reviews I had written and I also found out that they showed under the “All Versions” option.
       Then I checked my last 3-4 that I did within the last few months that I knew did not show up and the apps also had no Upgrades that I knew of. Then, I discovered the sorting options , (on the right side), for showing Reviews. It seems like that it automatically sorts them out by “Most Helpful”, (which is odd), so I chose “Most Recent”…and….voila again, my review was beautifully sitting there with my nickname and everything…I couldn’t believe it.
      Now I’m going to try and find if there is a way to have the “Most Recent” always as default…is there…? But it makes me wonder if all of you guys have the same problem and if the solution is indeed the same, (sorting out by most Recent or whatever other option will make your review show up). Give it a try and see how it works out for you. Please take the time to post your findings here. It would be helpful for everyone else as well. I wonder why Apple has not picked up on this?
    I have to give it to them for the quick reply though..(mind you my e mail was quite.."angry"..).
    Thanks again for reading..

  • I can't update apps on my IPhone because my e-mail address is different from the one that shows up on my apps update screen

    I can no longer update my apps on my IPhone 4 because I have a new e-mail account. When I try to update with my Apple ID the e-mail that shows up on the screen is my old e-mail address and since I once shared that with another person I no longer know the Apple ID for that particular e-mail.
    How do I change the old e-mail address and keep it from showing up on my apps update screen? I have deleted the old e-mail account from my phone.
    Thank you

    deena102 wrote:
    I can no longer update my apps on my IPhone 4 because I have a new e-mail account. When I try to update with my Apple ID the e-mail that shows up on the screen is my old e-mail address and since I once shared that with another person I no longer know the Apple ID for that particular e-mail.
    Anything Downloaded with a Particular Apple ID is tied to that Apple ID and Cannot be Merged or Transferred to a Different Apple ID

  • My iPad 2 shows I have 7 apps that need to be updated and when I go into my App Store it won't pull up anything for my updates how can I fix this????

    My iPad 2 shows I have 7 apps that need to be updated and when I go into my App Store it won't pull up anything for my updates how can I fix this????

    It seems Apple is having some issues at their end. There have been hundreds of posts on the forum with the same problem.

  • 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

  • Hi all, complete novice to this so step by step answers much appreciated please. thank you. Ibooks app showing in my itunes apps but wont sync with my ipod touch - have tried deleting app in itunes then re-downloading but still wont sync, any ideas please

    hi all, complete novice to this so step by step answers much appreciated please. thank you. Ibooks app showing in my itunes apps but wont sync with my ipod touch - have tried deleting app in itunes then re-downloading but still wont sync, any ideas please?

    See if this helps
    iBooks: Viewing, syncing, saving, and printing PDFs on iPhone, iPad, and iPod touch

  • Games I bought years ago, Texas Holdem and iQuiz will no longer transfer to my iPod Classic. They show in my computer "Apps" but they won't transfer. They no longer show that they can be "Re-Downloaded" from "Previously Purchased" they don't exist there.

    Games I bought years ago, Texas Holdem and iQuiz will no longer transfer to my iPod Classic. They show in my computer "Apps" but they won't transfer. They no longer show that they can be "Re-Downloaded" from "Previously Purchased" they don't exist there.

    Have you seen this article?
    Syncing and troubleshooting iPod games
    B-rock

  • My apps no longer show up on the apps list on creative cloud window on my computer

    my creative cloud window does not show any of my apps since updating it over a month ago.  Help.  I don't want to download a second whole app on my computer, I just want the updates.

    Help for Download & Install & Setup & Activation
    -FAQ http://forums.adobe.com/community/download_install_setup
    -Chat http://www.adobe.com/support/download-install/supportinfo/
    or
    CC desktop lists applications as "Up to Date" when not installed
    -http://helpx.adobe.com/creative-cloud/kb/aam-lists-removed-apps-date.html
    or
    http://helpx.adobe.com/x-productkb/policy-pricing/membership-subscription-troubleshooting- creative-cloud.html

  • Is it possible for deleting all the apps from the appstore which are showing up in the apps not on my phone section. Before I was able to delete them from itunes but now I am not able to find that option.

    Is it possible for deleting all the apps from the appstore which are showing up in the apps not on my phone section. Before I was able to delete them from itunes but now I am not able to find that option.

    You can hide them via your computer's iTunes : iTunes Store: Hiding and unhiding purchases - Apple Support
    The 'x' might not show on their top left corner (it might be invisible), but clicking where it should be should hide the app.

  • HT4137 I have just bought an iPad3. I have connected it to my computer.It has synched  but many of the apps I have on my iPad 1 are not appearing despite showing installed in the app store. How do I restore them?

    I have just bought a new iPad. I have connected it to my powerbool and snched it but many of the apps on my iPad1 are not appearing on the new iPad and showing installed in the app store. Please can anyone help me with this?

    Thanks for your advice, I went to the apple shop today for a face to face meeting with a tech and he checked everything and could not figure out why I was having this problem so we decided to give up on that account and create a whole new one for me using a different email address.
    Now I can download apps on both my iPhone and ipad2.
    If anyone is reading this in Brisbane Australia go to the Chermside apple shop and ask for Wade. He was fantastic!
    Jan

Maybe you are looking for

  • A Problem with Backup in Elements 10

    Yesterday, while cleaning up my 47,000+ image catalog getting ready to convert it into v12, it re-opened in File Manager mode and at a specific XML document.  That was the first timeI had ever had PSE open at an XML file (nothing showing in the well

  • How to change default zoom in outlook 365 permenently

    I use the preview/reading pane in outlook 365 and I can see the slider bar at the bottom where I can adjust the zoom. Problem is I have to enlarge it each time for every email I want to read. How can set this to something other than 100% and make it

  • Web Site is 'broken'

    I am trying to shop for accessories for my cell phone. But vitually every click brings me to the "Account Owner Features" page and then from there back to MyVerizon home page. I CAN NOT SHOP. I tried everything I could think of to get to a page where

  • Why has apple dumbed pages down.

    why has apple dumbed pages down. It is now useful for school kids and maybe party invitations, not for professional work. Now I have to use Word to do my work. This is very disappointing. How long will it take for them to realize that some of us depe

  • Different RGB in Photoshop Elements 10 and 11

    I get different RGB values for the same photo in Photoshop elements 10 and 11 tough I have the same settings, why is this? Is there any way I can fix this?