Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tips to speed up Slooow loading Applet

Status
Not open for further replies.

ajacode

Technical User
Aug 21, 2002
66
US
I have a Java Applet which is a tree view and tab menu applet.
There are a good number of nodes for the 10 tabs which are dynamically fed by 10 external text files to provide a dynamic menu system.

Here's the kicker.. on the lan, if left alone you can see "loading resource 3.." Please wait.

And it takes 5 minutes.

NOW.. the menu is in a left side frame, I noticed by luck if I scrolled that frame up and down so the top portion (where the "loading please wait" message is) of the greyed loading applet object disappears and the "loading resource" number increases at whatever speed you can slide it up and down (ENDING AROUND 563)so instead of taking 5 minutes this method cuts the time to 65 seconds !! What's up with that ? I can post the code if that will help .

Thanks BeforeHand

AJA
 
....very strange....

Once you get around that error you could consider loading the data in seperate threads so that the screen can be displayed and the tabs are activated once their data has been loaded. As the work is being done in threads users will be able to carry on using the screen at the same time, or even hit a 'stop loading' button if they have enough. Jeremy Nicholson, Director of a UK-based Java and Data Warehousing consultancy
 
Thanks Jeremy for taking time out of your day.

I will try your idea, it looks like a valid approach.

Yes indeed I thought this very strange...

Thanks again and Happy Holidays a a successful New year.

AJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top