954,518 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

how to reduce time required to add panel to container

Hi,

I have many applets in my application and for loading applets it takes too much time! I found that for adding panel to container it takes 4-5 sec.
My question is that how can I reduce this time? or Is there any alternative way by which my applet will load fast?

rutuja
Newbie Poster
2 posts since May 2005
Reputation Points: 10
Solved Threads: 0
 

My suggestions:

1. Bundle all classes and resource files in a jar file.
2. Try to preload the heavier files (e.g. sound files) in a background thread, instead of init() method.

server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20
 

Here's a site that gives some good tips, although might not be what you want.

http://www.developer.com/java/other/article.php/603451

server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20
 

My resource files are already bundled in jar.
Actually my problem is that for adding panal it takes too much time. This time differs from application to application.

rutuja
Newbie Poster
2 posts since May 2005
Reputation Points: 10
Solved Threads: 0
 

Loading time will differ from app to app.

How big is this app that your using?

server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You