URGENT: progress bar update problem

Hi,
I have the following problem: I have a JWindow that displays as a Splash screen at the start of my application. On that I have a progress bar that updates upto 60% (there is no task associated with it, I simply create a thread that does this). In the main thread, i wait for this thread to complete and then display a login dialog box on top of the splash screen. At this time, the progress bar is not increasing.
After logging in correctly, I wish that the login dialog box be disposed, and i should be able to see the progress bar reach completion, after which i want a JFrame to be displayed with a lot of components, and after this JFrame is displayed, i want the splash screen to be disposed.
However, the progress bar updates itself properly till the login dialog is displayed. when i click enter on the dialog box, although i have called dispose, the part of the dialog box over the splash screen reamins visible, and the progress bar is no longer updated. I have printed System.out.println statements in the run part of the thread doing the update, and this shows that the progress bar value goes on to reach 100. but the GUI is not updated.
Can any1 explain why this is happening? Any help inthis matter would be highly appreciated... Pls reply URGENTLY!!! i've already spent three days looking into this!!!
Thanks...
Shefali Panchal

Caution with using threads to update the display -
look at the Swing __utility__ class methods, I seem to remember that
there are 2 methods in which you pass a thread instance
(which can contain display update calls)and this is called and maintained within the event despatch thread - this should mean
that display updates are done correctly.
Refer to Swing documentataion with regard to utility methods
Hope this is of help

Similar Messages

  • ITunes problems after upgrading - progress bar "updating library"

    after upgrading iTunes to the latest version I open iTunes and a progress bar appears "updating library". After a few seconds it stucks and I do not get a response at all. I have to cancel the program in the Windows Task Manager. Any help is greatly appreciated. Cheers

    You might try rebooting your computer. Select Shutdown and let the computer turn off. Then start it up again and see if the problem is corrected.

  • Progress bar update issue

    I have a flash program written in Action Script 3.  It worked fine on XP but I recently moved to windows 7 and now I have problems.  It is a simple file upload program.  In Windows 7 the progress moves really fast to 100% like it is reading a buffer and not what is being sent over the internet.  Once it reaches 100%, the program hangs (sometimes hangs the browser) until the file has finished uploading.  The program still works in XP so is this a known issue with Windows 7?  I haven't found any other problems with this online anywhere.
    Thanks

    Thanks for your response.  It isn't Adobe Flash that is the problem, I think that it is the way the flash program is interpreted in IE/Firefox on Windows 7.  The line of code I use to update the progress bar is progressBar.setProgress(event.bytesLoaded, event.bytesTotal); (after I have set a progress handler)  Like I said, the same flash application runs great on Internet Explorer/Firefox on XP but not on Windows 7 and my flash player is up to date.  Also, on Win7 you can't run IE in compatibility mode either...
    Thanks for you time.

  • Copying multiple files (1000+) - Progress bar update is slow! Any ideas?

    When I copy 1000+ raw files from any drive to another it takes a long time before the copy progress bar shows up, and some times it just takes a long time before the progress is updated. When it is updated, it has already copied alot of the files. Quite annoying, because you don't really get if it has begun copying, if it's hanging or what... Seems to me that the new per-file progress bar takes up too many ressources!
    Btw I'm not on a slow system. 2.5 Quad core i7 MBP, 16GB RAM, OCZ Vertex 3 SSD...
    Anyone got any ideas on this?

    The progress bars have always been wonky. Can't judge a thing by them.
    File feedback here.

  • Progress Bar display problem on Win_XP Win2000 operating systems

    Dear All,
    I have some month-end, year-end and other processes. I have facilitated the user by putting 'Progress Bar' to show the progress status at every transaction. I have used simple logic by increasing the width of a colored item gradually. Anyway it is working perfectly fine. But now I came to know that all the computers having other than Windows98 operating system are unable to show the progress if they move mouse a little of press any key from the keyboard.
    On the other hand on Win98 PCs, users are touching the mouse sometime using other application and still able to see the progress of the running process.
    I could not figure out the problem can anyone help me in this regard. Thanks
    Zia

    I have a similar problem. Someone please point out what is the specific solution ! Thanks in advance.

  • URGENT pROGRESS BAR ERROR

    Hi huys,i am a 2nd year Computer Programming Student.we have to make a game where there are two players.a random no is generated to get the progress bar to 100.the player who reaches 100 first wins the game
    i can the random part right,but it is stuck on a number.it does not go all the way to 100
    please look at my code if possible
    import java.awt.BorderLayout;
    import java.awt.Container;
    import javax.swing.BorderFactory;
    import javax.swing.JFrame;
    import javax.swing.JProgressBar;
    import javax.swing.border.Border;
    public class ProgressSample {
    public static void main(String args[])
    JFrame f = new JFrame("JProgressBar Sample");
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    Container content = f.getContentPane();
    JProgressBar progressBar = new JProgressBar();
    double val = (Math.random()*10)+1;
    int val2 =(int)val;
    // int val2 = Integer.parseInt(val);
    int counter = 0;
         counter = counter + val2;
    for(int i = 100;i >= 0;i++)
    progressBar.setValue(counter);
    progressBar.setStringPainted(true);
    Border border = BorderFactory.createTitledBorder("Reading...");
    progressBar.setBorder(border);
    content.add(progressBar, BorderLayout.NORTH);
    f.setSize(300, 100);
    f.setVisible(true);
    Thanks
    Lisa

    Spot the difference -
    http://forum.java.sun.com/thread.jspa?threadID=671082&messageID=3922924#3922924
    http://forum.java.sun.com/thread.jspa?threadID=671079&messageID=3922913#3922913
    http://forum.java.sun.com/thread.jspa?threadID=671071&messageID=3922883#3922883
    http://forum.java.sun.com/thread.jspa?threadID=670979&messageID=3922285#3922285
    http://forum.java.sun.com/thread.jspa?threadID=670980&messageID=3922291#3922291

  • URGENT : Progress Bar component start showing too late

    I'm using the ProgressBar component in a large movie
    containing a lot of objects, images ecc ...
    In the first frame i've put a ProgressBar component managed
    by the following ActionScript code :
    stop();
    listener = {path:this};
    listener.complete = function()
    this.path.play();
    pr_main.mode = "polled";
    pr_main.source = _root;
    pr_main.addEventListener("complete", listener);
    where pr_main is the instance name of the ProgressBar.
    Well, when i try to simulate Download, i have to wait like
    4-5 seconds for the bar to appear and when it happens, the bar
    shows that the loading is already at about 50%, and after it starts
    to work correctly.
    Why i'm experiencing this behaviour ?
    Thanx to all

    >>In the first frame i've put a ProgressBar component
    That's the problem. To use the component is has to first
    fully load.

  • Problem with the progress bar in swings

    Hi all,
    I need to show a progress bar till another window opens up in swings.Below is the code i used to show the progress bar.My problem is i am able to get the dialog box where i have set the progress bar but i cldnt get the progress bar.But after the specified delay,another window gets loaded.
    Plz tell me how to show a progress bar till another window loads.Any help is greatly appreciated :-)
                    //Show the progress bar till the AJScreens loads.
                    // Create a dialog that will display the progress.
                    final JDialog dlg = new JDialog(this, "Progress Dialog", true);
                    JProgressBar dpb = new JProgressBar();
                    dpb.setVisible(true);
                    dpb.setStringPainted(true);
                    dpb.setBounds(70,60,150,10);
                    dlg.getContentPane().setLayout(new BorderLayout());
                    dlg.getContentPane().add(BorderLayout.CENTER, dpb);
                    dlg.getContentPane().add(BorderLayout.NORTH, new JLabel("Progress..."));
                    dlg.setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);
                    dlg.setSize(300, 75);
                    dlg.setLocationRelativeTo(this);
                    // Create a new thread and call show within the thread.
                    Thread t = new Thread(new Runnable(){
                        public void run() {
    System.out.println("atleast comes here --->");
                            dlg.show();
                    // Start the thread so that the dialog will show.
    System.out.println("Gonna start the thread --> ");
                    t.start();
    System.out.println("Thread started --> ");
                    // Perform computation. Since the modal dialogs show() was called in
                    // a thread, the main thread is not blocked. We can continue with computation
                    // in the main thread.
                    for(int i =0; i<=100; i++) {
                        // Set the value that the dialog will display on the progressbar.
    System.out.println("i ----------> "+i);
                        dpb.setVisible(true);
                        dpb.setValue(i);
                        try {
                            Thread.sleep(25);
                        } catch (InterruptedException e) {
                            e.printStackTrace();
                    // Finished computation. Now hide the dialog. This will also stop the
                    // thread since the "run" method will return.
                    dlg.hide();regards,
    kani.

    Yeah i have tried that also.But no hope.
    My problem is am able to get the dialog box but not the progressbar,after the specified delay the dialog box goess off and the new window loads up.
    the progress bar is not getting displayed..that is my problem..
    can u plz help me out.

  • Two progress bar joined or two diferent scale range in one progess bar!

    Hello guys,
    I try to get 2 diferent scales range in one progess bar. But I cant get it.
    So, I tried to join 2 progess bar putting the fit scales to look similar like I want to. One from 0 to 100 and the second from 100 to 300.
    In case I need to use 2 progress bar, the problem is the second start with mark in the start, I would like the second to be totally clear from 0.
    Is it possible?.
    Regards.
    Solved!
    Go to Solution.
    Attachments:
    progress_bar_joined.vi ‏10 KB

    Alternatively, you could set the Fill Style.  0 is no fill while 1 is Fill To Min.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    progress_bar_joined(1).zip ‏8 KB

  • TS3694 hi i recently updated into ios 7.0.4 now i want to fully restore my ipad to resell but when i restore it it got stuck with apple logo and progress bar with 45% completed as firware file is downloaded using ipad 4 wifi itunes 11.3.8

    hi i rescently updated my ipad 4 in ios 7.0.4 and for resell purpose i want to restore my ipad via itunes but it got stuck at apple logo and progress bar of 45% completed i tried it 50 times but it stuck on that exact point for hours i cant able to restore it and had no errors it just like freezes at one point i also uses dfu mode but got stuck at same problem using windows 7 32 bits itunes 11.3.8 ipad 4 wifi please help

    My iPhone 5 wouldn't start after I turned it off a few minutes after writing this. It went into recovery mode and I had no choice but to connect to iTunes on PC and restore.
    I restored to factory setting first, just to validate my phone was okay. For a second consecutive iOS update, the  iPhone 5 did not update smoothly while connected to PC and iTunes - I had to retry two times before the progress bar for the update showed. (The exact same problem with the restart occured when I updated to 7.0.4.)
    The good news is that I was ultimately able to restore the iPhone 5 to factory settings while running iOS 7.0.6. I did have a backup from about a month ago lying around and was able to successfully restore with that as well, so the damage done is almost negligible since I had my contacts, notes, mail, etc. backed up to iCloud.
    Once I completed both restores, the sync with iTunes worked fine.

  • Each morning I get a notice to download a Firefox security update. When I click install, I get a message saying Installing Firefox and Connecting to the update server. It never connects; the progress bar just spins all day.

    Since shortly after installing Firefo 5 I get this message every time I start Firefox. A dialog box comes up that says Installing Firefox, followed by a spinning progress bar, followed by "connecting to the update server." It never progresses past this point and will stay this way indefinitely until I close the Window.
    Also since installing Firefox 5, the program crashes at least once or twice a day and I have to quit and restart. Don't know if there's any relationship between the two issues.

    If you have problems with updating or with the permissions then easiest is to download the full version and trash the currently installed version to do a clean install of the new version.
    Download a new copy of the Firefox program and save the DMG file to the desktop
    * Firefox 5.0.x: http://www.mozilla.com/en-US/firefox/all.html
    * Trash the current Firefox application to do a clean (re-)install
    * Install the new version that you have downloaded
    Your profile data is stored elsewhere in the Firefox Profile Folder, so you won't lose your bookmarks and other personal data.
    * http://kb.mozillazine.org/Profile_folder_-_Firefox

  • Firmware update progress bar appears and computer won't start up

    Hi,
    I am on OS X 10.6 (the latest developer build, whose build number I can't remember and can't look up because my computer won't start up) and this morning when I tried to start up my computer, it chimed, the apple appeared but then a grey progress bar (like the one that appears during a firmware update) appeared at the bottom of the screen along with the customary spinner. This progress bar didn't update and after 10-ish seconds, it disappeared and left just the spinner. I left the computer in this state for 4 hours and nothing happened. It still starts up in single user mode (but I can't seem to get Open Firmware mode to load) and it starts Windows XP on another partition of my main HD.
    When I start it in verbose mode, it says that my catalog B-tree has keys out of order and it is unable to repair them. Also, I get an error message from launchctl: "Bug: launchctl.c:2033 (23930):17: auditquickstart() == 0". Then later on it tells me to convert a few system plist files to launchd (all in the /etc/mach_init.d/ folder). The very last line says "launch_msg(): Socket is not connected".
    I would rather not re-install the system, but if I have to, I guess I will. I appreciate any light that anyone can shed on this problem.
    Thanks,
    Kyle

    Yes, they (the third-party utilities) both come on bootable DVD's. As I mentioned, since Snow Leopard was just released in its final version, the developers may be in the process of releasing updates.
    Your situation is likely to be a case where the data corruption issue already existed before installing Snow Leopard, and the installation process made the problem more apparent (because something critical was installed where it was affected by the data issue).
    It is a good idea to run +Repair Disk+ in Disk Utility on the startup volume before installing a major system update. Actually, I do it before any system-level update.
    You should also have a backup (at least of your personal data if not the entire volume), in case something bad happens during a major system upgrade. If you were using Time Machine, the easiest recovery would be to reformat the internal drive and use the Time Machine complete volume restore utility to restore the volume back to the date/time state just before you installed Snow Leopard. Then, after restarting from that restored volume to make sure everything is working, start up from the Snow Leopard installation disc, run Disk Utility and use +Repair Disk+ (just to be sure), and run the upgrade to Snow Leopard again.
    If you have a backup of at least your personal data, you may want to reformat the internal drive, install Snow Leopard and bundled apps, install your third-party apps from their original sources, update everything that needs updating, and restore your personal data.
    If you don't have a backup, the best bet is to try either DiskWarrior or TechTool Pro. DiskWarrior is very specialized into repairing this type of data problem. TechTool Pro has similar capability, but it is a more general tool with other features.

  • 10.7.5 update progress bar "upgrading iCal calendars"

    I completed the 10.7.5 update on my MacBook Pro (2011) about ten minutes ago. Since then, after opening iCal, the progress bar "upgrading iCal calendars" has been sitting here. I do have a lot of historical calendar data, going back to 2003. Has anyone else had this problem? Will it finish if I let it go, or are my calendars already corrupt?
    I'm worried because I've had bluetooth/external speaker audio issues, followed some directions, tried to boot into safe mode, and wasn't able to (left the machine for 3 hours, progress bar stuck at about 25%).
    thanks,
    Kim

    After an hour, I tried to quit iCalendar. It was "application not responding," so I force quit, and got back in. In the title bar, it said it was updating, for maybe 45 seconds. Now it's fine and my historical data (stored locally) is there.
    I upgraded another machine, and the Updating progress dialog box appeared for less than a minute and then was fine.
    There's probably something underlying that's wrong with my main machine. Guess I'd better get on with cleaning up.

  • After updating to iOS 5.0.1 my iphone 4 is frozen on the screen with the apple logo and a progress bar under it. What should i do?

    After updating to iOS 5.0.1 my iphone 4 is frozen on the screen with the apple logo and the progress bar under it. Held the power and home button, the phone shut off, and restarted the progress. If i try to turn the phone on, it keeps telling me to connect to iTunes. Once I do, it asks me to restore, i click restore, but it keeps on freezing at the screen. What is the problem? Error 1603 comes up. Followed the link to apple's page but nothing that was said there worked.

    See Here for
    Unable to Update or Restore
    http://support.apple.com/kb/HT1808

  • Updated iPhone 4s to ios8 but screen is stuck on white screen with apple logo and progress bar

    I updated my phone last night and my iPhone screen is white and has a gray apple logo and a progress bar which has been the same for 12 hours. The bar looks almost completel but it hasn't moved at all. my phone was also unplugged accidentally during the night while it was on this screen. would that have any effect?

    Turn it off, go into recovery mode (command R at boot), wipe everything, go back and install Yosemite. Its suggested that you are using ethernet as it goes a lot faster that Wifi and more reliable. If you do not have a ethernet cable, you can still use Wifi. Hope this fixes your problem.

Maybe you are looking for

  • F.01 Report

    Hi I do have a strange problem. At F.01 whenever I run the report for Chart of Accounts ABCD,company code ABC & income statement CC02 the result is good.We can see the groupings and at the end of the summary there is income/loss for the company. But

  • Mapping parameters binding gets removed in process flow

    Hi All, whenever i import a mdl file from development to production parameters binding of few mappings and pprocedures in process flow get removed automatically. for example Map1 in PF1 has input parameter p1 binding set to Pf.p1. this binding is get

  • Create custom screen in the SRM 7.0 as tab or subscreen

    Hi experts, I am working on SRM 7.0 and in this version the BAdI BBP_CUF_BADI are no longer used. Then, i need to know how can i create custom screen as tab or subscreen ? All the threads said the way to do that with that badi, this is my problem. co

  • FF 4.0.1 no longer Warn me when closing multiple tabs or even restore them!

    after upgrading to 4.0.1 ff Warn me when closing multiple tabs or even restore them although i close the firefox from (Firefox -> Exit) and the (Warn me when closing multiple tabs) check is enabled.

  • Yellow Box when hovering over links

    Hi All, I have read a few discussions surrounding the 'yellow box' that appears when hovering over links in safari. Last I read some time ago revealed this is an intergrated 'feature' of safari. Is this still the case?? Or have enough users complaine