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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Memory Use

Status
Not open for further replies.

tmoses

MIS
Dec 4, 2001
98
US
Hi i am just starting java and i am uncertain as to how to approach memory managment. I have a program that implements Runnable, MouseMotionListener,and MouseListener.&nbsp;&nbsp;The applet uses runnable to control a simple animation sequence.&nbsp;&nbsp;The mouse listener's are used to control loading html pages and simple animation used in the gui interface.&nbsp;&nbsp;What i am having problems with is when both mouse listeners have been activated, the background animation freezes.&nbsp;&nbsp;This obvous only happens for a second but the freeze is obvious.&nbsp;&nbsp;what i am trying to figure out is how to prevent this. Should i make a seperate class specifically for the animation etc.. and not let the main applet be runnable.&nbsp;&nbsp;I think what is happening, by making the whole applet runnable and starting and stoping that, i am bothering the listeners because their memory consumption is extended off the main applet not in their own independent threads ?&nbsp;&nbsp;Any ideas or opinions would be appreciated.<br><br>thanks <p>moses<br><a href=mailto:tmoses@iname.com>tmoses@iname.com</a><br><a href= my site</a><br>"In the beginning there was HTML, and it was good"<br>
by Nick Heinle, Designing with JavaScript<br>
<br>
<br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top