What's wrong with my Progress Monitor and how do I fix it?

Hello,
My progress monitor fails to draw its insides, except when the task is already finished
Inside a class that extends SwingWorker<Void, Void> ...
     @Override
     public Void doInBackground() throws Exception
          try
               this.progressMonitor = new ProgressMonitor(jPanelControl,
                         "Running a Long Task",
                         "", 0, data.size());
                    //jPanelControl.invalidate();
                    progressMonitor.setMillisToPopup(500);
                    progressMonitor.setMillisToDecideToPopup(100);
               this.doProcess();
          catch (Throwable e)
               // TODO Auto-generated catch block
               e.printStackTrace();
          return null;
     }doProcess goes on a little journey until we get to:
                  progressMonitor.setNote("Importing " + this.title);
        for (int i = start; i < this.data.size(); i++)
               progressMonitor.setProgress(i);
                        //doing stuff each iterationQuickly after loading begins the box appears but it's not drawing the graphics inside the window (see screenshot for more)          
btw: That white background is Java3D, could it be interfering with the way Swing updates graphics?
Edited by: loza on Aug 25, 2009 4:03 AM

Hi,
take a look at [this sample from java tutorial|http://java.sun.com/docs/books/tutorial/uiswing/examples/components/ProgressBarDemoProject/src/components/ProgressBarDemo.java] ;
Regards,
Alan Mehio
London,UK

Similar Messages

  • What is wrong with my iPod.. and how can i fix it?

    ok.. my 5G iPod was working fine.. then i couldnt get it to eject from my iBook.. on my computer screen it said that it was ejected.. but i iPod never said ok to disconnect. a few moments later and my iPod was back on my computer screen.. it did this multiple times..
    i eventualy shut off my computer to disconnect my ipod. and that worked fine (or so i thought)
    i unplugged my iPod and went to go listen to a couple new songs i just put on it.. and it skipped through the songs without playing any of them. (when my ipod was connected to my iBook i was listening to those songs from my iPod and they worked fine)
    so it was ******* me off.. i went to go turn off my iPod before i went to bed, but it wouldnt turn off.. so i decided to leave it on my deskfor the night.. it drained my battery.. that didnt bother me too much.. casue i expected it to happen.
    so i plug my ipod back into my computer to charge it up.
    (the iPod image does not appear in the finder or itunes)
    a few hours later i go to check on it.. it just had the apple logo screen up.. so i tried resetting it.. then a screen came up and said "please wait. Very low battery" so i left it alone. i go back to check on it about 6 hours later... same thing happens over and over and over again.
    (the iPod still does not appear in finder or itunes)
    so what should i do?

    Hi,
    I had the same problem. charging through the computer didn't work for me and it said (just like at yours) "please wait. Very low battery" without backlight.
    I bought a adapter (which I thought had te same power as the USB, but anyway) I charged it with this piece of heaven, and it worked. It needed 1 hour to charge it. (I have a 5G iPod with video btw)
    good luck!
    Martijn

  • What is wrong with the app store and how long before its fixed, im downloading atna very slow pash and i have a 10mb uncontested line.

    What is wrong with the app store and how long before its fixed, im downloading atna very slow pash and i have a 10mb uncontested line.

    Sorry, its on both my iphone 4s (2 iphones) and ipad2 that the app store is slow, I have done all the above and still when i download a 1 mb app it take about a half a hour just to download and previously it wasn't even a second. When browsing the web the devices are fast and internet speed is good, but when going in to app store it takes long to load and show me the new app, updates, featured app ect. We watch movie online and the streaming is brilliant. Even on my windows pc the app store is slow and sometimes says that i store could not be opened, i have also tried on my buddies wifi and there it does exactly the same which makes me think that its on apples side, but why do you not have any problems? 

  • What is wrong with my iphone4? and how can i turn it back on?

    About a week ago, i was using my iphone that I've had about 6 months, no problems. It was working perfectly fine and then out of nowhere it shut itself off. I plugged it in, nothing happened. I pressed the home and lock button, and held them in, and still nothing happened. The next day I decided to plug it in again, and it told me to leave it plugged in, like it was dead or something (the red battery symbol popped up, and said it was charging) and about 10 minutes later the iphone came back on. The only problem was that from here on out my home button does NOT work, at all.
    The phone was working................ until about 3 days later the same thing happened to it again, except the next day it did not come back on the same way. My mom took it to the AT&T store (living in west virginia, there aren't any Apple stores near by). She came home with it working again, but I have no clue how they got it back on.
    A few days after the second time it shut off, it happened again. We took it to AT&T again, and this time they couldn't get it back on, but they gave us some tips. We plugged it into itunes, and restored it. I was over the amount of space. I had no storage left!! So  I went through and deleted all my music, and about 500 photos (having around 1,200) . I now have about 700 photos, 20 songs, and roughly 15 apps. ONE day after I did all of this, my phone shuts off for the fourth time !!!! (It is off right now) Seeing how I have 3 GB of space left on my phone, I would think it's not a storage issue.
    I've plugged it into the wall charger, nothing! I have tried to reset it holding the home button (which still does not work) and lock button, still nothing. I have now plugged it into itunes. It says the device is found, but not identified please restore the device. So I restore it, but that doesn't help, Itunes still cant "identify" the device and it is still not on.
    I have checked for water damage, and there is not any! I just want to know what is wrong with it, and how to fix it. OR maybe if I just need to get a whole new phone, because mine is under warranty. The problem is AT&T won't give me a new one and there isn't an apple store near me! Can someone PLEASE help?

    I think you might get a new phone instead of repairing it as it takes time and you said the repairing center is far from your living place

  • My older iPhone which is the 3G or 3S and it's showing an Itune Icon, and doesn't Work. What's wrong with the iPhone 3GS and how to fix it? It was working fine a few days ago

    Starting to wonder if the iPhone's been hacked into. The Iphone was working perfectly fine just a short time ago...only 48 hours ago. I never saw a screen on the front of the front of the phone which showed an iTunes Icon at the top of the screen and a cord going down to the bottom of the screen before. I cannot use the phone, get online to get to the internet, take photos of anything.
      The phone was working perfectly the day it started working very very strangely and I was able to use the phone, see the time of day, take photos, get online, etc.
      How do you fix the phone? I am not going to "restore" the phone & get ALL my info, photos & everything deleted!
      Think we need to change the phone number because we also got a strange phone call from a phone number we never saw before!
       Need some help. as I'm sure people CAN hack into smartphones.

    It's in recovery mode. It's tryijng to tell you to plug it into iTunes and restore it.
    LuvsMacs2014 wrote:
    I am not going to "restore" the phone & get ALL my info, photos & everything deleted!
    I hate to tell you this, but ALL your "info, photos & everything" are already gone.
    You don't have a choice.

  • What is error 5100 for multifunction printeers and how do you fix it?

    what is error 5100 for multifunction printeers and how do you fix it?

    I have a canon MG3200 printer. I have had this thing a whole TWO DAYS! i had issue after issue setting it up and then finally getting it to print the other day when I got it home. A simple 5 minute print job on any of the other printers I used to have, and it took almost 35 minutes to produce an almost decent quality for some important paperwork that I had to have in the following morning. Aside from that- (I just took that to mean it was the "learning" curve) I now tried to print a simple, one page document. Postage for a package to go out tomorrow morning via USPS. Lo and behold, it had a paper jam immediately. A bad one. Had to spend more than an hour searching around for ways to even get the covers off in order to pull the paper free. Got it cleared out, now the P-2-0, or 5100 error message is just blinking away. I've taking it back apart in the back 3 times now, taken the ink cartridges out and looked for paper jammed, not found anything, and now the blinking error won't go away. Can someone PLEASE tell me how to clear that error message??? I am about ready to return this printer to walmart, and get a different one. If it wn't work, then it does me no good. Thank you in advance for being able to virtually rant and rave about this. mediatrek wrote:
    Usually an error 5100 code is saying that the ink carriage has problems. Usually something currently is or recently hammed the cartridge carriage. With the machine turned off and the power cord unplugged, open the machine and inspect the inside do you see any stray pieces of paper along the paper's usually route?
    There is a way to reset the machine to clear out the error. I would need to know the exact model of your Canon. 

  • What is apsdaemon.exe (apple push) error and how do I fix it?

    what is apsdaemon.exe (apple push) error and how do I fix it?

    Hi drkdrgn74,
    If you are having this error during or after an attempted update to iTunes, you may find the following article helpful:
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    If the error is occuring in the context of a security software alert, this article may be of use:
    iCloud: Making sure that iCloud works with security software in Windows
    http://support.apple.com/kb/TS4175
    Regards,
    - Brenden

  • What does too many http redirects mean and how do I fix it

    Does anyone know what the **** "Too many http redirects" means, and how the **** do I fix it ??

    500 errors in the HTTP cycle
    Any client (e.g. your Web browser or our CheckUpDown robot) goes through the following cycle when it communicates with the Web server:
    Obtain an IP address from the IP name of the site (the site URL without the leading 'http://'). This lookup (conversion of IP name to IP address) is provided by domain name servers (DNSs).
    Open an IP socket connection to that IP address.
    Write an HTTP data stream through that socket.
    Receive an HTTP data stream back from the Web server in response. This data stream contains status codes whose values are determined by the HTTP protocol. Parse this data stream for status codes and other useful information.
    This error occurs in the final step above when the client receives an HTTP status code that it recognises as '500'. Frank Vipond. September 2010.
    Fixing 500 errors - general
    This error can only be resolved by fixes to the Web server software. It is not a client-side problem. It is up to the operators of the Web server site to locate and analyse the logs which should give further information about the error.
    Fixing 500 errors - CheckUpDown
    Please contact us (email preferred) whenever you encounter 500 errors on your CheckUpDown account. We then have to liaise with your ISP and the vendor of the Web server software so they can trace the exact reason for the error. Correcting the error may require recoding program logic for the Web server software, which could take some time.
    http://www.checkupdown.com/status/E500.html

  • What does 500 internal server error mean and how do i fix it???

    When I try and update my Producteev app it keeps telling me that I have a 500 internal server error! What does that mean and how do I fix it! I recently had to have my logic board replaced and my mac is only 3.5months old! I thought this thing wasn't suppose to be giving me problems like this!!! Please help!!!

    500 errors in the HTTP cycle
    Any client (e.g. your Web browser or our CheckUpDown robot) goes through the following cycle when it communicates with the Web server:
    Obtain an IP address from the IP name of the site (the site URL without the leading 'http://'). This lookup (conversion of IP name to IP address) is provided by domain name servers (DNSs).
    Open an IP socket connection to that IP address.
    Write an HTTP data stream through that socket.
    Receive an HTTP data stream back from the Web server in response. This data stream contains status codes whose values are determined by the HTTP protocol. Parse this data stream for status codes and other useful information.
    This error occurs in the final step above when the client receives an HTTP status code that it recognises as '500'. Frank Vipond. September 2010.
    Fixing 500 errors - general
    This error can only be resolved by fixes to the Web server software. It is not a client-side problem. It is up to the operators of the Web server site to locate and analyse the logs which should give further information about the error.
    Fixing 500 errors - CheckUpDown
    Please contact us (email preferred) whenever you encounter 500 errors on your CheckUpDown account. We then have to liaise with your ISP and the vendor of the Web server software so they can trace the exact reason for the error. Correcting the error may require recoding program logic for the Web server software, which could take some time.
    http://www.checkupdown.com/status/E500.html

  • Why do I get error 003 on my alpine stereo with my ipod touch and how can I fix it

    I have an alpine stereo in my ca and my ipod touch was working fine until a couple of days ago.  Now I get an error 003 and can't play my music. What causes that and how can I fix it?
    Thank you

    you may wish to ask here
    iPod touch
    or
    iPhone Accessories
    this forum is about running windows on mac computers much fewer people here would own ipod touch then in the ipod touch or iphone accessories forum

  • What's wrong with my AJAX process and '&'

    On the page where I create a new record, in my branch I set P10_ID with the newly created primary key and then page 10 loads.
    I have and onload call in the header of page 10 - onload="getValues(document.getElementById('P10_ID'));"
    I want to set my page 0 items, which works, except if I use an ampersand character in one of my fields. I'm having a hard time understanding why...what's so special about the ampersand? I've tried converting to a hex and ascii value but my page 0 items will not set. I get a javascript error that reads: '0' is null or not an object. When I spell out 'and' instead of using the ampersand character, my page 0 items ARE set correctly.
    Here is the code...
    My getValues function is:
    function getValues(pValue) {
      var xml = null;
      var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=Set_Page_Zero',0);
      get.add('AI_PRIMARYID',pValue.value);
      ret = get.get('XML');
      if(ret) {
        var lName = ret.getElementsByTagName("LASTNAME");
        if(lName) {
          var last = document.getElementById("P0_LASTNAME");
          last.value = lName[0].getAttribute("VALUE");
        var fName = ret.getElementsByTagName("FIRSTNAME");
        if(fName) {
          var first = document.getElementById("P0_FIRSTNAME");
          first.value = fName[0].getAttribute("VALUE");
      get = null;
    My application process is:
    DECLARE
      vFIRSTNAME varchar2(100);
      vLASTNAME varchar2(100);
    BEGIN
      owa_util.mime_header('text/xml',FALSE);
      htp.p('Cache-Control: no-cache');
      htp.p('Pragma: no-cache');
      owa_util.http_header_close;
      htp.prn('<DATA>');
        select firstname, lastname into vFIRSTNAME, vLASTNAME from addresses where pk_id = :AI_PRIMARYID;
      htp.prn('<FIRSTNAME VALUE="' || vFIRSTNAME || '"></FIRSTNAME>');
      htp.prn('<LASTNAME VALUE="' || vLASTNAME || '"></LASTNAME>');
    EXCEPTION WHEN OTHERS THEN
        htp.prn('<FIRSTNAME VALUE="No records exist"></FIRSTNAME>');
        htp.prn('<LASTNAME VALUE="No records exist"></LASTNAME>');
    END;I can't copy and paste so hopefully I haven't made any errors while retyping.
    Any idea what the problem is and how to fix it?
    Thank you,
    Tammy

    Hi,
    Thanks for that - I'm not sure how I find the time either!!
    Firstly, I would replace &amp; with a silly character that is not likely to appear in the text - something like ^ perhaps.
    So, in the process:
    select REPLACE(firstname,'&','^'), REPLACE(lastname,'&','^') into vFIRSTNAME, vLASTNAME from addresses where pk_id = :AI_PRIMARYID;then in the javascript:
    last.value = lName[0].getAttribute("VALUE").replace("^","&");It is possible that this may have to be:
    last.value = lName[0].getAttribute("VALUE").replace("^","& amp;");(there's no space between the &amp; and amp; - I've had to add that in for the post!)
    Andy
    Edited by: ATD on 11-Nov-2009 17:49

  • What's wrong with my second monitor?

    My second Apple Disply worked fine in Jaguar, but yesterday I installed Panther, and now the second monitor is gray and has hardly any resolution. The second monitor is using an ATI card XClaim 3d Pro in the PCI slot. I downloaded ATI's universal update (8/05), but it did not fix the problem. I was afraid (from past experience) that this might happen, that's why I stuck with Jaguar all this time, but I thought by now, there was a fix for this. I never touched any cables or moved the computer during the install. I'm ready to pull my hair out. I need two monitors for my work. Any suggestions? Should I switch to Tiger?

    Thank you. It makes sense now, because the board came out of my old G3. Why did it work in 10.2 and not in 10.3? Any suggestions on what card I should buy for the PCI slot? The AGP slot already has a RAGE 128. I just want it to work. I don't do games or anything fancy. I'm a graphic designer and I use the second monitor to view tools, etc.

  • Wondering what is wrong with the Answers site and signing in?

    As the subject suggests, I'm having tremendous difficulty signing in to MS Answwers to simply ask a question about my IE8 always having sounds playing from ??? after it has been closed down completely, and why MS Answers is preventing me from signing
    in to ask this question?

    Thank you Juke Chow,
    Overall, I've calmed down from the incident, however I still am a little miffed at MS for the following issue: After I had problems signing in with the Answers site, I would seek help elsewhere, but again evrything asked that I "sign in" to be able to post
    questions which is fine, BUT remember the fact that I was having issues SIGNING IN!  If I cannot sign in on Answers, I find that signing in anywhere else is often difficult as well... so it just adds to the issue!  How can anyone who is having problems
    signing in to any  site, to ask a simple question, get help when they have to still sign in in order to ask a friggin' question?  Seems to me that something was not thought of there... most people are not idiots, I might have falled for it at one
    time, but I have learned a few things about companies like MS, and that is that they always get their bottom line to increase, meaning they will charge an arm and a leg if you send in issues on a program that is not because of something you did, but a problem
    with the program itsself.
    Even now, I do not remember why I came in for help, because of this (censorted) junk issue with signing in to ask the original question!  Why I had the issue to begin with.  But now I do remember why I came in to ask... simply because IE8 is doing
    it again right now.  I am sitting here typing this message, and I am hearing some sort of iddiotic advertisement... it is only sound and when I close down my IE, I get (censortd) crap still!  Even when I try to open up my Task Manager, it never shows
    where the audio is coming from.  I'm sorty but this is (Censored!  And I want it stopped as soon as possible, perhaps I will switch over to one of my other browsers to see if this crap stops.
    Here is the exact issue I am seeing (hearing):  While here writing this message, I suddenly hear in the background some "navigation"sounds like clicking on links,, then the advertisement audio starts up... say for instance I am watching some other videp
    and this begins?  IMHO everyone who is making these programs is really screwing everything up.  And I tried IE 9 BETA, I did not like it, because IE is becoming a lame program like most any other MS product now, but MS is such a momopoly in software,
    so everything operates around MS, which is (censoredd).
    While here on this site, I got some sort of pop up message asking me if I want to open some site, not knowing what it (the site) is in the first place, I clicked on yes... now I get popups every few seconds teling me the site has had a problem of some
    sort and Internet Explorer has stoopped workign, here is the current pop up message:  "Internet Explorer has stopped working  A problem caused the program to stop working correctly.  Windows will close the program an d notify you if a solution
    is available."I click on the Close Program button, and right away another window pops up saying the same thing... it goes on and on and on, this is Bull (Censored).  Browsing used to be easy and entertaining, now with all theis Bull, it ceases to be that
    way, I suggest MS get's off their butts and figures it out and stop charging an arm and a leg to help people with this crap.

  • What is wrong with the CS3 installer and why?

    Not only will a DW trial not take a CS3 suite serial number,
    CS3 will not go down on top of it.
    That would only be a normal annoyance if both the uninstall
    for DW and the install for CS3 were not both so painfully slow.
    ...just thought you guys should know how bad it is so that
    you can fix it and so customers will know that it isn't just
    them.

    well, they're kind of big programs. big programs take some
    time to install. especially when we're talking about an entire
    suite with multiple big programs. that's just the way it is.
    but i do agree that it's annoying how new installs don't
    overwrite old versions. but that's not just DW/CS3. it seems to be
    most programs these days. i hate the fact that i have to uninstall
    older versions of programs after upgrading. it's a pain in my
    butt!

  • What is wrong with this Java class and method?

    Created a managed bean and following method as shown below.
    public void setEvent(DisclosureEvent disclosureEvent, CoreShowDetail detail) {
    if (disclosureEvent.isExpanded()) {
    detail.setDisclosed(!detail.isDisclosed());
    -- Then integrated above in the following jspx.
    <af:showOnePanel inlineStyle="width:400px;height:300px;"
    binding="#{ShowApanel.showOnePanel1}"
    id="showOnePanel1">
    <af:showDetailItem text="ADF Faces Components"
    binding="#{ShowApanel.showDetailItem3}"
    id="showDetailItem3" disclosureListener="#{ShowApanel.setEvent}">
    <af:panelHeader text="ADF Faces Components First Child"
    binding="#{ShowApanel.panelHeader6}"
    id="panelHeader6"/>
    <af:panelHeader text="ADF Faces Components Second Child"
    binding="#{ShowApanel.panelHeader5}"
    id="panelHeader5"/>
    </af:showDetailItem>
    <af:showDetailItem text="Architecture"
    binding="#{ShowApanel.showDetailItem2}"
    id="showDetailItem2"
    disclosureListener="#{ShowApanel.setEvent}">
    <af:panelHeader text="Architecture First Child"
    binding="#{ShowApanel.panelHeader4}"
    id="panelHeader4"/>
    <af:panelHeader text="Architecture Second Child"
    binding="#{ShowApanel.panelHeader3}"
    id="panelHeader3"/>
    </af:showDetailItem>
    </af:showOnePanel>
    THE ISSUE:[b]
    I am still not able to programmatically disclose or undisclose the panel component.
    Where am I going wrong? Please help.
    Thanks,
    Ruchir

    Hello Frank,
    I put several print statments but none of them is executing on browser. Does this mean that the method is not being called even once?
    public void setEvent(DisclosureEvent disclosureEvent, CoreShowDetail detail) {
    System.out.println("HelloServer Exiting ...");
    if (disclosureEvent.isExpanded()) {
    System.out.println("HelloServer Exiting1 ...");
    // detail.setDisclosed(!detail.isDisclosed());
    System.out.println("HelloServer Exiting2 ...");
    Thanks,
    Ruchir

Maybe you are looking for