Progress dialog sometimes stays open

Hi,
I have a problem that my progressDialog bar sometimes, very rarely mind you, stays open even though it should be finished if I run my GUI application in UNIX, it does not appear to happen in Windows. Has anyone else experienced this or have any idea from the code pasted below why it might be happening.
thanks in advance,
a
* ProgressDialogController
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.*;
public class ProgressDialogController extends AbstractDialogController
implements ActionListener {
private ProgressDialogView view;
private ProgressUpdater progressUpdater = new ProgressUpdater();
private IProgressDialogCallBack ipdcbListener = null;
private boolean bCancelButtonNeeded = true;
public ProgressDialogController( RequestHandler requestHandler, boolean bCancelButtonNeeded ) {
this.ipdcbListener = requestHandler;
this.bCancelButtonNeeded = bCancelButtonNeeded;
protected void init() {
view = (ProgressDialogView)getView();
view.messageText.setText( "" );
if ( bCancelButtonNeeded ) {
view.addCancelButton();
view.cancelButton.addActionListener(this);
Timer timer = new Timer(500, progressUpdater);
timer.setRepeats(true);
timer.start();
protected void viewClosing() {
ipdcbListener.respondToCancelEvent();
protected void stop() {
// dialog is closing so can't retrieve
// any updates anymore
ipdcbListener = null;
if ( bCancelButtonNeeded ) {
view.cancelButton.removeActionListener(this);
view = null;
progressUpdater = null;
public void actionPerformed(ActionEvent event) {
// it may take some time to finish
// current job, so we desable cancel button
// but wait till dialog will be shut down
// by its owner
if ( bCancelButtonNeeded ) {
view.cancelButton.setEnabled( false );
// notify owner about cancel request
ipdcbListener.respondToCancelEvent();
public void updateMessageOnProgressDialog( String strMessage ) {
if ( view!=null ) {
if ( view.messageText != null ) {
view.messageText.setText( strMessage );
private class ProgressUpdater implements ActionListener {
private int progress;
public void actionPerformed (ActionEvent e) {
if (view != null) {
progress = progress + 20;
if (progress > 100) progress = 0;
view.progressBar.setValue(progress);

When you post code, please use [code] and [/code] tags as described in Formatting Help on the message entry page. It makes it much easier to read.

Similar Messages

  • Print Progress Dialog box always stays on top

    Since upgrading to InDesign CC I have noticed that all print progress dialog boxes stay on top of all windows, even after switching apps. I find this highly annoying and want it to go away. Is there a preference I can change to make it NOT be on top, especially when I've switched to a different application?

    (I am OP, having account issues)
    Trashing preferences wouldn't help if it is a default behavior, which I think this is since it's been happening since the beginning with CC. I was wondering if this was a behavior that I can change with a preference or if I'm just stuck with it.

  • Present a dialog screen to the user that always stays open and gets updated with values from teststand.

    Hello,
    I'm new to TestStand and just created my first sequences with TS and LV.
    The program is running fine but now I need to implemented a dialog screen with some progress results for the user.
    This dialog screen must stay open (unless closed by the user) and gets refreshed with the latest analysis results from TestStand.
    Is there an example of something like that. (starting from a working example is always easier)
    So I need a mechanism to give some results from TestStand to a custom made dialog screen in LabVIEW.
    Any thoughts/examples/recommandations ???
    Thanks!

    Hi noxus,
    The basic design you are looking for is a daemon, This is basically a VI that runs in the background (your dialog VI for example). This VI is launched dynamicly when needed. And there should be a way of detecting if the deamon is running.
    You can use various ways of communicating between VI's. The two most use full I find either Queues or TCP. The added bonus for TCP is that it also works over the Network, but could also be slower and blocked by Firewalls. Queues only work within the LabVIEW Process running on the Local machine and provide a nice way of detecting if the daemon VI is running.
    Attached a example that show how you can implement something like this. The 'sent new value.vi' obtains a queue reference, we check if it has created a new queue or if it returned an existing queue reference. If the obtain queue created a new queue this means the daemon is not running and we launch the deamon.vi.
    The daemon also connects to the same queue and maintains the reference. If the deamon is closed the referenced is closed as well and the queue is destroyed.
    You can run the example VI. (in LabVIEW 8.2).
    Hope this helps.
    Thanks
    Karsten 
    Attachments:
    Daemon.zip ‏35 KB

  • Hello  I have a problem with Mac Pro, iPhoto does not want to stay open and close as I can figure this out?  thanks

    Hello  I have a problem with Mac Pro, iPhoto does not want to stay open and close as I can figure this out?  thanks

    Refer below link once
    App doesn’t open | Progress wheel spins continually

  • DVD & Blu Ray Burner Drive Trays Do Not Stay Open When Media is in the Drive

    I have a problem with both Windows 8/8.1 and the Windows 10 Technical Preview (there is no issue when I run Windows 7).
    I have 2 optical drives: 1) DVD Burner and 2) Blu Ray Burner (I just got the second drive a few weeks ago). They are attached to the secondary SATA Chip (see below for specifics).
    The problem I'm having is that when I eject media from either drive, the drive does not stay open, but rather immediately closes. Before I got the Blu Ray Burner, I had this problem with just the single DVD Burner by itself. I was hoping when I installed
    Windows 10 Technical Preview that this problem would not be present, but it is present in that O/S as well.
    This problem will repeat continuously if I attempt to use the eject button and so I either have to grab the disc while the tray is moving, or if I press the eject button again on the drive at the right time, I can get it to re-open and not close (this
    is tricky to get the button timing right as it seems like it has to be done close to when the drive tray is fully extended when it starts retracting). It usually takes me 5 to 10 button presses to get it to stay open. Sometimes it will stay open for about
    0.5 to 1s before it closes again, but most of the times it just immediately closes. I also have the same problem if I use the software eject feature by right clicking on the drive and choosing eject.
    Of course, the expected behavior is that pressing the eject button should open the tray, but not close it immediately allowing you to remove the disc.
    Here is some background information about my system and how the drives are connected:
    1. Motherboard: Gigabyte GA-EP45-ED3P Revision 1.0 LGA 775
    2. Interface (for both drives): Gigabyte SATA II Chip - 2 x SATA 3 GB/s connectors (GSATA2_0, GSATA2_1) supporting up to 2 SATA 3 GB/s devices
    3. Memory: 8 GB (4 x 2 GB)
    It should be noted that I tri-boot between Windows 7, 8/8.1, and 10 Technical Preview and that this issue is not present in Windows 7, but has always been there in Windows 8/8.1 and now it is present in 10TP as well.
    I've had this system for just over 6 years now and it is still going strong. It should be noted that I have both drives on the secondary SATA chip (as identified above), which is meant to be used with removable SATA devices.
    Since the problem exhibits itself in both Windows 8/8.1 and 10TP, a reinstall of the O/S will have no affect on this problem and so this appears to be some other issue that is consistent between Windows 8/8.1 and 10TP.
    I'd appreciate your support in looking at this issue - thanks!
    Matt Caspermeyer
    P.S. I also submitted this feedback through the Insider Program.
    Matt

    Hey Zagayer,
    Thanks for using Apple Support Communities.
    As you now have two optical drives in your Mac Pro, you need to be able to choose which drive to eject.  That is built into the system.  You just hold the Option key while tapping eject for the 2nd drive.
    OS X Mountain Lion: Eject a disk
    http://support.apple.com/kb/PH10613
    If your computer has two optical drives, hold down Option-Media Eject or Option-F12 to eject a disc from the second drive.
    Have a nice day,
    Mario

  • Illustrator CS5 just won't stay open

    I have looked all over the forums and elsewhere to find a solution to this, but so far, I haven't been able to resolve it. I noticed many other people have had this problem, and it was resolved in many ways, but none of those ways worked for me. This is the trial downloaded from adobe.
    My info:
    Windows 7 Home Premium, 64-bit
    4 gb ram
    AMD athlon IIX2 Processor
    Both Photoshop and Illustrator load and run very fast on my laptop, so performance really isn't an issue.  I've never had this problem with photoshop.
    Illustrator cs5 worked fine since last night. After working on a file, I restarted and Illustrator loads and opens, but doesn't stay open. It closes about 3-5 seconds after it opens, so I can only assume it crashed without any error message.
    The starting logo never completely loads all of the font list. It usually gets to about 80% and then opens and closes automatically.
    So far, i've tried:
    uninstalling illustrator and reinstalling it -- did this 3 times
    using the cleaning tool to completely remove cs5 and reinstall it
    deleting the illustrator profile
    temporarily removing the fonts in C:/Windows/Fonts ... some fonts could not be moved due to the fact they were in use/system fonts
    updating illustrator CS5 to "fix" the bugs ... it doesn't seem to improve anything
    Looking in the event viewer for errors, I found this:
    Faulting application name: Illustrator.exe, version: 15.0.1.399, time stamp: 0x4c57c1d9
    Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
    Exception code: 0xc0000005
    Fault offset: 0x6ec08639
    Faulting process id: 0xa58
    Faulting application start time: 0x01cb73dd36ec5614
    Faulting application path: C:\Program Files (x86)\Adobe\Adobe Illustrator CS5\Support Files\Contents\Windows\Illustrator.exe
    Faulting module path: unknown
    Report Id: 7b1d928a-dfd0-11df-ab15-705ab6e1e86d
    not sure if any of that has to do with why it crashes.
    nothing worked. The strange thing is, if I open an .EPS or .AI file with illustrator, illustrator will stay open as long as my mouse is over a context menu. If i'm quick enough, I can open .EPS files in illustrator and then save them as .AI files, but as soon as I close the menu, illustrator quits.
    So, this is incredibly fustrating. I have to do a vector project in illustrator and obviously can't ... i've been quite desperate in trying to find other vector programs, but i'd rather not need to learn a new program when I can use one I already have.
    Does anyone know how to fix illustrator and keep it open?   how do I temporarily remove all the fonts from illustrator? I am assuming that because it never completely loads the font list at startup, its a font issue. But I haven't installed or modified any new fonts lately.
    Any help will be appreciated. Thanks.
    Message was edited by: MissaMoonlight
    Message was edited by: MissaMoonlight
    Message was edited by: MissaMoonlight

    I did as you suggested and removed my prefererences and workspaces. It still closes.
    Also, I do not use adobe acrobat, it isn't installed on my computer. I have no issues hovering over the menus in AI -- hovering over the menus and opening them is the only thing that keeps AI open. As soon as I take my mouse off the menu, AI closes.
    The only way to keep AI open is to interact with the menus. Any dialog box keeps it open. As soon as you close the menu or dialog, AI closes as well.
    Does this
    Faulting application name: Illustrator.exe, version: 15.0.1.399, time stamp: 0x4c57c1d9
    Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
    Exception code: 0xc0000005
    Fault offset: 0x6ec08639
    Faulting process id: 0xa58
    Faulting application start time: 0x01cb73dd36ec5614
    Faulting application path: C:\Program Files (x86)\Adobe\Adobe Illustrator CS5\Support Files\Contents\Windows\Illustrator.exe
    Faulting module path: unknown
    Report Id: 7b1d928a-dfd0-11df-ab15-705ab6e1e86d
    or this
    Log Name:      Application
    Source:        Application Error
    Date:          10/25/2010 4:55:12 PM
    Event ID:      1000
    Task Category: (100)
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      MissM-MissM-PC
    Description:
    Faulting application name: Illustrator.exe, version: 15.0.1.399, time stamp: 0x4c57c1d9
    Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
    Exception code: 0xc0000005
    Fault offset: 0x6d7085eb
    Faulting process id: 0x824
    Faulting application start time: 0x01cb7486e3b5108e
    Faulting application path: C:\Program Files (x86)\Adobe\Adobe Illustrator CS5\Support Files\Contents\Windows\Illustrator.exe
    Faulting module path: unknown
    Report Id: 28887847-e07a-11df-aee0-705ab6e1e86d
    explain anything?

  • Font drop down menu won't stay open in Photoshop Elements 8

    I have Photoshop Elements 8. Up until today it worked just fine. I have been trying to change the font type using the drop down menu of course. Every time I click on the drop down menu it tries to open, but will not stay open to make the change. The menu just flickers in the attempt to open it up.
    I have reset the tool, deleted any preferences at start up using the Ctrl+Alt+sSiht keys and no help.
    I am using a Windows 7 64bit system. Like I said, this hasn’t happen before. Now that I think about it, sometimes when a menu box is open it will disappear behind the main window and I need to find it again by toggling the window, this will make the change menu to reappear. But still no font drop down menu.
    Anybody have any help?

    If photodrawken's suggestion doesn't make any difference, which was my first thought on the problem, here are a couple of other suggestions.
    You might have a bad font. Have you installed any fonts or programs that might have put in new fonts recently?
    In pse 8 under Edit>Preferences>Type uncheck Font Preview Size and see if that makes a difference.
    Also this lists a fix for missing scroll bars in pse 8 and even though that's not your exact problem it would be worth a try:
    http://kb2.adobe.com/cps/865/cpsid_86508.html
    Added:
    Do you have any third party plugins installed for pse8?
    MTSTUNER
    Message was edited by: MTSTUNER

  • No progress shown sometimes when using DownloadService

    I haven't nailed down the exact situation yet, but sometimes when pulling down jars using the DownloadService the "default progress dialog" shows no progress even though the jars are being downloaded correctly from the web server. Is anyone seeing this problem as well or have any answers?
    Thanks,
    Gary

    I haven't nailed down the exact situation yet, but
    sometimes when pulling down jars using the
    DownloadService the "default progress dialog" shows
    no progress ...Like this?
    http://www.javasaver.com/testjs/jws/cache/#res3
    ...even though the jars are being downloaded
    correctly from the web server. Is anyone seeing this
    problem as well ...Not quite the same, in my case, the resources
    always download OK, but the progress dialog
    is consistently blank.
    Are you saying you can provide the URL of a JNLP
    (or screenshot) that actually shows progress?
    ...or have any answers? Not yet.

  • Saving window don't stay opened

    Since I updated all the drivers on my laptop, the saving window where I am supposed to choose the format (jpg, gif, etc.) of copies of my file don't stay opened long enough for me to save in another format than PS. How to fix it?

    The OS save dialog (the one you can't keep open) should only close when you hit the save button, or press enter or return to commit the save).
    My guess is that something on your OS is interferring with the OS save dialog.

  • Office 365: dropdown menus don't stay open + theme problem

    Hello
    I recently encountered some problems that make the Office 365 unusable. Could you help me figure it out?
    Problems:
    These problems appear in every office program: word, excel, power point...
    Windows are in some very old 98 looking theme
    Office programs appear to be in a window within a window (Image 2)
    Dropdown menus in ribbon and in settings stay open less than a second - makes them unusable
    Situation:
    Office worked well for 2 months, then problems started
    Graphic drivers are up to date
    Windows is up to date
    All the other programs work normally
    No recent hardware changes
    Comodo Internet Security installed recently
    Automatic updates enabled for pretty much everything
    When reinstalling, even the installation windows goes to 98 theme
    My actions:
    Selected default theme from control panel, no effect
    Restarted, no effect
    Reinstalled Office (Image 1), no effect
    Disabled Comodo Internet Security, no effect
    Tried running in safe mode, no effect
    My setup:
    Acer R7-572
    Windows 8.1 Pro N
    Office 365
    I would post some screenshots, but seems that it is not allowed for me.
    Any help is appreciated.

    Hi,
    Seems you've already tried lots of steps, including a complete reinstallation of Office, but to no avail. As per your description above, I'm thinking it might be something on Windows side that is interfering with Office product.
    Have you ever tried to disable the hardware graphics acceleration in Office? Sometimes a recent updated video driver might be incompatible with Office. Please have a try and see if it helps:
    Open any Office 2013 component, for example Word 2013, then go to FILE>Options>Advanced
    Tick the option of "Disable hardware graphics acceleration" under the section
    Display
    If issue persists after the steps above, I would suggest we try to perform a clean boot in Windows and then verify result. This will help to determine whether any program conflict is causing the issue:
    http://support.microsoft.com/kb/929135
    Hope this helps.
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Reminders Info Window Won't Stay Open

    Reminder info (location, date, time) won't stay open long enough for me to input location. Winndow fades away before it can search for a location i.e. trying to input Airport but fades before I can enter airport name.

    I have given up. Sometimes it takes me 4 or 5 times to open the window before I can complete my short entry. I think it definetely has to do with syncing and iCloud. I wish there was a way to setup the frequency of syncs or something.
    I have resorted to using notes. It syncs with iCloud, but doesn't seem to show the same quirky behavior
    Reminders is SO frustrating to use on any level. It is half baked IMO, this issue, can't sort the lists, can't do a delete all for completed items.

  • I am using Windows XP and just installed Elements 12. When I try to select a different brush or shape the drop down list will not stay open long enough to select a different item. I have used Elements 9 for awhile and have not had this problem

    I am using Windows XP and just installed Elements 12. When I try to select a different brush or shape the drop down list will not stay open long enough to select a different item. I have used Elements 9 for awhile and have not had this problem

    grannybel
    It would appear that you are destined for the Adobe Photoshop Elements Forum since your question is related to Photoshop Elements and not Premiere Elements which is the focus program where you have posted.
    But, while the arrangements are being made, here are a few things for you to think about if you have not already
    1. Reset Tools - Select Brush Tool, then
    2. Delete Settings File
    Go to Full Editor/Edit Menu/Preferences/General and click on the option "Reset Preferences on Next Launch".
    We will be watching for your progress.
    Thank you.
    ATR

  • Progress dialogs for (eager and lazy) downloads

    <resources progress="all-downloads">
    </resources>
    Where 'progress' values are
    "standard" - default behaviour if omitted - progress
       dialog for eager downloads only
    "all-downloads" - progress dialog supplied for all
       downloads, eager or lazy.
    "none" - (suggest) no progress dialogsThe 'progress' attribute is not something in the
    web start API, but I would like to see it added.
    The intent is to allow the JNLP file to suggest a
    behaviour for progress dialogs during the download
    of both eager and lazy resources.
    Currently (web start in 1.5), there is no progress
    dialog, or message of any kind, during the download
    of 'lazy' resources.
    My questions.
    Is it technically feasible to provide this ability?
    Does it conform to the web start ..framework?
    Would an RFE to add support for this 'progress'
    attribute (call it what you like) be well received
    (or disappear into the abyss as some other
    requests assigned an ..'internal review ID'
    sometimes seem to)?
    More generally to other forum members, is
    this something that is important to you?
    Would you vote for an RFE to support the
    progress dialog attribute?

    ScheduleWorld used to use around 40 jars and I noticed a big speedup when I started using the version protocol. Now, my httpd logs only report a HTTP HEAD request on the jnlp file (sometimes icon image too?) and the app starts quite fast. I use less jars now but I am sure the main thing is the switch to the version protocol.
    With the version protocol, the client can determine if it has all of the right versions without making network connections. If you have a slow network connection (like a modem) and/or your server has keepalive disabled and is rate-limited to the number of new connections/second to the same IP you could see exactly what you are describing.

  • One of my apps won't stay open after iPad and app both had update

    After updating with the new update for the iPad I updated my nook app. Now my nook app won't stay open. I've restarted my iPad multiple times and tried it with and without wifi still won't stay open.

    I suggest trying the update again after an hour or two.  Sometimes, the notice that an update is available comes an hour or two before the developers actually sends the revised app out to be downloaded.

  • Why printer driver stays open after printing?

    I have upgraded to 10.5, and every time I print on a shared or local printer, the dialog for that printer (the one that shows the document printing) stays open.
    Is there any solution for that?
    I have to manyally close the driver after page finish printing, and it happens with HB annd Epson drivers.
    Thanks a lot
    Pablo de Argentina

    While the icon is in your Dock CTRL- or Right-click on it and select the option to close authomatically.

Maybe you are looking for