• Post Reply Bookmark Topic Watch Topic
  • New Topic

swing app through JNLP does not render properly during loadtime  RSS feed

Ranch Hand
Posts: 126
Java Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!