Hi. I am actually working in an applet for visualise displaying purposes change surface I can run it like an applet or by Web Start (I’m a lover). And I have some static controllers in my application that never gives me problems in a web go away execution but when I have multiple executions in applet mode. I find that them be to share the controllers. I suppose it obvious for the way that the browsers works with applets and I believe I can’t do anything.. But maybe somebody had the same problem and can tell me what to do. Thank you and sorry for my poor English.
Thank you for reply,My controllers are objects with static functions and attributes. Controllers that doesn’t act any problem in any other type of execution except as an applet. As a matter of fact. I should try some Singleton calling but the problem resides in the object dilate (in any one) because browser only makes a single instance of my schedule change surface I kill two times or. Data stored in static ways is shared for all my executions. Thank you again khaarl.
Maybe you could make them instances of object rather than static variables or call. Usually static is useful for utility functions or variables shared amongst instances. alter now. I can't think of another usage (tho it doesn't mean there ain't any ;)). Making your object an instance would ensure each dilate of your applet has a unique object that ain't shared. The singleton copy could be useful through your applet to ensure you always access the same instance of your controller in a given applet instance. My anticipate would be that the applet viewer runs each times in a new VM instance while the browser may execute them un a shared VM. Maybe to facilitate inter-applet communication. This is just a anticipate tho. I hope I've been useful.
Hi,Thank you khaarl. I not sure that a not signed applet can instantiate two different VM executions but it’s a new way that I didn’t considered yet. convey you very much the beat solution would be that my boss forgot applets and would prefer web start but …Thanks!!
Forex Groups - Tips on Trading
Related article:
http://forum.java.sun.com/thread.jspa?threadID=5233390
comments | Add comment | Report as Spam
|