Skip to Content
author's profile photo Former Member
Former Member

wait() sleep() function


i am not the java expert, but am i right, that this typical waiting-flash-like animation can be set up on purpose using the following code:

try {
// set Visibility
   } catch (InterruptedException e) { 
     msgMgr.reportException("Error-Sleep020804: " +  e.getMessage(), true);

or would you suggest to use another way eg the wait() function?

can i replace the sap-flashy-animation by my own message or gifani or anything similar?

thanx for your hint, and i shall deliver points 😉


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 24, 2005 at 09:40 PM


    You can also use the TimedTrigger and see. That should also help you acheive something like that.

    Depends on how often you want to flash your image. If its at a predefined time intervals then you could use sleep function.

    But if you would like to flash the image only when there is a notification or something like that then you could use wait and notify methods.



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Ravi,

      thank you for the reply.

      Why is that, when using the wait() function like this:


      within try/catch I always get an error:

      "java.lang.IllegalMonitorStateException: current thread not owner"

      I would like to know, how to use the wait() function correctly in webdynpro context. read something about the setDaemon() function. is there a way in setting the current thrad to Daemon and then applying the wait-function?

      btw, by "flashy" animation I meant the webdynpro default-image which is displayed, when the application is busy and eg the delivery of data from backend systems needs time. I wonder if it is possible to swap this image - I recall having seen something else (an orange-like message) somewhere in service market place.

      ta, matthias

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.