How to disable the cancel button in the ProgressMonitor

hi,
I need to know, is there any way to disable/remove the (cancel)button in the ProgressMonitor?
One more problem is,
Once i click the cancel button, isCanceled() return true, how to make it false again so that the process continue....
It is very urgently.....
please help me out.
Thanks in advance.
Regards,
Deepa Raghuraman

I don't think that's a good solution, because Cancel button itself is not disabled, so user is tempted to click it and nothing happens.
A better but dangerous solution is this:
progressMonitor = new ProgressMonitor(ProgressMonitorDemo.this,
                                     "Running a Long Task",
                                     "", 0, 100);
progressMonitor.setMillisToDecideToPopup(0);
progressMonitor.setMillisToPopup(0);
progressMonitor.setProgress(0);
JDialog dialog = (JDialog)progressMonitor.getAccessibleContext().getAccessibleParent();
JOptionPane pane = (JOptionPane)dialog.getContentPane().getComponent(0);
pane.setOptions(new Object[]{});Refer to the same question here [http://stackoverflow.com/questions/512151/how-do-i-disable-the-cancel-button-when-using-javax-swing-progressmonitor] .

Similar Messages

  • How to disable the cancel button in InputDialogBox?

    Can someone please tell me how to disable the cancel button in an input dialog box?
    thanks,

    Cross posted: [http://www.coderanch.com/t/487888/Swing-AWT-SWT-JFace/java/disable-cancel-button-input-dialog]

  • How to disable the inputfield using radio button dynamically in module pool

    How to disable the inputfield on the screen using radio button dynamically in module pool.
    Please suggest .
            Thanks.
    Edited by: Lavanya YH1504 on Jul 30, 2010 1:20 PM

    I got it thank you.
    LOOP AT SCREEN.
        if  screen-GROUP1 = 'LA1'.
           If RADIO1 = 'X'.
            SCREEN-INPUT = '0'.
            MODIFY SCREEN.
         ELSEIF RADIO2 = 'X'.
           screen-input = '1'.
          ENDIF.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    Edited by: Lavanya YH1504 on Jul 30, 2010 1:51 PM

  • How to disable the select options button, while audio is playing in the question template in captivate 8?

    How to disable the select options button, while audio is playing in the question template in captivate 8?

    Apologies for late reply.
    I mean "On Question screens audio keeps on playing even after we have selected an option or options depending on the question type and clicked Submit. How do we stop the audio on selecting an option?"

  • How to Disable the Add & Review Button

    How to Disable the Add & Review Button
     *Updated with the correct ISF  code (the previous code, in case you saved it, was to actually  escape apostrophes.  That will be posted  seperately. 
    Note that this solution might not work in your environment - you might have to modify it based on your installation.
    Enjoy! 
    Common_disableAddAndReviewButton()
       if ( Moment == 'ordering' )
            var theForm = document.forms[0];
            var buttonCt = 0;
            for( i = 0; i < theForm.elements.length; i++ )
                 if( theForm.elements[i].type == "submit" )
                    if ( buttonCt == 0 || buttonCt == 2 )
                        theForm.elements[i].disabled = true;
                         theForm.elements[i].style.visibility="hidden";                  
                     buttonCt++;              

    This is GREAT - I added a new Java Script and set it to "when form is loaded" and when I did some test reqs - no Add & Review button !!!!

  • How to disable the trackpad button function?

    My trackpad botton goes mad, it's seems like hold you mouse's left button and you can click the right button, just can't open the file, my usb mouse works great only in Snow Leopard, in Leopard I can use none of mouse or trackpad.
    I think my trackpad button has broken, I want to disable this button, but I don't know how, can you give me some advise?
    I'm using Snow leopard( 10.6.2 ) now, how to disable the trackpad button in SL?

    I'm using Snow leopard( 10.6.2 ) now, how to disable the trackpad button in SL and keep my trackpad available, I prefer using touchpad, I think I can disable the button and still use touchpad?
    I apologies for my poor english.

  • How to disable the minimize button on the JFrame?

    Does anyone know how to disable the "Minimize" button on the JFrame (Window)?

    Why bother using a JFrame at all? Just extend JDialog, and there won't be a minimize button to worry about at all. The only drawback is that a JDialog doesn't put an icon in the taskbar, so you have to move/close other windows until you can see the JDialog window on the desktop.
    The windowMinimized stuff doesn't let you stop what the window is doing -- you just get an event telling you what happened.

  • How to disable the AET button on Web UI?

    Hi all,
    Does anyone know how to disable the AET button in the Web UI? Our customer doesnu2019t want the end users to change any configuration and the only thing left for this is hide/disable the AET functionality.
    Thank you very much in advance.
    Kind regards,
    Alvaro

    Alvaro,
    The AET should not be visible to end users, especially not in the production system.
    This should be done by authorisation.
    If you are referring to the personalization, you can disable this in the businessrole by selecting a value for the parameter PERSONALIZATION.
    If there are no values available, you can maintain them in sm30 --> PERSCV_PROFILE.
    Hope this helps.
    Regards,
    Pieter Rijlaarsdam

  • How to disable the salary button

    How to disable the salary button in "Combined Per & Asg Form WKFLW_NAME="US HRMS PERSON TASKFLOW" screen function.

    You should not modify the taskflow "US HRMS PERSON TASKFLOW" directly. Instead, create a new Taskflow that contains the navigation items you require, and then create a new function that uses the Taskflow.
    1. Create a Tasklfow
    2. Create a Function using the form "Combined Per & Asg Form" including the parameter WORKFLOW_NAME="XX HRMS PERSON TASKFLOW" (or whatever you have called it)
    3. Use this function in your menu definition.
    http://download-uk.oracle.com/docs/cd/B11454_01/11.5.9/acrobat/115hradm.pdf
    See section "Configuring Oracle HRMS" for more information on Taskflows.

  • How to disable the button in application toolbar in report pgm

    Can anyone help with How to disable the button in application toolbar in report pgm

    Hi,
    You can use it_excluding to disable button on the tool bar.You have to find the function code for the required button and append that function code to the it_excluding .The optional IMPORTING parameter IT_EXCLUDING is an internal table. It is only needed if the caller uses the list tool standard interface but wants to deactivate interface functions which he or she does not need.You can have your defined pf-status using I_CALLBACK_PF_STATUS_SET.
    SAMPLE PROGRAM
    tables spfli.
    type-pools: slis.
    DATA W_FCODE TYPE SLIS_EXTAB-FCODE.
    data: t_spfli TYPE SPFLI OCCURS 0 WITH HEADER LINE.
    select * from spfli into table t_spfli.
    data : t_excluding TYPE SLIS_T_EXTAB .
    W_fcode = '&OUP'.
    append w_fcode to t_excluding.
    W_fcode = '&ODN'.
    append w_fcode to t_excluding.
    call function 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    I_STRUCTURE_NAME = 'SPFLI'
    IS_LAYOUT =
    IT_FIELDCAT =
    IT_EXCLUDING = T_EXCLUDING
    tables
    t_outtab = T_SPFLI
    EXCEPTIONS
    PROGRAM_ERROR = 1
    OTHERS = 2.
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/99/49b844d61911d2b469006094192fe3/frameset.htm
    Regards,
    Priyanka.

  • How to disable the maximize and minimize button of JDialog

    How to disable the maximize and minimize button of JDialog. I have an application which has JDialog box, but in that i should not have maximize and minimize button.If any one come across this problem and got a solution please helpout me.

    Btw, isn't it a little strange to ask thisquestion...
    Actually, I thought it was meant to be sardonic...
    Dialogs don't have those buttons, so the question
    n should be to the OP how did he/she get them in the
    first place? Cuz they aren't using JDialog to do it,
    unless it's something to do with a specific look &
    feel.I somehow missed that, good point :-)

  • How to disable the "Reply" not "Reply All" button in Outlook 2010 with GPO

    How to disable the "Reply" not "Reply All" button in Outlook 2010 with GPO
    I need to disable to "Reply" NOT the "Reply All" button/s in Outlook 2010. If possible, then deploy it through GPO also.

    Hi,
    We can disable the "Reply" button by using Control IDs.
    Please first make sure that you have installed the
    Office 2010 Administrative Templates. To disable the "Reply" button, please follow the steps below:
    1. Press Windows key + R to open the Run command, type gpedit.msc and press Enter.
    2. In the Group Policy Object Editor console, expand User Configuration, expand
    Administrative Templates, and then expand Microsoft Outlook 2010.
    3. Expand Disable items in User Interface, click
    Custom, double-click Disable commands, and then click Enabled.
    4. Click Show. In the Show Contents dialog box, enter
    354 (the control ID for “Reply” button) in the Value field, and then click
    OK.
    5. Restart Outlook and you’ll find the “Reply” button is disabled (grayed out).
    For more information, please refer:
    http://technet.microsoft.com/en-us/library/cc179143(v=office.14).aspx
    Regards,
    Steve Fan
    TechNet Community Support

  • How to disable the reminding dialog when close the webi report viewer

    Dear all
    How to disable the reminding dialog when close the webi report viewer
    Background
    When user close the webi report viewer in inforview by click the button in the right-top of the webi report viewer frame. It always prompt a dialog to remind user that the modification will be lost without saving.
    But customer need to disable this dialog, and can clost the report viewer directly.
    So is there any ways to modify this?
    I think it shoule modify some .js file under tomcat, but can not find the solution.
    Thanks a lot, any information woulde be appreciated.
    David Zhang

    I've had the same issue bugging me since installing Snow, er, lion, er, cat, er, cougar, er, Mountain Lion. Incredibly ANNOYING.
    It's stupid stuff like this and reverse scrolling that really turn long-timer users off. I'm personally glad Forstall got fired for blunders such as these.
    I'm serious peeved that turning off iCloud Documents & Data actually deletes documents and data locally. That's just incredibly stupid.
    MANY thanks mende1 for the answer on how to fix it.

  • How to Disable the Lead selection Action on aTable n How to Refreh a Page

    HI....
    1)How to Disable the Lead selection Action on aTable n How to Refreh a Page r web dynpro application.
    In my case i have a table n user enters data on multiple rows in table , n i have some input fields outside of table for those Inputs fields am settiing the data  at the screen initilization(in Init() moethod by hard code).the problem is whenever the is clicking in th 2nd row of a table the Lead Selection is triggerig and the data in the Input Fields outside the table is not displayinig.
    So by removing the lead Selection Action of a table i thought i can reslove this,
    2) How to refresha page(like we click F5 on key board),is it can be done thru code in web dynpro application
    Regards
    Rajesh

    Hi,
    You did not explained what is your functionality or coding in leadselection. Is that action on leadselection is necessary for you?.
    1)If you just want to remove the action then go to table properties and remove the action for leadselection.
    2)If you still want to continue with your leadselect action, then what you can do is.. write the code in leadselection action to again set the input fields which are out from table.  That is what you did in your init method.
    Page Refreshing
    3) What do you mean by page refreshing? is that refreshing your table only or both the table and input fields. 
         What I understood is you are allowing the user to enter values in table and soon after pressing a button the values should be saved and the data in input fields shld be deleted.  For this if you only invalidate the node then the user entered data will be lost. 
    So what you do is after getting the input data from the user add it to a ArrayList and then invalidate the node which clears the data in input field. Finally bind the Arraylist to your node.  see the following code. This is a concept make changes according to your requirement
    ArrayList list1=new ArrayList();
    wdContext.nodeAbc().bind(list1);
    IPrivateExcelviw.IAbcElement ele = wdContext.createAbcElement();
      ele.setNo(wdContext.currentAbcElement().getNo());
      ele.setName(wdContext.currentAbcElement().getName());
      ele.setMarks(wdContext.currentAbcElement().getMarks());
      list1.add(ele);
      wdContext.nodeAbc().invalidate();
    wdContext.nodeAbc().bind(list1);
    Revert me if you have any doubts
    Regards
    Raghu
    Edited by: Raghunandan Madarikuruva on Oct 16, 2008 8:07 AM

  • Facing Strange Problem in DIR HOW TO DISABLE THE RIGHT CLICK MOUSE IN THE DIRECTOR? (through parent script/ movie?)

    Summary : HARD QUESTION : In the DIR file, the game runs well, right click = no effect. Coz I'm not making right click scripts. BUT in EXE file, right click = ERROR.
    Explanation :
    In the Adobe Director screen, this DIR file game is worked 100%.
    I tested right click EVERYWHERE... NOTHING HAPPENS.
    Because I don't make any programming with "on rightmouseup" or "on rightmousedown" command.
    THEN, I published it into EXE...
    I tested right click EVERYWHERE...I hoped the result will be the same as DIR tests....
    WHEN I RIGHT CLICK IN THE AREA THAT'S GIVEN ON EXITFRAME ME, IT SHOWS ERROR, CHANGING PICTURES.....
    this does not happened in the DIR file...
    I didn't make a runmode program or anything else.... This is awkward... mystery for me...
    WHY THERE'S A DIFFERENCE IN DIR and EXE... it should be exactly the same result.
    I have used Director for years.... This is really strange for me...
    >>>>>>>>HOW TO DISABLE THE RIGHT CLICK MOUSE IN THE DIRECTOR?
    THIS ONE is useless.... It doesn't prevent the rightmouse click,...
          on rightmouseup me
                 nothing
         end
          on rightmousedown me
                 nothing
         end

    Dear Adobe Forums friends
    I need your help and guide through this problem...
    In the game's dir file that is run on the DIRECTOR softwawre,
    the game runs perfectly, I can do LEFT CLICKS (coz I programmed the script)
    and when I do RIGHT CLICKS = there are no effect ( coz I don't do script for it)
    LATER THIS GAME TURNED INTO EXE.
    It supposed to run like the dir file as ABOVE. BUT STRANGELY, WHEN
    I DO RIGHT CLICKS, it turns Error and showing as the picture attachment.
    The right clicks that goes error are above the picture of numeric button only. (in DIR file
    this run normal). I looked into the script behind the numeric button picture, there are only "on exitframe me", there are no script I made inside the "on exitframe me" that is triggering RIGHT CLICKS.
    1. I wonder why there are differences in DIR and EXE effect
    2. Why right click? Left click effects are all normal.
    3. IS THERE ANY WAY TO DISABLE ALL RIGHT CLICKs since the beginning of EXE. So the game will be run normal. I don't need right clicks anyway, but whenever people do right click there will be ERROR.??
    4. Is there any way to STOP THE MESSSAGE BOX TO APPEAR IN FRONT OF THE GAME? (I hate the Dirrector Error Message Box), or auto press OK.
    NB: this game uses Buddy API Xtras, File IO Xtras.
    Thx
    David S

  • How to disable the starting application on the MPB

    hi guys,
    Please help me on how to disable the automaic starting application on my MPB

    System Preferences / Users & Groups / Startup items button.
    Delete those you don't want to launch at start up.

Maybe you are looking for

  • How to build a table with two For Loop

    Hi, I have two Loop For and I want to build a table with N columm (N = a loop + b loop) You can see my example. Thank's a lot Attachments: help_table.zip ‏10 KB

  • How to display field information dynamically in reports

    How to display field information, depending on the description in DOMAINS..dynamically in reports... give an example. Thanks

  • Query monitoring using AUDIT

    Hi all, DB version : 11.2.0 OS version : RHEL 5.5 I have enabled auditing at the database level. Can anyone let me know how could i find out which query was executed by the user 2 hours before. I am not sure how could i find the query using AUDIT. Ju

  • Folios not updating

    Our multi-folio content needs some updates. I have followed these steps: 1. Updated the source files in INDD with the content updates. 2. Updated the articles in the Folio Builder panel 3. Updated the folios in Folio Producer There have not been any

  • Number of photos in slideshow

    I been viewing the forum and could not find how many photos I can have in my slideshow with iLife 08, iDVD. Does anybody know.