سؤال

Hey guys i have a big doubt which i noticed today in my developed java swing app..

The problem where i found is launch()

When i try my developed app locally it runs without any delay but when i try this from my web server using jnlp i find that there is a 5 seconds delay in executing the next line...

When i did a deep research on it i found that the launch() function in the main class file takes 5 seconds after that it starts executing the startup() function.. is there any updates need to be made...? and how to reduce the delay...?

im using java 1.6 and netbeans

هل كانت مفيدة؟

المحلول

The thread executing within the Runnable object sleeps for 5 seconds   
to simulate a long read over a slow network connection

I know that this is implemented for some cases, but it may be in your case as well!
If this is true in your case, then I can see that this is inevitable and can't be changed.
You can find it in here

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top