How to make a dalog process custom events when blocked by modal dialog

Hi,
I would like to understand the way modal dialogs block other dialogs so that I can properly solve an issue I'm having with two modal dialogs, one blocking the other.
I have an application, netbeans platform based, that opens a JDialog, NewDiskDlg, with it's modal property set to true. This dialog is responsible for starting a thread that will process a given number of files, from time to time, depending on some conditions, this thread will send events to the NewDiskDlg.
When this thread is started, the NewDiskDlg creates a new JDialog, also with the modal property set to true. Both dialogs have the same parent, the main window. And this works as I expected, the second dialog, ActiveScanningDlg, opens on top of the NewDiskDlg and, until the thread stops, the dialog stays visible.
When the thread stops an event is sent to this two dialogs signaling that the job has been completed, and here is my problem. The second dialog, the one that is visible when the event arrives, receives the event and executes the dispose() method, releasing control to the NewDiskDlg in the back, but the NewDiskDlg does not receive the event and does not process it correctly.
I understand the no input can be sent to a blocked window, but does that include calling upon the window's methods?
I've been looking for some help on this but my search terms are not good enough to provide me with any useful information. I've also read the topic on the focus system that is present in the Java Tutorial but I feel that that is not what I should be looking at.
The following code is a snippet of the important parts that I described:
NewDiskDlg has the following methods to process the events
    public void readingStarted(ReadingEvent evt) {
        SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                scanningDlg.showCentered();
    public void readingFile(ReadingEvent evt) {
        //DO NOTHING
    public void readingStopped(ReadingEvent evt) {
        Lookup.getDefault().lookup(MediaReader.class).removeListener(this);
        if (!showAgain) {
            dispose();
    public void readingAborted(ReadingEvent evt) {
        JOptionPane.showMessageDialog(this, "", "", JOptionPane.ERROR_MESSAGE);//TODO: i18n on the error messagens
        Lookup.getDefault().lookup(MediaReader.class).removeListener(this);
    }ActiveScanningDlg processes the events like this:
    public void readingStarted(ReadingEvent evt) {
        //DO NOTHING
    public void readingFile(ReadingEvent evt) {
        jpbReadingProgress.setString(evt.getCurrentFileName());
    public void readingStopped(ReadingEvent evt) {
        Lookup.getDefault().lookup(MediaReader.class).removeListener(this);
        dispose();
    public void readingAborted(ReadingEvent evt) {
        readingStopped(evt);
    }This is an example on how the events are sent:
    private void fireReadingFile(ReadingEvent evt) {
        for (ReadingListener l : listeners) {
            l.readingFile(evt);
    }

Hi,
You have to check the Tolerance limits set for the following tolerance keys. In case if any where the limit is breached the systems blocks the Invoice as 'R - Invoice verification'. Please check the limits set for all these keys.
AP - item amount variance (if you have activated the item check)
DQ and DW - for Quantity variance
PP - price variance with the order price
ST - date variance
VP - Moving average price variance
Regards,
Kathir

Similar Messages

  • When login Apps, get APP-FND--01926: The custom event WHEN-LOGON-CHANGED ra

    When login Apps, get APP-FND--01926: The custom event WHEN-LOGON-CHANGED raised unhandled exception: ORA-01403: no data found
    Applied patch
    6241631 11i.ATG_PF.H.delta.7 (RUP 7) and it's pre-requisite patches
    Forms can not be launched successfully.
    APP-FND--01926: The custom event WHEN-LOGON-CHANGED raised unhandled exception: ORA-01403: no data found
    Followed
    Note 391243.1: Unable to access forms - getting APP-FND-01926 error (Doc ID 391243.1)
    Note 555409.1: Client Gets App-Fnd-01926 Every Time After Bounce Apps 11i Forms Service (Doc ID 555409.1)
    these two notes, can not solve the issue.
    Executed following action plans:
    1. Backup custom.pll file on your issued instance(DEV instance).
    2. Copy a custom.pll files from a working environments(i.e. PROD instance) to this issued instance(DEV instance).
    3. Compile the new copied Library CUSTOM.pll manually by running the command:
    f60gen module=CUSTOM.pll userid=APPS/APPS output_file=$AU_TOP/resource/CUSTOM.plx module_type=library batch=no compile_all=special4. The $FORMS60_PATH needs to be in sync with the the Context.xml specifically the s_f60path variable
    i.e >/oracle/apps/test10appl/au/11.5.0/resource:/oracle/apps/test10appl/au/11.5.0/resource/stub</FORMS60_PATH>
    5. Run Autoconfig instantiate the changes.
    Issue still exists.
    Please HELP~~
    Thanks,
    Jackie

    Hello Srini,
    app11i@hpfsapp2> ls -ltra CUSTOM
    -rwxr-xr-x 1 app11i dba 24576 Aug 29 2001 TMCUSTOM.pll
    -rwxr-xr-x 1 app11i dba 20480 Mar 8 2006 CUSTOM.pll.backup
    -rwxr-xr-x 1 app11i dba 24576 Feb 22 2007 CUSTOM.pll.20120215
    -rwxr-xr-x 1 app11i dba 32768 Oct 4 2007 CHRM_CUSTOM.plx
    -rw-r--r-- 1 app11i dba 36864 Oct 8 2007 CHRM_CUSTOM.pll
    -rwxr-xr-x 1 app11i dba 20480 Feb 14 15:20 TMCUSTOM.plx
    -rw-r--r-- 1 app11i dba 24576 Feb 15 09:22 CUSTOM.pll
    -rwxr-xr-x 1 app11i dba 16384 Feb 15 09:23 CUSTOM.plx
    I don't quite understand "only one copy of CUSTOM.plx in the PATH directories", what is PATH directories? How to check? You mean environment variable?
    EBS version: 11.5.10.2
    DB version: 9.2.0.8
    OS: Linux x86
    Thanks,
    Jackie

  • HT201270 MORNING COMMUNITY, anyone know how to make the i4s forget a network - when the device won't give you that option?

    MORNING COMMUNITY, anyone know how to make the i4s forget a network - when the device won't give you that option?

    if you dont have the options to forget network you can reset your network settings, but than the device forget all networks
    settings > general > reset > reset network settings

  • How to replace or insert a customer logo when creating a journal template?

    Hi Experts,
    How to replace or insert a customer logo when creating a journal template?
    Thanks in advance.
    Best regards,
    Mila

    Hi Dzmitry,
    Thank a lot for your reply.
    We have already tried to download the journal template and insert our logo. The problem is that the journal template is protected and we do not have the password.
    Kind regards,
    Mila

  • How do I resolve "Error processing your request", when using Download link in My Orders (photoshop 5

    How do I resolve "error processing your request" when using the download link in My Orders for photoshop 5

    As Jeff already hinted at, try a different browser. Such issues almost always are local problems on your end. Something is either changing or blocking the HTTP headers used for forwarding (could be your router, a desktop firewall or other security tools) or a JavaScript is not running/ being blocked.
    Mylenium

  • How to make my WRT54G see my WRT110 when my WRT54G is a client Bridge

    How to make my WRT54G see my WRT110 when my WRT54G is a client Bridge?
    It does not see any wireless signals in the status 
    I am using  DD-WRT v24-sp2 (10/10/09) std-nokaid with the WRT54G

    You should post this question on the DD-WRT forum since it is their firmware.

  • APP-FND-01926 The Custom Event  WHEN-LOGON-CHANGED...

    Hi,
    After compiling and placing a 'custom' CUSTOM.pll (and plx) file on the server, when logging into Applications receiving ERROR:
    APP-FND-01926 The custom event WHEN-LOGON-CHANGED raising unhandled exception: User Defined exception.
    This is for R12.1.3
    The code was moved to the original base version of the R12 CUSTOM.pll file...
    I read many other Notes on this error, but most refer to an error related to a Program Unit Not found and requiring a regeneration of the JAR files.
    Would this be the same situation?
    When we place the original back in place the forms login works.
    Any ideas?
    Thanks,
    Lamonte

    check ur CLASSPATH environment variable ur Custom.plx library should visible on runtime to Classpath variable.
    Baig,
    [My Oracle Blog|http://baigsorcl.blogspot.com/]

  • How to make a field in custom screen as display field in screen exit

    Hi ,
    I have created a screen exit for CO02 with a field for item text in header level as input field , when value is given and save button is cliked it gets updated in database but the problem is same field shows as input field in CO03 ( display mode ) .
    Code which i have used .
    in PBO
    if sy-tcode = 'CO03'.
    loop at screen .
    if screen-name cs 'SUBSCREEN' or screen-name cs 'RESB-POTX1'.
    ( subscreen - screen name given in screen editor and   resb-potx1 field name given in screen editor )
    SCREEN-INPUT = '0'.
    modify screen.
    endif.
    endloop.
    endif.
    and even i tried in PAI too .....
    if sy-tcode = 'CO01' or sy-tcode = 'CO02'.
    update resb set POTX1 = RESB-POTX1
    where aufnr = i_aufnr.
    elseif sy-tcode = 'CO03'.
    *oop at screen .
    *f screen-name cs 'SUBSCREEN' or screen-name cs 'RESBD-SORTF'.
    SCREEN-INPUT = '0'.
    modify screen.
    endif.
    endloop.
    endif.
    but itshows as input field only ........how to make that custom field as display field in CO03

    HI Andy,
    Try this out.
    FIrst check the sy-dynnr, if it is same as your custom screen number
    in PBO of your custom screen
    if sy-dynnr = 'YOUR_NUMBER' and sy-tcode = 'CS03'.
    loop at screen
    if screen-name = 'YOUR_SCREEN_NAME'
    screen-input = 0.
    modify screen
    endif
    endloop.
    endif.
    if it wont work they try using Tcode SHD0
    Hope this will serve your purpose.
    Regards
    Ramchander Rao.K

  • How to make the display of custom column names in UWL(not bother abt values

    Hi all
    i want to make the display of custom column names in UWL ( for example GP)
    i dont want or not looking about values for those custom columns . i know that thru custom connector we can achieve to retrieve the values for those custom columns. but currently i am looking only just to display the custom column names( for example GP custom column names, just i want to display the name of the columns ) in UWL .
    Thanks
    Sunil

    Hello Prashant,
    You can add the control to your custom pagelayout, the following article has an example:
    http://spandps.com/2012/02/22/showing-the-audience-target-field-in-an-editmodepanel-sharepoint-sp2010-in-projectserver-ps2010/
    Btw, the SPFieldTargetToControl has a required property:
    http://msdn.microsoft.com/en-us/library/microsoft.office.server.webcontrols.fieldtypes.spfieldtargettocontrol.required(v=office.14).aspx
    - Dennis | Netherlands | Blog |
    Twitter

  • How to make a button appear boxed in when clicked

    For my Prototyping class I have to make an interactive fast food ordering system. I have majority of frames made I just need to add the interactive part to it. I am using AS2 in Flash CS3. I have the picture and the text grouped and are classified as a button. I want to make it so that when the picture or text is clicked it will make a black box appear around it, making it 'selected'. I've tried to add an Event Listener but couldn't figure out how to make the box appear on it. Any suggestions?
    These pictures are basically what I'm trying to accomplish.
    Keep in mind, I'm a Flash newbie, I have a probably 3 hours experience with Flash.
    But I do have knowledge of basic Java commands, so I can understand code.
    Thanks,
    Dudejoe04

    Onw way would be to create the buttons as movieclips so that when they are selected you move the movieclip's timeline to a rame that shows the rectangle around it.  Another way would be to have the movieclips as separate objects that you make appears when its associated button is clicked.  There are likelynumerous other possibilities.

  • How to Make MRBR to show the Customised Payment Block Indicator (MIRO) ?

    Hi
    Currently, from what I know of, MRBR only showing Log Payment Block as follows:
    A     Automatically blocked due to existence of blocking reasons
    S     Stochastically blocked
    M     Manual payment block set in header - no blocking reasons
    W     Automatically blocked due to entry via Web Invoice
    However during the manual MIRO creation, I put in customised Payment Block G (Block due to XX) in the Payment Tab of MIRO. This G does not get shown up in MRBR.
    How to make it possible in MRBR as I have configured a few customised Payment Block such as G (Block due to XX) and H (Block due to YY).
    I would like MRBR to show up the exact Payment Block indicators as those in the MIRO.
    Please help.
    Thanks

    Hi Nick.
    I just found out that Payment Block Indicator shown in MIRO will appear in MRBR. The reason that it was not shown in MRBR because during MIRO creation, it was set BLANK and then user went to FB02 to change it with other customised Payment Block Value, thus when we run MRBR, it was showing blank under Payment Block column. Thus, we had to resort to LOG Payment Block which gave rise to this thread.
    Having understand the importance of how FB02 changing  payment block will affect MRBR, we have decided not to let user change the payment block in FB02.
    SAP note: 394370 has explained everything:
    "A document generated with MIRO was blocked for payment. You cancel the payment block from the vendor line item in the FI follow-up document. Transaction MRBR then displays the invoice document nevertheless. Why?
    The invoice document itself cannot be changed by changes to the follow-up documents; this is not programmed. Transaction MRBR therefore continues to display the document as blocked. If this document is released from an MM point of view, the FI follow-up document remains released. Thus the damage caused is restricted to unnecessary work by the user. SAP recommends that you only use the release transactions for releasing invoices."
    Thanks a lot!

  • How to make A JButton not look disabled when it is  setEnabled(false);

    how do i make a jbutton not look disabled when i setEnabled(false) because when u disabled abutton it changes and takes away the frame of the button it self..is there a way to make it make a sound when its disabled and not take the frame away...example look at windows calculator when u have an answer for example 2 + 2 when the answer is displayed if u try to click the backspacebutton at this point it makes a sound..is this possible in java thanks

    Why did you repost this question??????
    You where given an answer in the other posting. You have not explained why the solution won't work and you haven't provided any further information about your question.
    You also haven't listened to the other advice, you just reposted the question word for word.

  • How to make the Results row a toggle when the user wants/does not want see

    The user wants to toggle between seeing/not seeing the Results row at the bottom of each row. How to make it like a toggle checkbox/selection on the screen so that the user can decide on seeing/not seeing it in the report. If not possible to do such a thing, then how do I totally prevent it from showing in the report. Version is 3.5 BW.
    Thanks
    Ram

    For each characteristics in the query designer, right-click and go to properties....
    then in the 'Display of Results' section in the 'Suppress Result Rows' option, select: "Always".
    This will suppress the result rows.
    Good luck,
    AT

  • How to make a functions that gets called when the plug in is loaded?

    I'm making an automate plugin, and I want to make a functiosn that gets called when Photoshop loads my plugin. It doen't matter if my plug is never called fro the File->Automate menu. Is there any way to do this? Thank you.
    Daniel

    Hi There,
    I don't believe there is a way to handle this currently within App-V...Other virtualization products do have the ability to exclude processes and force to run outside or the bubble or exclude them from terminating on shutdown.
    It would be a great feature request for a future release. You can easily request it here:
    http://appv.uservoice.com/forums/280448-microsoft-application-virtualization
    PLEASE MARK ANY ANSWERS TO HELP OTHERS Blog:
    rorymon.com Twitter: @Rorymon

  • Can you tell me how to make my iphone 4 is heard when I make a video??

    can you tell me how to make my iphone is heard when I make a video??

    If you are expecting to hear some sort of alerting sound from the phone, the only alert is a rather quiet beep when the recording starts. There really isn't anything else.
    If you are attempting to capture sounds along with the recording, it should do so automatically, but only sounds it can pick up. Louder noises in close proximity may block out sounds from farther away.Also, make sure your fingers are not blocking the microphone port.

Maybe you are looking for