wood burning stoves 2.0*
The moose likes JNLP and Web Start and the fly likes swing app through JNLP does not render properly during loadtime Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "swing app through JNLP does not render properly during loadtime" Watch "swing app through JNLP does not render properly during loadtime" New topic
Author

swing app through JNLP does not render properly during loadtime

Guru dhaasan
Ranch Hand

Joined: Sep 13, 2006
Posts: 126

Hi,

I have a Swing app. works perfectly as a desktop application
But when started using JNLP, the UI does not load completely.
During loadtime only the outer border looks visible with the menu bar. But when the button in that menu bar is clicked, which is used to connect to Database in my app, then the whole app loads properly.
It's like only the portion required are loaded and the rest of the window is blank at any point in time, which is undesirable when started.

I believe this is not to do with the networking latency since I have my jars in my system itself.


Also, I have tried with the 'download=”eager”' option in the Jar resources inside jnlp (even though this is the default ) to load the jars before the app launches and still I have the same scenario
Also tried to run from the commandline using the javaws.exe file and there are no exceptions registered

As of now, I have put all my jars and jnlp file inside an Apache webserver instance and tried to run the jnlp. Will this has any impact on my issue?

Here is my JNLP file:




Can somebody help me why this one occurs and how to resolve this?


Thanks, Shiv
SCJP, OCE - JSP & Servlets Developer
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: swing app through JNLP does not render properly during loadtime