Show message window while system is working

Dear all,
i would like to show a message (e.g. "Please wait....") in a window while the application is working. When the application has finished the calculations, i would like to hide this message and to return the control to the user.
How can i do that?
My main window is a Frame.
Thanks in advance.
Angelo

Hi,
this is the code:
public class WaitDialog extends JDialog {
JPanel panel1 = new JPanel();
JLabel textLabel = new JLabel();
XYLayout xYLayout1 = new XYLayout();
public WaitDialog(Frame frame, String title, boolean modal) {
super(frame, title, modal);
try {
jbInit();
catch(Exception ex) {
ex.printStackTrace();
void jbInit() throws Exception {
panel1.setLayout(xYLayout1);
panel1.setBackground(new Color(98, 255, 138));
textLabel.setFont(new java.awt.Font("Dialog", 1, 30));
textLabel.setText("Please wait....");
this.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
this.setResizable(false);
xYLayout1.setWidth(400);
xYLayout1.setHeight(150);
getContentPane().add(panel1);
panel1.add(textLabel, new XYConstraints(183, 71, -1, -1));
this.setSize(400, 150);
validate();
pack();
In the main frame:
WaitDialog wd = new WaitDialog(thisFrame, true);
wd.show();
wd.validate();
validate();
........other code (open serial port, send 2 serial message)
wd.dispose();
I want a dialog window, but it didn't show the message: i think because the application is running the following code, so it doesn't refresh the dialog window.
How can i solve the problem?
Thanks in advance.
Angelo

Similar Messages

  • Not to display Yes/No/Cancel message window, while closing Oracle Apps Form

    Hello All,
    I have a requirement,where we need to avoid displaying Yes/No/Cancel message window when trying to save the changes in Oracle Applications Form.
    Please do let me know how to achive this.
    Thanks a lot in Advance.

    Hi Ramesh,
    Thanks for the Update.
    I have used the below code in KEY-EXIT
    CLEAR_FORM(NO_VALIDATE);
    EXIT_FORM;
    Also the code behind the button which submits the conc.program:
    DECLARE
    l_request_id NUMBER;
    vRESP_APPL_ID number;
    vRESP_ID number;
    vUSER_ID number;
    BEGIN
    --vRESP_APPL_ID := apps.FND_PROFILE.VALUE('RESP_APPL_ID');
    --vRESP_ID := apps.FND_PROFILE.VALUE('RESP_ID');
    --vUSER_ID := apps.FND_PROFILE.VALUE('USER_ID');
    --apps.FND_GLOBAL.APPS_INITIALIZE(vUSER_ID,vRESP_ID,vRESP_APPL_ID);
    apps.FND_GLOBAL.APPS_INITIALIZE(2340,20420,1);
    l_request_id := FND_REQUEST.SUBMIT_REQUEST ('XXAHS',
              'XXAHSRPDSR',
         null,
                        sysdate,
                        FALSE,
                        '|020|080|031|161|030|100|131|',
                        '11-JAN-10',
                        '|41|42|43|45|',
    insert into temp_amk values(15);
    commit;
    message('request id:'||l_request_id);
    exception
    when others then
    message(sqlerrm);
    end;
    This code worked fine, in case I ran from SQL Prompt.
    Please let me know what must be missing.
    Thanks.

  • My icould on my windows 7 system stop working and the refresh notification tab has disappeared, my icould on my windows 7 system stop working and the refresh notification tab has disappeared

    My iCloud on my windows 7 system no longer work and the refresh icon in outlook 2010 has disappeared. I have deleted the applicaton and reinstalled it and still no luck. How can I get this device to work with iCloud again? It was working great!

    Thanks, Allan, but I am embarassed by my own ignorence.  For better or undoubedly worse I am a PC person and I wouldn't know a Snow Leopard from a field mouse.  I just know that about four or five years ago someone developed a procedure that involved moving a half-dozen or so Windows 2000 system files (that did support AppleTalk) to Windows XP systems whcih then gave them the same capability.
    Since this 2000 ==> XP has worked so well for so long, I was just hoping that someone might have developed something similar for Windows 7.  I can handle an answer ot No, but first I have to ask the queston. 
    Sub-Question:  If not Appletalk, how else can I keep my Pro 630s as productive members of my PC-based Ethernet network?

  • Does Windows 7 "System Builder" work on a Mac?

    I'm trying to find the cheapest way to get Windows 7 to work on both a Macbook Pro (2010 model) and Mac Pro (2008 model). I understand I need to buy two different copies of Windows, but the full retail version is so expensive!! Would the "System Builder" editions work? I've read that the System Builder attaches itself to the motherboard of the first computer on which it's installed and can't be transfered to another computer, but that's fine because Mac motherboards can't be changed anyway. So...is the System Builder edition compatible with Mac, and is it OK for audio performance and all that? I'm trying to set up DAWs running Cakewalk Sonar software. Thanks!

    You were answered here https://discussions.apple.com/message/20611905#20611905

  • How to make it not show Finder window when system starts up?

    The subject is the question....a Finder window is always open when system first starts up and how do I make it show and not show? Thanks.

    someone else had this problem too, check out this thread
    http://discussions.apple.com/thread.jspa?threadID=1819909&tstart=150
    He fixed it by changing his wallpaper settings....(lol, copied and pasted from my post in another thread) might not be the same fix as what you need, but heck, why not try, right?

  • When open pdf file using Adobe Reader 11.0.09 Show message "Adobe Reader has Stopped working".Why?

    Need suggestion to solve this problem..tq

    Hi ra az,
    Which OS are you using?
    Try installing the latest update v11.0.10 and check.
    Have you tried repairing Reader from the 'Help' menu already?
    Also try disabling the protected mode in Reader and launch and check.
    Regards,
    Rave

  • Why are not  pop up  message window when message type I and W

    Hi All,
    I am working in BADI ( me_purchdoc_posted~posted) for t-code ME21N. Actually i want show material number, material description  and ABC indicator of material at saving point of PO if material is significant.
    code is properly working  but does not showing  error message window when I am using message type I  (information) or W (worming message) .
    if i am using message type E ( error message )then showing message window just link  Information message.
    So i can no understand why are not message window pop up  when i take message type I and W.
    my code is that
    method IF_EX_ME_PURCHDOC_POSTED~POSTED
    IF SY-TCODE EQ 'ME21N' OR SY-TCODE EQ'ME21'.
      DATA : wa LIKE LINE OF IM_EKPO.
      DATA : VAR_MAKTX TYPE MAKT-MAKTX.
      DATA : VAR_MAABC TYPE MARC-MAABC.
      DATA : P TYPE STRING.
      DATA : P1 TYPE STRING.
      LOOP AT IM_EKPO INTO wa.
        SELECT SINGLE MAABC FROM MARC INTO VAR_MAABC WHERE matnr EQ wa-matnr AND werks EQ wa-werks.
        SELECT SINGLE MAKTX FROM MAKT INTO VAR_MAKTX WHERE matnr EQ wa-matnr. " AND werks EQ wa-werks.
          IF VAR_MAABC EQ 'A'.
            P = 'is significant material'.
            CONCATENATE  WA-MATNR '(' VAR_MAKTX ')'  P INTO P1.
            MESSAGE P1 TYPE 'E'.
            EXIT.
            ENDIF.
      ENDLOOP.
    ENDIF.
    endmethod.
    guide me...............

    Hi vinod,
    thanks for reply......
    yes,  my  requirement is to show the popup window with  material number, material description and ABC indicator of material at saving point of PO if material is significant.
    I find Badi to transaction me21n at saving PO.  Badi ME_PROCESS_PO_CUST does not exist.
    so i am using Badi me_purchdoc_posted~posted.
    This Badi  ( me_purchdoc_posted~posted ) is properly working But showing message  "system error ( error in method po_post ) "
    when I am click on OK then automatic leave from transaction.
    guide me..........

  • Windows operating system error with a Zen Sleek and windows 2

    I have tried to install the creative disk that came with the Zen Sleek. After launch I get this message "windows operating system running on this computer is not supported by this product and can get no further. I am running windows 2000 pro. I have downloaded the creative media source program from the creative.com site and it will install beautifully but when you launch it, I get the error " CTCMS.exe has generated errors and will be closed by windows. You will need to restart program." I figure that these two problems are probably related. We have been able to transfer songs by using the play for sure, but I am disappointed otherwise.
    thanks, Kathy

    On the packaging it should say the player is Win XP only. I'm not sure if the Sleek ships with the Easy CD that allows MTP/PlayForSure based players to work with earlier Windows versions.

  • Starting up showing two Windows 7 options.

    When I start the computer. It goes to a black screen with writting. It shows two windows operating systems and wants me to pick one. One says that the correct installer isn't there. The other one runs up just like the computer did normally. It will go
    to login and everything. But after that black screen my keyboards quit working so I am unable to type. Please help me!!!

    Hi,
    It seems that you have installed two Operation systems on your computer, one of them is corrupted, in this situation, you can WinRE to repair this boot issue if you have the installation media:
    http://windows.microsoft.com/en-us/windows7/products/features/startup-repair
    Regards
    Wade Liu
    TechNet Community Support

  • System Error in Message Monitoring while it shows checked flag in SXMB_MONI

    Hia,
    We are working on ABAP Proxy --> SAP PI 7.1 --> SOAP (Asynchronous Scenario).
    (ECC -> PI -> Legacy CRM)
    I have following queries:
    1. While sending messge across to Legacy system, we can see CHECKED flag in SXMB_MONI but there is System Error in Message Monitoring. When checked legacy system is unable to receive any message. Cannot understand the issue.
    2. Is there any way to check in PI system whether the message has reached Legacy System other than making scneario synchronous?
    Regards

    System is getting connected and able to send asynchronous messages to legacy system. But getting following error while sending synchronous error:
    2010-05-10 13:15:05     Information     Delivering to channel: CC_SOAP_SOReject_Out
    2010-05-10 13:15:05     Information     SOAP: request message entering the adapter with user J2EE_GUEST
    2010-05-10 13:15:05     Information     SOAP: completed the processing
    2010-05-10 13:15:05     Information     SOAP: continuing to response message f33caa90-5c07-11df-c659-96d147c2ff0f
    2010-05-10 13:15:05     Error     SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Server was unable to process request. ---> Object reference not set to an instance of an object.
    2010-05-10 13:15:05     Error     Adapter Framework caught exception: SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Server was unable to process request. ---> Object reference not set to an instance of an object.
    2010-05-10 13:15:05     Error     Delivering the message to the application using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Server was unable to process request. ---> Object reference not set to an instance of an object.. Setting message to status failed.
    2010-05-10 13:15:06     Error     The message status was set to FAIL.
    I have already checked Data Structure and it is fine.
    Regards
    In this scenarios we are using XSLT mapping using CDATA.
    Please suggest solution.

  • Lightroom suddenly stopped while I was working in it.  I got the Windows message "Adobe Photoshop Lightroom 64 bit has stopped working.  A problem caused the program to stop working.   I have tried re-booting as well as reinstalling Lightroom 5.7 but when

    Lightroom suddenly stopped while I was working in it.  I got the Windows message "Adobe Photoshop Lightroom 64 bit has stopped working.  A problem caused the program to stop working.   I have tried re-booting as well as reinstalling Lightroom 5.7 but whenever I try to start the program I get the same message.

    Is that really the exact message you are receiving?

  • My dreamweaver cs5.5  on window 7started working stop  showing message  A problem caused programe to

    my dreamweaver cs5.5  on window 7started working stop  showing message  A problem caused programe to stop work correctly       

    What's the error message you received?
    What do your logs tell you?
    What were you doing just before you got the error message?
    Nancy O.

  • ICloud has stopped working continuously get the message windows 8.1 operating system

    iCloud has stopped working continuously get the message windows 8.1 operating system

    Hi Fe-Can,
    If you are having difficulties with iCloud you may want to use the steps in this article to troubleshoot -
    iCloud: Account troubleshooting
    http://support.apple.com/kb/TS3988
    Thanks for using Apple Support Communities.
    Best,
    Brett L

  • File to RFC - error while processing message to remote system:com.sap.aii.

    Hi
    i m working on File to RFC scenario. the records are getting displayed in sender CC and receiver CC. But in receiver CC i m also getting the following error:
    Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: JCO.Exception while calling ZRFC in remote system (RfcClient[CC_RIS_STC_PIMASTER_RECEIVER]):com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE:      Screen output without connection to user.    
    Error in processing caused by: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: JCO.Exception while calling ZRFC in remote system (RfcClient[CC_RIS_STC_PIMASTER_RECEIVER]):com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE:      Screen output without connection to user.   
    It was working fine few hours earlier but showing this error now. i was giving a SUBMIT program , but stopped that now.
    But still facing the same problem. and in SXMB_MONI its showing recorded for Outbound processing.
    could anyone help.

    Hi
    I am Facing  Following Error When I am trying to call SAP Screen through JCO.jar
    com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: Screen output without connection to user
    Please Guide Whethere it is possible to call SAP screen Through JCO.jar  ot NOT
    Please HELP if it is possible to Call SAP screen through JCO.jar with step and Code
    Thanks
    Vivek

  • "Show in Windows Explorer" option for song not working

    I have the latest verson of iTunes 11.0.1 but have had this problem for awhile
    Whenever I want to delete a song from iTunes, I usually delete the file as well. To do this, I'll right-click on the song & select "Show in Windows Explorer". However, the majority of the time I get the error message saying:
    "Location is not available
    C:\....\....\My Music is not accessible.
    Access is denied."
    Every once & awhile it will work fine though & send me to the song in the Music folder. Any idea how to fix this?

    A system restore fixed the problem.
    I'm guessing the problem was caused by installing and uninstalling replacements (file browers) for Windows Explorer. Even though they were uninstalled and Explorer was running fine, iTunes had this problem.

Maybe you are looking for