Lifecycle for applets

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tony Johansson

    #1

    Lifecycle for applets

    Hello experts!

    I have an applet with a textfield where I can see the different states that
    the applet has been in and in addition what the present state is. The applet
    can say what state it is in because the applet has four metod which is init,
    start, stop and destroy. I have the same html file and the same applet when
    using the appletviwer and the browser.

    Each time when method init is called the applet writes initializing in the
    textfield.
    Each time when method start is called the applet writes starting in the
    textfield.
    Each time when method stop is called the applet writes stopping in the
    textfield.
    Each time when method destroy is called the applet writes destroying in the
    textfield.

    When I run this applet by using the appletviewer I get the correct text in
    the textfield from the applet. For example when I start the appletviewer
    with a html with this applet I get initializing and starting in the
    textfield which is correct. When I minimize the appletviewer and then bring
    it up again the textfield has been added with stopping and starting which is
    correct.

    When I instead use the Microsoft Internet Explorer browser and run the same
    html pages as for the appletviewer with the applet I get initializing and
    then starting which is correct.

    But if I minimize the browser and then bring the icon up again the textfield
    has not been added with anything at all. I assume that stopping and starting
    should have been added because that was the case when I used the
    appletviewer.

    The textfield looks like the following when the appletviewer has been used
    and I have minimized the appletviewer two times.
    initializing... starting...stop ping...starting ...stopping...s tarting

    The textfield looks like the following when the browser has been used and I
    have minimized the browser two times.
    initializing... starting

    Can anybody explain why not the stopping and starting was added in the
    textfield when I minimized the browser and then bring it up again?
    Have I understood this completely wrong?

    //Tony


  • Oliver Wong

    #2
    Re: Lifecycle for applets


    "Tony Johansson" <johansson.ande rsson@telia.com > wrote in message
    news:w82se.1403 88$dP1.492273@n ewsc.telia.net. ..
    [color=blue]
    > When I run this applet by using the appletviewer I get the correct text in
    > the textfield from the applet.[/color]
    [...][color=blue]
    >
    > When I instead use the Microsoft Internet Explorer browser and run the
    > same html pages as for the appletviewer with the applet I get initializing
    > and then starting which is correct.[/color]
    [...][color=blue]
    > Can anybody explain why not the stopping and starting was added in the
    > textfield when I minimized the browser and then bring it up again?
    > Have I understood this completely wrong?[/color]

    Might be that MSIE's implementation is broken.

    - Oliver.


    Comment

    Working...