Progress bar in a JProgressBar component is not always drawn

Hi experts,
I have a strange issue with a swing application. This app contains of a JFrame including a JTable. This table has multiple columns, one of them is a JProgressBar (implementing a TableCellRenderer). Multiple background threads are running, every of them updates one row's progress bar via the InvokeLater() method. This works fine.
At a specific point within the runtime of the application, the value of a progress bar is set back to 0, and instead of the default percentage text a custom string is displayed (then continuing to progress with this custom text set). This works fine as well.
Problem is, that when a custom string is set to one progress bar as described above, then the bars of the other JProgressBars are not painted any more. But the default percentage text of these other JProgressBars are still incremented and painted correctly. When the one progress bar, that has the custom string set, has finished and this row is removed from table, then the other progress bars are again painted correctly (including the default percentage text).
A part of the custom TableCellRenderer class is shown here:
     public class ProgressRenderer extends JProgressBar implements TableCellRenderer
     public ProgressRenderer()
          super(SwingConstants.HORIZONTAL);
          setBorderPainted(false);
          setStringPainted(true);
     public Component getTableCellRendererComponent(JTable table, Object value,
          boolean isSelected, boolean hasFocus, int row, int column)
          if(value != null)
               setValue(((JProgressBar) value).getValue());
               setString(((JProgressBar) value).getString());
               setMinimum(((JProgressBar) value).getMinimum());
               setMaximum(((JProgressBar) value).getMaximum());
          return this;
...Any ideas what could be wrong here?
I am really out of ideas here :(
Thanks in advance for your help!
Kind regards, Matthias

I have solved the problem:
     public Component getTableCellRendererComponent(JTable table, Object value,
          boolean isSelected, boolean hasFocus, int row, int column)
          if(value != null)
               setString(((JProgressBar) value).getString());
               setMinimum(((JProgressBar) value).getMinimum());
               setMaximum(((JProgressBar) value).getMaximum());
               setValue(((JProgressBar) value).getValue());
          return this;
     }

Similar Messages

  • Add Progress Bar to a query component (ViewCriteria)

    Hi,
    I would like to add a progress bar (or any relevant component to show the process is going on) to QueryComponent (ViewCriteria).
    Please guide me how to achieve this.
    Thanks.

    I have solved the problem:
         public Component getTableCellRendererComponent(JTable table, Object value,
              boolean isSelected, boolean hasFocus, int row, int column)
              if(value != null)
                   setString(((JProgressBar) value).getString());
                   setMinimum(((JProgressBar) value).getMinimum());
                   setMaximum(((JProgressBar) value).getMaximum());
                   setValue(((JProgressBar) value).getValue());
              return this;
         }

  • IPad 2 froze while updating. Apple and progress bar on screen. Reboot did not work. Help?

    iiPad 2 froze while updating. Apple icon and progress bar on screen. Reboot did not work

    Try reset iPad and continue with update.
    Hold the Sleep/Wake and Home button down together until you see the Apple Logo.
    Note: Data will not be affected.

  • 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 in compressor 4.1.2 not working - Why

    While in the active window compressor is working but does not give me a progrss time or a progress bar - so I have to walk away and wait a couple of hours not knowing the movie is compressed.  Why?

    In the process of doing a screen shot - I discovered that the progress bar and timer work fine if I use  any setting except ProRes 442.  Not sure I know why?

  • Where can I find the drivers or the software to install windows on my mac? I am waiting all day for downloading the software support and the progression bar is stacked. I dot not have any dvd or cd because this macbook is new and did not come with it.

    I startte with all the suggestions given in the manual of bootcamp assistant but still waiting for the download to finish. Please somebody help me! I really enjoy my mac, but still have some undone work that requieres windows as an operating system.

    I startte with all the suggestions given in the manual of bootcamp assistant but still waiting for the download to finish. Please somebody help me! I really enjoy my mac, but still have some undone work that requieres windows as an operating system.

  • Adobe pdf printer save dialog box opens in the background - progress bar shows Not Responding

    I have two users who have Acrobat X Pro version 10.1.4 that are experiencing the same things.  First, one person just changed laptops and the new one has a fresh Windows 7 Enterprise X64 image and new installation of Adobe Acrobat X Pro.  When he used the pdf printer for the first time(after opening the program and accepting the license agreement) he was in MS Excel '07 and chose file>print>Adobe PDF and then the progress bar came up and then showed not responding.  After he did this a couple of times with me standing there I noticed that the save dialog box was opening in the background because I could see the icon blinking on the taskbar.  He said that his old computer never did this and that it would always open up and ask where to save the file and never show 'not responding' on the progress bar.  The other person having the same issue is running the same version but she has had the program installed on her machine for a few months and an older version on before that. 
    Is there a way to make the dialog box show as soon as you print to the Adobe PDF printer?  What is causing this?  Is there another way to create a pdf from MS Office like the add-on? 

    I have two users who have Acrobat X Pro version 10.1.4 that are experiencing the same things.  First, one person just changed laptops and the new one has a fresh Windows 7 Enterprise X64 image and new installation of Adobe Acrobat X Pro.  When he used the pdf printer for the first time(after opening the program and accepting the license agreement) he was in MS Excel '07 and chose file>print>Adobe PDF and then the progress bar came up and then showed not responding.  After he did this a couple of times with me standing there I noticed that the save dialog box was opening in the background because I could see the icon blinking on the taskbar.  He said that his old computer never did this and that it would always open up and ask where to save the file and never show 'not responding' on the progress bar.  The other person having the same issue is running the same version but she has had the program installed on her machine for a few months and an older version on before that. 
    Is there a way to make the dialog box show as soon as you print to the Adobe PDF printer?  What is causing this?  Is there another way to create a pdf from MS Office like the add-on? 

  • Progress bar do not show progress

    Hi there,
    I have created one dialog with button and progress bar. When I click on button, I have functionality which is getting called through which I make some changes in  currently open Indesign document like drawing some graphic frames, placing images on them. I want to update progress bar present on dialog when frames are getting drawn. But the dialog box freezes when the document changes taking place. How to update progress bar?
    Thanks in advance.

    Hello vDeepak,
    it is not possible to have a progress bar working with dialogs. You can use palettes and windows but not dialogs. If you like to better understand how progress bars work, this is a very good resource:
    http://forums.adobe.com/message/3152162#3152162
    It's a discussion based on javascript, but it would make sense.
    Best,
    Luca

  • Missing Print Progress Bar--bug or feature?

    Since upgrading to Acrobat 8 Professional (v. 8.1.2) on a Mac Intel Quad-core running OS X 10.5.1, there is no progress bar when printing. I only know that printing is done by hovering over the "stoplight" buttons and noticing when they become responsive again. (The window itself does not become active until I click in it.) It's as if there *is* a progress bar window somewhere, but it's not visible, and it's not giving up "front window" status when it's done.
    Has anyone else noticed this behavior? It's not affecting function, it's merely annoying. But with the radical redesign of the interface from Acrobat 7 to Acrobat 8, I can't tell if this is a bug or a feature. Any insight will be welcome.
    Thanks,
    David Reiffel

    I am new to this problem, having recently upgraded to Intel Macs from Acrobat Pro 7. There is another issue that seems to have been missed both in this thread and the other one referenced by David above. When the progress bar is on-screen, there is also a cancel button. So now you have the situation where Acrobat is unable to report how far through a print job it is and you are also disallowed from cancelling the job without resorting to a Force Quit... Now, that's the sort of usability I'd pay good money for! The problem doesn't occur using a PowerMac G5, so the functionality is there, it just doesn't translate to the Intel platform. Adobe Reader 9 also prints without a progress bar, so it looks like the problem is here to stay unless a fuss is made and this becomes a 'known issue'
    I've raised this as a case with Adobe customer care on 1 September but this hasn't been addressed as yet. I'll post any follow-up I get here.

  • Yahoo Webmail Blue Progress Bar Freezes adding attachments

    Using Mac OS X, Leopard 10.5.6 and Apple Safari 3.2.1. There is a bug when using Apple Safari with Yahoo Webmail. Whenever you attach a file (while composing a message), the blue progress bar (fills in behind the website address window) freezes. Everything continues working, but the blue progress bar freezes abouit half way. This always happens when attaching a file. The ONLY way to get functionality back is to reset safari. Also, if you open another tab, that other tab functions correctly even if the first tab (with Yahoo) is still frozen. All updates have been applied to the computer that are available. The blue progress bar is safari's way of telling you a website is loading.

    Hello,
    This issue only happens when using Yahoo Webmail while using the Mac version of Safari.
    Only a RESET safari returns normal operation to the blue menu bar.
    Here are steps to reproduce:
    1.) Login into Yahoo Webmail (The new version, not the classic version), compose a message, attach a file. The blue menu bar that fills in behind the website address will fill in about 1/2 way and stay there. You can continue to finish and send your email, but the blue bar stays frozen. If you open a new tab, the new blue progress bar works fine, but the first tab remains frozen. Again, everything is function. The only way to fix is to RESET safari.
    I have tried other accounts and computers. It even happens at the local Apple retail store. Oddly enough, this issue does NOT affect the Windows XP version of Safari.

  • Need very simple ''progress bar'' or a ''Please wait notice'' in javascript

    I have a JSF portlet app, made in JSC. It uses remote EJB calls and some calls take a long time to finish. E.g. User clicks a button, some data are gathered, sent to an EJB and the app. is waiting for reply.
    For the user it looks like this: Click ... Internet Explorer progress bar flashes, nothing happens for 30s, then the progress bar starts from zero again and loads the next page in 15s.
    So I need a very simple notice in the middle of the screen, that will just say "Take a break, don't click the button again, please! ... " and animate a clock, a bar or whatever, maybe disabling the window so the user will not be able to push buttons. (The users are annoying folk!)
    The message should dissapear as soon as the next (or the same) page loads.
    I've never did javascript, so if anybody has a simple example code, I will be grateful and give him a duke or two. (And I really don't need the AJAX super-components)

    Martin, best of luck, i fought this same problem last year.
    Even when I got a progress bar on my page, it would not "animate" as IE apparently does not animate gifs after a form is submitted (and before the page is destroyed). I think I eventually got around this by adding an onclick event to my form submit that reset the image.
    Best of luck.
    Ideally, is there anyway that we can get this IE behavior (page loads, waits for X times, page loads again correctly) fixed? This is highly confusing to my clients.

  • Progress bar and sql query

    Hi, first of all excuse my English.
    I have a problem that I can not solve, i implement a indeterminate progress bar for a sql query but not shown until you have completed method. I tested threads and swingworker but can't make it work.
    The pseudocode would be:
    @Action
    public void Find() {
        progressbar.setVisible(true);
        ... query ...
    }If anyone has a solution would be very grateful.

    The Find() method is automatically created by NetBeans when I select "Set Action" from the context menu of a JButton.
    NetBeans generated code is as follows:
    public MyClass { // Constructor
        initComponents();
    private void initComponents() {
        javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(administration.AdministrationApp.class).getContext().getActionMap(MyClass.class, this);
        button_find.setAction(actionMap.get("Find")); // NOI18N
    @Action
    public void Find() {
    }don't exist a method actionPerformed()

  • Can BIP report have a progress bar/indicator?

    Hello,
    I have a BIP report embedded in a dashboard along with the BI answers report.
    While processing, the BIP report shows a clock symbol indicating the progress bar where as BIP report is not showing anything.
    this gives the end user a wrong impression that whether the report is executed or still processing.
    Is there a way to set a text message or a symbol to show progress?
    Please reply if you know how to.
    Thank you
    Narasimha Rao

    Sorry about that! We are working on adding this back to Firefox in an upcoming version:
    https://bugzilla.mozilla.org/show_bug.cgi?id=741654

  • Blueprints progress bar

    Hi all,
    I've successfully followed the progress bar tutorial and created the project described. So, I thought that I'd have a go at adding the progress bar to another web app that I'm working on. I have now just added the progress bar to my project (I've literally just dragged and dropped the progress bar onto a page and have not plumbed it in at all), but I'm getting the following javascript exception:
    'bpui' is undefined
    Does anyone know why this is happening? I've compared the libraries of my web app and of the tutorial app and I can't see any difference. I'm really not sure what is causing the problem.
    Any help would be gratefully received!!
    Kind regards,
    Sian

    The first time I used the progressbar this was all I had in my web.xml
    <servlet-mapping>
              <servlet-name>Faces Servlet</servlet-name>
              <url-pattern>*.faces</url-pattern>
    </servlet-mapping>
    After it gave me all those problems with the __package__ thing so my web.xml ended up like this
    <servlet-mapping>
              <servlet-name>Faces Servlet</servlet-name>
              <url-pattern>/faces/*</url-pattern>
         </servlet-mapping>
    <servlet-mapping>
              <servlet-name>Faces Servlet</servlet-name>
              <url-pattern>*.faces</url-pattern>
    </servlet-mapping>
    And now I got the same ol' problem all of a sudden. I don't know what's wrong. I use the Visual Pack by the way and the project was first started with Creator 2.1. Is there anything I should know?
    I think I should better check out the source so as to get the whole picture of shale-remoting...
    Thanks guys...I hope we solve this thing together

  • Iphone 4S Stuck in recovering without progress bar ..

    Hi,
    this morning when i woke up, my iphone was OFF. When i tried to switch it on, it didn't, and went to recovery mode .. I tried lots of softwares to leave this mode, but no success ! I tried to restore my phone, using the last itunes didn't work (either in DFU and recovery) ... It's extracting files on itunes, the apple appears on my phone BUT no progress bar !! So it's not recovering ... I tried like everything, you're my last chance ! (i'm using ios 7.1.1). I also tried on different computers, with different cables, no way ! Did i miss something ?
    Thanks !

    Does anybody have a clue ?

Maybe you are looking for

  • Delivery cost not created during GRN of PO using BAPI

    I have a customized program which use BAPI - BAPI_PO_CREATE1 to create PO, PO was created successully. then program will use BAPI - BAPI_PO_CHANGE to update condition pricing, which is also executed succesfully. all condition pricing (KONV) updated c

  • GUI_DOWNLOAD is giving # for other than english content

    Hi Guys, I am using GUI_DOWNLOAD FM for downloading internal table content. When my table has content other than english language, my downloaded file has only # symbols. I getting code page number for the  language using FM NLS_GET_FRONTEND_CP and pa

  • PI SOAP access to third party Webservice,Return ERROR

    Hi Experts, I have one soap synchronous scenario access to third party WEBSERVICE,Return error.While testing the wsdl in soap ui, I am getting response, messages showing successfully processed. I think it is pi to send  xmlns:ns1='http://tempuri.org/

  • Exchange, google, and ical

    iCal's support for exchange calendar and google calendar is great! Here is my situation. I use iCal to manage my exchange calendar, which is auto and wirelessly sync to my Blackberry. I also use iCal to manage my google calendar, which sometimes my s

  • Please Review my CLD Sample Exam

    I am going to take the CLD in a month or so, so I figured I would work on some of the exams and post it up here for your advice. I started with the Car Wash exam, and will do the other ones as well. Thank you. Any and all comments are welcome. Kenny