Cancel button does not work properly in ProgressMonitor

The cancel button does not work properly in my ProgressMonitor.
Only the keyboard Enter key is accepted but no mouse click.
Everything else works fine.
What could be wrong????
Thank you!

Yes, there is a monitor.isCanceled() and it works if the enter key is pressed. However, a mouse click on the cancel button does not work!!!
Please help.
m_btnSave.addActionListener(new ActionListener() {
     public void actionPerformed(ActionEvent arg0) {
          final int maximum = getMyModel().getList(MerchantHierPropagateMgrDataInterface.ATT_MAN_RESULT).size();
          class TimerListener implements ActionListener {
               public void actionPerformed(ActionEvent evt) {
                    System.out.println("*************isCanceled = "+ m_monitor.isCanceled());
                    if (m_monitor.isCanceled() || getMyModel().isDone()) {
                         m_timer.stop();
                         m_monitor.close();
                         if (getMyModel().isDone()) {
                              m_ok = true;
                              close();
                         else {
                              m_worker.interrupt();
                              try {
                                   m_pm.rollback();
                              } catch (SQLException e) {
                                   BPrompter.showException(e);
                                   Log.printOutAlways(e);
                    else {
                         int progress = getMyModel().getProgess();
                         int prozent = maximum == 0 ? 0 : 100 * progress / maximum ;
                         m_monitor.setProgress(progress);
                         m_monitor.setNote("Fertigstellung: (" + prozent + "%) " + progress + " von " + maximum);
          if (getModel().getList(MerchantHierPropagateMgrDataInterface.ATT_MAN_RESULT).size() > 100) {
               if (BPrompter.showConfirmDialog("Diese Funktion kann mehrere Minuten dauern.", "Hinweis") != JOptionPane.OK_OPTION) {
                    return;
          m_monitor = new ProgressMonitor(FrameApplication.getInstance(), "Fortschritt der Weitergabe",
                    "Initialisierung", 1, maximum);
          m_monitor.setMillisToDecideToPopup(0);
          m_monitor.setMillisToPopup(0);
          m_timer = new Timer(500, new TimerListener());
          m_timer.start();
          m_worker = new SwingWorker() {
               public Object construct() {
                    try {
                         getMyModel().propagateToMerchantsAndTerminals(m_pm,     m_mutationInZukunftZuErledigenBisDate);
                    } catch (PersistenceException e) {
                         Log.printOutAlways(e);
                         return e;
                    return Boolean.TRUE;
               } // constuct()
          }; // SwingWorker
          m_worker.start();
});

Similar Messages

  • What should i do my sleep/wake button on iphone 5 does not work properly it only works if i press on the left side of it and my iphone still on warranty i heard its a common problem

    what should i do my sleep/wake button on iphone 5 does not work properly it only works if i press on the left side of it and my iphone still on warranty i heard its a common problem

    If there's a hardware defect and your phone is under warranty, bring it to Apple for replacement.

  • My iphone5c is still under the 1 year warranty, the top button constantly sticks and does not work properly will Apple still replace my phone even though there is a few chips and scratches on the back?

    My iphone5c is still under the 1 year warranty, the top button constantly sticks and does not work properly will Apple still replace my phone even though there is a few chips and scratches on the back?

    As Peter says above, only an Apple Store genius can advise you.
    But to further clarify, you seem to postulate that if Apple helps you, the cure would be a replacement.  That is not necessarily true.  Let them look at it and advise you what the remedy is.  They may offer you nothing (saying it's your fault), or they may offer you a solution (keeping your current iPhone), or possibly a replacement.

  • Subvi does not work properly when called inside a vi

    Hello Every body
    thanks for your help. i am using a sub vi for sine signal generation. as a vi it works fine. but when i called this subvi inside another VI it gives some problems. for example timer indicator works properly.it reinitializes as well in the sub vi, but in the main VI it does not work properly. means does not count the time.in the sub vi on the fly i can change the values of frequency and amplitude in real time, but when i use as sub vi, it does not reponse as i change the values in the control arrays.similarly pause and continue works properly in the sub vi, but once again in the main VI, it does not work properly.graph indicator also work properly in the sub vi. but here once again it does not work properly in the main VI.the pause resume indicator also does not blink, when it is continue. in the subvi it blinks very well.generally why the sub vi does not work properly inside the VI?i am sending my VI and sub vis.
    any tips would be highly appreciated.
    thanks
    Regards
    Attachments:
    vi.zip ‏87 KB

    I just want to add some more details to Dan's answer. The subVI is acting exactly like you've coded it. The mistake is in understanding how subVIs work. When you call a subVI (or a function in any other language), you pass some parameters to it, the subVI does it's thing and returns values. the subVI does not accept new parameters from the calling VI until it returns to the caller and the caller runs the subVI again. In your case, you have a subVI with a while loop. You have some front panel control wired to the subVI's stop terminal. When first called, the value is false. So the subVI will keep running until the subVI's stop button becomes true but you cannot change it from main until the subVI finishes and returns so the subVI will never stop. As Dan says, the solution is pass references of front panel controls to the subVI and have the subVI monitor those references for changes and to update references to indicators on Main. You subVI does not need any front panel controls or indicators of it's own.

  • My Mac App Store on my MacBook Pro does not work properly.

    My Mac App Store on my MacBook Pro 15 inch does not work properly. When i go on to the app store, my wi-fi resets and then my app store quits. Why is this? How can i fix this problem? Please Help

    Back up all your files, on boot up when you first press the power button, press CMd and r and keep pressing until you get something apart from a apple logo. Then click reinstall Mac OS X or something like that. You may be prompted to insert your disk.
    Good luck

  • I am new to mac air. Today i installed (unsuccessfully!) MAPLE16 on my mac book air. Now since it does not work properly (it also does not appear in  applications) i decide to delete it. I could not remove it from launchpad . i need urgent help

    i am new to mac air. Today i installed (unsuccessfully!) MAPLE16 on my mac book air. Now since it does not work properly (it also does not appear in  applications) i decide to delete it. I could not remove it from launchpad . i need urgent help from your side.

    Any third-party software that doesn't install by drag-and-drop into the Applications folder, and uninstall by drag-and-drop to the Trash, is a system modification.
    Whenever you remove system modifications, they must be removed completely, and the only way to do that is to use the uninstallation tool, if any, provided by the developers, or to follow their instructions. If the software has been incompletely removed, you may have to re-download or even reinstall it in order to finish the job.
    I never install system modifications myself, and I don't know how to uninstall them. You'll have to do your own research to find that information.
    Here are some general guidelines to get you started. Suppose you want to remove something called “BrickMyMac” (a hypothetical example.) First, consult the product's Help menu, if there is one, for instructions. Finding none there, look on the developer's website, say www.brickmyrmac.com. (That may not be the actual name of the site; if necessary, search the Web for the product name.) If you don’t find anything on the website or in your search, contact the developer. While you're waiting for a response, download BrickMyMac.dmg and open it. There may be an application in there such as “Uninstall BrickMyMac.” If not, open “BrickMyMac.pkg” and look for an Uninstall button.
    You generally have to reboot in order to complete an uninstallation.
    If you can’t remove software in any other way, you’ll have to erase and install OS X. Never install any third-party software unless you're sure you know how to uninstall it; otherwise you may create problems that are very hard to solve.
    You may be advised by others to try to remove complex system modifications by hunting for files by name, or by running "utilities" that purport to remove software. I don't give such advice. Those tactics often will not work and maymake the problem worse.

  • Since upgrade to v29, pinned tabs don't appear and sometimes all tabs don't appear and open menu button does not work

    My pinned tabs don't appear at any start and at some starts, I don't see the bookmarks toolbar (I can restore that by removing it from view-toolbars and then reselecting it). when this happens, FF also does not show any tabs and the Menu button does not work.
    I have tried various suggestions found on here like deleting the sessionstore.js and re-installing FF, also tried disabling hardware acceleration in safe mode and still have the same problems.
    Am reluctant to reset FF in case I lose my favourites and Bookmarks, is there anything else I can try?

    Firefox may not have closed properly.<br />
    You can try to update to Firefox 29.0.1 to be released tomorrow (Friday) to see if that helps with this issue.
    See also:
    *"Hang at exit": http://kb.mozillazine.org/Firefox_hangs
    *"Firefox hangs when you quit it": https://support.mozilla.org/kb/Firefox+hangs

  • Stuck on apple logo, lock button does not work

    Hi, I was wondering if someone can help me.
    I have an iPhone 5, and I intend to restore it in order to sell, but every time I try to turn it on, the battery life is low and in the red, and then it is stuck on the Apple logo for ages. My lock button does not work either so I can't actually turn it on properly, or do anything. I leave it plugged in the charger for hours, and it's still stuck on the Apple logo. And when I unplug and let it sit until it dies again, the process repeats...
    What is happening? What can I do?

    You can have it repaired or look up a guide and repair it yourself. The lock button needs to be replaced. It is essential at least for performing resets, like the one your phone needs right now. There may be an issue with the battery as well. I would not purchase an iPhone that did not have all its buttons working properly. The iPhone may not be draining enough to completely reset. Draining the battery this much might damage the battery as well. You probably need to do a reset by holding down the home button and a properly working lock button.

  • TS1702 When I update to IOS6 on my 4S Facebook does not work properly, the news feed never updates it only says no new storeys and shows a picture of an antenna. When I reset my phone and go back to IOS5 Facebook works fine. What's up with IOS6 ????

    When I update my iPhone 4S to iOS six Facebook does not work properly the newsfeed doesn't load properly and I can never see what's going on all I see is a picture of an antenna and a little thing underneath it says no new stories when I reset my phone back to iOS 5 then it works just fine and I don't have any issues so there must be something wrong with iOS six that isn't letting Facebook load properly

    No I did not use any unauthorized methods for anything, I simply reset my phone back to factory.
    <Edited By Host>

  • Adobe Creative Cloud (Desktop) does not work properly. The application is blocked : it could not be launch neither stopped. I'm on MAC Yosemite OS, does anyone know how to remove it properly or to force its stop. It does not appear in the launched applica

    Adobe Creative Cloud (Desktop) does not work properly. The application is blocked : it could not be launch neither stopped. I'm on MAC Yosemite OS, does anyone know how to remove it properly or to force its stop. It does not appear in the launched applications.

    I received no error message. The application was just trying to find applications unsuccessfully.
    I am using MAC OS 10.10.1
    I tried to uninstall the application  but it seems that a kind of deamon is still installed thus providing me to reinstall properly. Do you know where are the elements to remove in order to get my machine just like before ?
    Otherwise I would have to reinstall everything and this would be a pain.
    Thanks for your help.

  • Flash player does not work properly on Windows 7 32 bits

    Hello,
    My flash player does not work properly on Windows 7 32 bits with Firfox and IE8 (lasts versions).
    My Flash player version : 10.0.45.2, but I tried with version 9 too, with same problems.
    I have tried to uninstall, reboot, reinstall several times, ... witch did not worked.
    In fact, it works correctly on some sites, like youtube, but not on some others like :
    http://www.dailymotion.com/ => black screen instead of videos, right click gives flash context menu
    http://www.canalplus.fr/ => videos does not load, right click gives flash context menu
    http://www.myspace.com/ => no audio player, right click gives flash context menu
    some games in http://www.kongregate.com/ => black screen instead of games, right click gives flash context menu
    I have no problem with shockwave in http://www.adobe.com/shockwave/welcome/
    No problem too with flash player on http://www.adobe.com/software/flash/about/
    But in the Global Privacy Settings panel (http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager02.htm l), I cannot change any settings :
    I cannot check boxes,
    My changes are not saved.
    In most of flash animations, videos, ...,
    when I click on parameters, I cannot do anything, even closing.
    when I am in full screen mode, the message "press escape to exit...." does not disappear.
    Last thing, all those problems was not there when I was on Windows XP, few weeks ago, and appear with my registered Windows 7 premium familly edition, with the same hardware configuration...
    Thank you for your help

    Hi eidnolb
    Thanks for your answer.
    This is what I have :
    Verify user permissions
    I have an administrator account.
    I tried (uninstall, install and run) with super-administrator account for same results
    Install the most current version.
    I am running the latest version (10.0.45.2)
    Run the Clean Installer to Fix 3rd Party Flash Player Cleaners
    I did not "clean" my computer.
    Troubleshoot Pop-up blockers
    I have no Pop-up or esle blocker  software.
    Ensure that Internet utilities do not block Flash Player
    I tried (uninstall, install and run) without Avast.
    I have windows 7 firewall. I do not know where I can allow ActiveX  controls and Flash (SWF) content. I do not see anything relative to ActiveX an Flash in allowed program list.
    Fix machine crashes when displaying Flash content
    I have no freez or crash.
    Using IE, Shockwave Flash Object is Enabled and vs 10.0.45.2
    Using FF, I have SWF vs  10.0.45.2 and it is Enabled
    I really do not understand !!
    Thanks,
    Ju'

  • Froze on black screen and power button does not work

    my sons ipod touch is stuck on a black screen when plugged into the computer got a spinning wheel and will not connect now spinning wheel will not go away the power button does not work so can not reset it manually
    any suggestions would be appreciated

    - iOS: Not responding or does not turn on
    Neglect the reset and when it says place the iPod in recovery mode use one of thes programs
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer          
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • Image display control scrolling does not work properly when zoomed in

    I am using a ROI on an image in the image display control. When zooming into the image to fine-adjust the positioning of the ROI, the image scrolling does not work properly. As far as I understand, the image should scroll automatically when the ROI is leaving the visible area. However, the scrolling behaviour seems to depend on the origin of the Labview panel, not the origin of the image display control, which might require to move the ROI way out of the visible area before the scrolling takes place. In other words: the coordinate system of the image display control is shifted with respect to the true visible image area, depending on where you place it on the front panel. As a consequence, when clicking on a ROI which is in the visible area, but is outside of what Labview thinks is the visible area, it might immediately jump to the left border of the image, making the positioning of the ROI really difficult.
    Has anyone noticed this behaviour, and what would be a reliable solution to avoid this? 
    Dirk

    Hello,
    no, I am not talking about the tools palette. Just place an image control with some image in it on a new VI front panel. Then, use the rectangle from the tools and select a ROI in the image. If you zoom in (using the magnification glass), and then grab the ROI and move it around, the image scroll with the ROI. So far, so good. If you now place the image control elsewhere on the panel, or add new control above it, resize the panel, etc. , this scrolling when moving the ROI will not work correctly if the origin (0,0) of the panel is far away from the image control.
    I have attached a VI for simplicity (although there is hardly any code in it).
    If you make a ROI and try to move it down, you will notice that scrolling starts if you move the mouse out to about 10cms below the image (depens on your screen, of course). After that, if you click on the ROI, the scroll bars and ROI might jump up to the upper end of the image. Imagine how annoying this is if you try to finely adjust the ROI position. 
    I think it is a bug in the implementation of the image display control.
    Thanks,
    Dirk
    Attachments:
    scrolling.vi ‏818 KB

  • Centre button is not working properly in my iphone . . what can i do for that ?

    centre button is not working properly in my iphone . . what can i do for that ?

    Get it serviced.

  • My Ipod touch does not work properly.When i charge it,it only works for 5 min.n gets discharge.I showed it to the apple store in banglore n the person told me its fine n It is working properly.Bt its not working properly.Can someone help

    My Ipod touch does not work properly.When i charge it,it only works for 5 min.n gets discharge.I showed it to the apple store in banglore n the person told me its fine n It is working properly.Bt its not working properly.Can someone help

    If after you charge it for about three hours and it only last about five minutes the battery is probably dead or there could be another hardware problem.  I would go back to the Apple store and ask them specifically how can it be OK if the fully charged battery only lasts five minutes.

Maybe you are looking for

  • Flash menu in DW, how do I link the buttons?

    Hi there! I have a problem, i'm creating a site in dreamweaver with a lot of flash objects. For examlpe I'm making a flash menu, wich is the hole problem! I'm importing the flash file to the left frame in dreamweaver and i'm trying to link the button

  • How can I catch error in JheadStart lastest version

    Dear Forum I want to catch the errors in my Strut Action How can i do it, and then show in the in the component <messages> <messageBox id="messageBox" model="${data}"/> </messages> in my uix page. I want to Know how to use the model {data} Please hel

  • -ve stock in the pick storage bin

    Hi All, Here is the example that explains the problem we are having: If the outbound delivery has a quantity of 300, when processed using VL06P the TO is being created for 300 where as the actual available quantity in the pick bin is only 200. This i

  • Standard Authentication in JSF

    well i have a basic doubt of what is stanard authentication in JSF... well i use jsf and sdo...i use data objects and check whether username exists.... i dont know what is standard authentication?? how do i do that in JSF RAD....??? how do i protect

  • Events mixed up and deleted photos are back after database rebuild

    Hello My father has got an iPhoto library with rougly 6200 pictures in it. One day I decided, as the old iMac he uses grew more sluggish, to rebuild the database, in an attempt to get a performance boost out of it. So I opened iPhoto holding the cmd