afsac
asked on
Kill an applet, stop? destroy?
I have an applet. It works fine. you run the
applet, go to some other page, come back and run
the applet again, and it dosn't work properly.
If you do a shift/reload, the applet will work again
like it is suppose to. Do I need to "destroy" it when
the user clicks the "done" button so that it will be
fresh next time it is ran? Use the "stop" function?
If so, would anybody have a small piece of code showing
me how to do this?
Thanx
don
applet, go to some other page, come back and run
the applet again, and it dosn't work properly.
If you do a shift/reload, the applet will work again
like it is suppose to. Do I need to "destroy" it when
the user clicks the "done" button so that it will be
fresh next time it is ran? Use the "stop" function?
If so, would anybody have a small piece of code showing
me how to do this?
Thanx
don
ASKER
Yes please, a snippet of code would be greatly appreciated.
Thank you for answer my question. If you can give me an
example, I'll see if I can get it to work.
thanx
don
Thank you for answer my question. If you can give me an
example, I'll see if I can get it to work.
thanx
don
ASKER
Would anybody else have a piece of code to show
me how to impliment rembo's suggestion?
me how to impliment rembo's suggestion?
ASKER
I really need help on this. I've messed with init(), start(), stop(), detstroy()
and nothing seems to work. I need this applet (frame) to die so that when
I come back into it, it starts fresh like a SHIFT RELOAD does.
I've raised the points to 200, I don't have much left but I sure could use
and answer on this....any takeres?
Don
and nothing seems to work. I need this applet (frame) to die so that when
I come back into it, it starts fresh like a SHIFT RELOAD does.
I've raised the points to 200, I don't have much left but I sure could use
and answer on this....any takeres?
Don
do you still need answers afsac??
ASKER
YES! PLEASE, any help would be greatly appreciated.
Thanx
Don
Thanx
Don
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
i'll work with it when I get a chance.
You need to override the start()
method.
When you go to another page, the stop() method is called.
When you come back, the start() method is called.
Whatever stuff you are doing to start the applet in
init(), you should move to another method and then
call it again from the start() method.
If you need a little more explanation or a little code
snippet, let me know.
Hope that helps,
-Tony